View autohotkey.ahk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
printscreen::f5 | |
^printscreen::send {Control down}{f5}{Control up} | |
scrolllock::send {shift down}{f5}{shift up} | |
pause::send {shift down}{control down}{b}{shift up}{control up} | |
control::capslock | |
capslock::control | |
insert::media_play_pause | |
pgup::volume_up | |
pgdn::volume_down |
View circle.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Circle = function(radius) { | |
var calculateDiameter = function() { | |
return radius * 2 | |
} | |
// here's a new 'circle' | |
return { | |
radius: radius, | |
calculateDiameter: calculateDiameter | |
} |
View gist:897686
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hip hip hooray! It's Cogent Day! | |
Let's get together and share the love! | |
We're all Men, but that's OK! | |
Hip hip hooray! It's Cogent Day! |
View u-mad.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.........,....................,......,.............,......,........................ | |
...,,..,...........................,......:,,::,,:,.,,,,:,.,,.........,...,..,,.... | |
..,..,,.....,......2illl▓▓███████████▓▓▓▓▓▓██▓.........,..,,.. | |
,...,..,...,.k▓█▓▓▓▓lBEnjjBllllllBjzv░1JTHtq8tL;..,...nll█▓.......,...,, | |
..,......v▓█M:..,::,,:;1JBt;,...,....q:......:vFll▓▓llEL.....█▓,......,... | |
,...,.....█,,,...░;........;x,.......,:,,..,,:,,........,░,,,.....█lM.......,, | |
.....,:n█▓...,..Lii███▓B1........tj▓▓▓█████lM.,,........j█▓;...... | |
...W██▓w,,..,Y▓▓█████M...k██▓▓▓█▓lll▓▓v▓▓▓▓▓;.▓█▓... | |
..#ll█::vn▓▓▓▓g;J:..,.t█▓................,n▓▓glll▓▓▓▓Wl▓▓.wll█.. | |
...zi█;:..,..,t▓7▓▓░2ll█▓:......,.X▓Bq..,.........Bll▓▓█▓.El█3.F█lll |
View scan_until.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function scan_until($subject, $search, $position = 0, $match_position = 0, $buffer = '') { | |
$char = substr($subject, $position, 1); // take of a character | |
$position += 1; // increment our subject position | |
if ($position == strlen($subject)) { // are we at the end and haven't found shit? | |
return $subject; | |
} |
View unique.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var unique = function(array) { | |
var pushed = {}, output = [] | |
for (n in array) { | |
var value = array[n] | |
if ( !pushed[value] ) { | |
output.push(value) | |
pushed[value] = true | |
} | |
} | |
return output |
View unicode-methods.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def ¿ | |
puts 'IMA UPSIDEDOWN QUESTIONMARK LOL' | |
end | |
¿ # => IMA UPSIDEDOWN QUESTIONMARK LOL | |
¿ # => IMA UPSIDEDOWN QUESTIONMARK LOL | |
¿ # => IMA UPSIDEDOWN QUESTIONMARK LOL | |
¿ # => IMA UPSIDEDOWN QUESTIONMARK LOL | |
¿ # => IMA UPSIDEDOWN QUESTIONMARK LOL | |
¿ # => IMA UPSIDEDOWN QUESTIONMARK LOL |
View 1_pi.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def poop1(x,y) | |
Math.sqrt(x * x + y * y) | |
end | |
def poop2(x,y) | |
poop1(x,y) < 1 | |
end | |
def random_poop | |
rand * 2 - 1 |
View closure-unfail.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a, b = nil, nil | |
a = lambda { | |
b.call() | |
} | |
b = lambda { | |
puts :IMA_B_LOL | |
} |
NewerOlder