« first day (437 days earlier)      last day (4736 days later) » 

04:00
how would i go about making that link command?
if it were to have two args, for example
would it seralize them?
!Zirak /time
@Zirak Tue Dec 27 2011 06:01:05 GMT+0200 (Jerusalem Standard Time)
Interesting
you live in jerusalem?
:P
Nope
Never been a fan of temples
well said
you're just using new Date()?
Might be because I played with the Date object. woops
!Zirak /mdn Date
Bummer, 6 AM in Jerusalem
GGG
GGG
04:06
there ya go
Nice
Someone who didn't screw with the date object do /time please
GGG
GGG
:p
!Zirak /time
@Purmou 06:11:41
well, I'm stupid
It'd show the bot's time, not yours. Why wouldn't it
lol
04:12
Anyway, implementing @GGG's parser now
what's it for?
parses HTML to markdown?
Making the /learn command friendlier
So it'd be /learn name inputString outputString
ah
just so he can make link work? :P
Just so that it'd be sane to use the /learn command
GGG
GGG
quotes = quotes == 2 ? 0 : 2;
can be simplified to
quotes = quotes ? 0 : 2
04:19
Already on that
GGG
GGG
i almost made "constants" for them
The function doesn't feel right though
GGG
GGG
why not
it appends an empty command with trailing whitespace
I dunno. Maybe it's bizzare seeing someone else's code among my own
GGG
GGG
probably
just go with it :p
04:21
add this all over the place
// YES I MADE THIS. CHIN UP ZIRAK. YOU'RE A GENIUS
I changed it to match the style of the rest, but...it doesn't feel the same
GGG
GGG
lemme see it
GGG
GGG
do you want to get rid of the early breaks and intentional fallthrough
Nah, it's not that
GGG
GGG
04:24
it's the switch?
And don't fret over it
GGG
GGG
no i'm just curious
because i think everyone has the same problem
I dunno. It's something. It's not that your code is bad, it just isn't mine :P
GGG
GGG
or nearly everyone
So it's weird seeing "stranger" code in my code
GGG
GGG
04:25
that's why coding standards are so important for group coding
it isn't anybody's style, but it;s the agreed-on style of the group
so it looks right
As said, I styled it to be the same so it looks the same...it just isn't the same
GGG
GGG
i'm curious how it would look if you had written it
I guess we'll never know
...who am I kidding, I'll cave and write it in a day or two
GGG
GGG
hahah
wow
GGG
GGG
04:26
it's kinda fun to write simple text parsers
you feel so deeply for your code
:P
They're mah babies
GGG
GGG
yeah there's really only so many ways to do a commandline style parser like that though
notice how it didn't really take long to write... i've probably written that 50 times
We all made these parsers at one point
They're not difficult, especially at these levels of complexity, but they're not the wavy 5 minute thing
GGG
GGG
you'd be surprised... ppl will try to use regex for this :p
04:29
The hell?
GGG
GGG
well this is kinda 5 minute wavy stuff
doesn't account for backslash escapes or anything (doesn't need to)
ok, try and /learn
GGG
GGG
/learn noob .* "$0 is a noob"
oh please
i am begging you
get rid of !Zirak
NEVER
!Zirak /learn noob .* "$0 is a noob"
04:31
@Purmou Unexpected token o
@Purmou Could not process input. Error: Unexpected token o
how else would we know it's hsi? :P
GGG
GGG
FOR SCIENCE
oh, whoops
My bad
GGG
GGG
oh zirak
idea
make replacement before regex
and regex optional and default to .*
And for your sake, I changed the botname to !, so you do !! stuff instead of !Zirak stuff
GGG
GGG
04:32
so i can just do /learn GGG a noob
YESSSSS
Heeeyyy
Optional third argument, ok
GGG
GGG
!! /greet @MrAxilus
In theory at least. Test it
@GGG Invalid command greet
GGG
GGG
your bot has amnesia
04:33
I refresh the page to re-run the scripts
GGG
GGG
/learn noob "$0 is a noob"
Anyone have any experience with webgl?
GGG
GGG
!! /learn noob "$0 is a noob"
@GGG Illegal /learn object noob "$0 is a noob"
@GGG undefined
hurr durr
GGG
GGG
did u switch params
@MrAxilus i don't sorry
!! /learn noob "$0 is a noob"
04:35
Not yet. Now!
GGG
GGG
hahah
!! /learn noob "$0 is a noob"
LEARN ITTTT
oh right...one sec
oh silly me. Go
GGG
GGG
!! /learn noob "$0 is a noob"
@GGG Illegal /learn object noob "$0 is a noob"
@GGG undefined
I didn't make the third parameter optional yet @_@
GGG
GGG
damn you
04:37
Try with all of them first.
GGG
GGG
!! /learn noob "$0 is a noob" .*
@GGG Command noob learned
BOOYA
GGG
GGG
!!/noob @Purmou
@GGG @Purmou
GGG
GGG
!! /noob @Purmou
04:37
olol
;.;
@GGG @Purmou
GGG
GGG
what
its not noobing
The learn command right now looks like /learn name input output
Should I switch them?
GGG
GGG
/learn name output ?input
yeah
so you dont have to tpye .* every time
also when i do the command, it should take everything, not just the first word or whatever
so i can do "/link jquery animate" or whatever
04:40
Of course
okay, go
GGG
GGG
!!/learn noob "$0 is a noob."
!! /learn noob "$0 is a noob."
!!/learn noob "$0 is a noob." .*
Interesting
oooohhhh
I know why that is.
one sec
GGG
GGG
yeah my parser may be adding a blank command for trailing whitespace
Let's try again
GGG
GGG
!!/learn noob "$0 is a noob."
04:44
@GGG Command noob learned
hmmmmmm
yo
if i have an array
GGG
GGG
!!/noob @Purmou
@GGG @Purmou is a noob.
YES!
GGG
GGG
i love it
how can i flip the values?
04:45
array.reverse()
GGG
GGG
ok sooo
say i have [1,2,3,4]
how can i get
[1,3,2,4]
i know that already lol
GGG
GGG
YESSS
04:45
oh that's something else
GGG
GGG
i love it
is it?
oh you want to shuffle
You can also do !! /mdn Array.reverse
is what i want possible?
for example
[1,2,3,4,5,6]
Sure it's possible
to [1,5,4,3,2,6]
uh
04:47
Will the array always have an even number of items?
wait, it's way more complicated than that
GGG
GGG
!!/learn link '[google.com/search?btnI=I&q=$0‌​]($0)'
@GGG Command link learned
GGG
GGG
aww fuck
i'm sure that didnt work
GIVE UP
LOL
GGG
GGG
04:48
!!/link no
@GGG '[google.com/search?btnI=I&q=no‌​](no)'
GGG
GGG
lawl
@Zirak: i'm trying to answer this:
0
Q: How can I use jQuery to reassign the tab-order from horizontal to vertical in a table?

cwdHow can I use jQuery to set up the tabbing order of a table with input elements so that the tab-order will be vertical (down each of the columns) instead of the default horizontal method? The numbers below represent the tabbing order I would like. I'd the jQuery code to work independently of the...

i wanted to put all possible tabindexes in an array, rearrange them to match the new order, and then iterate through the inputs and add the tabindex
GGG
GGG
!!/learn link '[ht''tp://www.google.com/search?btnI=I&q=$0‌​]($0)'
@GGG Command link learned
04:49
oh man
GGG
GGG
!!/link jquery
this is it here
@GGG '[ht''tp://www.google.com/search?btnI=I&q=jquery‌​](jquery)'
GGG
GGG
NOOOOOOOOOOO
...
04:50
:D
give up man
GGG
GGG
what is going on
lol
dude
UTF Encoding
i have to wait 6-8 seconds for every message. wtf is this.
GGG
GGG
04:50
utf shmutf
that doesn't really work when you type it, @GGG
GGG
GGG
ah this wouldnt work anyway bc your bot bypasses the markdown thing
Anyway @Purmou, I'd do it with a simple loop. It does 1->4->7, then 2->5->8. Jumps of three, and then reset and increment
It doesn't bypass any markdown thing
yeah but number of rows/columns is variable
GGG
GGG
rly?
04:52
It sends the message like any other user
which is why i was trying to write a logical function
GGG
GGG
oh man
ok i got this
That's why you store their number in a variable
@Zirak
what the
Sorry, but I'm too tired to think about it further than the fact that you step until you hit a boundary, and then you reset and increment.
GGG
GGG
04:53
!!/learn link [http:80//www.google.com/search?btnI=I&q=$0‌​]($0)
@GGG Command link learned
GGG
GGG
!!/link jquery
@GGG [http:80//www.google.com/search?btnI=I&q=jquery‌​](jquery)
GGG
GGG
oh wait
hehe
GGG
GGG
04:54
!!/learn link [$0](http:80//www.google.com/search?btnI=I&q=$0‌​)
@GGG Command link learned
GGG
GGG
!!/link jquery
@GGG [jquery](http:80//www.google.com/search?btnI=I&q=jquery‌​)
HAHAHAHA
DUDE JUST GIVE UP
IT'S OVER
GGG
GGG
doesn't bypass markdown????
AHHHHH
04:55
He'll get there
GGG
GGG
NOOOOOO
I won't spoil the fun :D
@Zirak function( args, usr )
GGG
GGG
yeah right you know it is impossible
Of course it's impossible.
@Purmou ?
04:56
/command args
that's how it works right?
Yeah
GGG
GGG
but why
fix it
it is silly
That was sarcasm :P
GGG
GGG
what do we have to do to fix it
its driving me nuts
I won't tell. maybe you'll get it on your own.
Dunno if I'm right as well.
But I won't test and ruin it
GGG
GGG
04:57
try it
Nah
GGG
GGG
basckslashes?
oh ffs
just try it
Nope
GGG
GGG
it's your bot :p
But it's your torment
GGG
GGG
04:58
don't you want it to act right
It's acting as right as it can be
GGG
GGG
no way
it is already better with no json
GGG
GGG
now it needs to be awesome
just have it strip out that :80

« first day (437 days earlier)      last day (4736 days later) »