« first day (777 days earlier)      last day (4187 days later) » 

11:00 PM
I'm sure I've already linked you to this page.
 
11:14 PM
Hey folks
Is @SomeKittens actually around (ping :-P)
 
hey
 
Hehe
 
Yup
 
What are you up to?
 
Not much. We had to put my cat to sleep this morning (lung cancer), so I'm feeling a bit down. What's up?
 
11:16 PM
Ouch. That sucks.
Well... I happen to be sitting in a hotel room in Henrietta, looking for a way to kill some time.
 
/me google maps
that's not too far away
 
Meet, have a beer
 
^ ?
I'll buy ;-)
 
I like the sound of that.
Gotta wait until my car gets back to campus
 
Which campus?
 
11:20 PM
Roberts Wesleyan (2301 Westside Dr.)
 
I could pick you up... though that sounds kinda creepy... :-P
 
I'll take the chance
What's your cell?
 
716 581 1000
 
Ok, sent a text
 
You're probably going in my contacts as "Some Kittens"... if I ever receive your text...
 
11:26 PM
haha, wouldn't be the first time
Transposed two numbers trying again.
 
hehe
Got it
 
:6491691 You spam this one more time, I'm going to flag you for moderator attention.
 
0
Q: Chrome Countdown Extension

Mike SaffoldI have modified this countdown script to countdown to 4:20pm everyday. I have attempted to create a Google Chrome app that displays the countdown. The javascript is supposed replace a paragraph tag with id of "note" with the time left. It works when I load the page in chrome, but does not work wh...

 
Is there a JS equivalent of preg_quote()? (escape regex special characters)
 
Yea, escape them with a backslash.
 
11:36 PM
@OctavianDamiean Yes, but I don't want to escape a string so it can be used as a regex that matches a literal string with a regex
 
Whoa, that sentence made my brain make a die.
 
Ah... so the string is unknown/variable
 
Actually this may be an X/Y problem: what I want to do is provide a .match method on something that accepts either a literal string to match a value against, or a regexp object to match a value against. I was thinking "convert strings to a regex" but that may be the wrong way to do it.
@RyanKinal Yes
 
That'll be a tough one, then
You might have to make your own, lol
 
It must be the time. No, I'm sure it's the time. I fail to understand ... everything.
 
11:40 PM
I could just do an if (typeof search === 'string') in the loop, I guess I'm slightly micro-optimising, I just hate making the same comparison over and over in a loop.
 
Okay, that one seemed waaay out of context
I don't know where this comparison came from
@DaveRandom Maybe you just want indexOf
 
@RyanKinal Sorry, I'm thinking out loud again. Real world is: I have an object that represents an ordered collection of objects. I want to provide .match() to get the first matching object, and .matchAll() to get an array of matching objects, by providing a property name and a value to match it against. So I loop the objects and compare the named property against search (the value), but obviously a simple type comparison is different to a regex .match().
 
Gotcha
 
...so no, .indexOf() won't cut it
It's all good, I know what I'm doing. It's a minor inefficiency that I can live with given the potential complexity cost
 
Did you take a look at Underscore.js yet?
Maybe one of its object helper methods does what you want.
 
11:50 PM
@OctavianDamiean I am trying to avoid external libs, mostly for self improvement purposes. I might have a hack through it's source though ;-)
 
Ah, that's cool.
hahah epic. bash.org/?98020
 

« first day (777 days earlier)      last day (4187 days later) »