This file contains hidden or 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 |
This file contains hidden or 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 | |
} |
This file contains hidden or 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! |
This file contains hidden or 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 |
This file contains hidden or 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; | |
} |
This file contains hidden or 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 |
This file contains hidden or 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 |
This file contains hidden or 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 |
This file contains hidden or 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