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
/** | |
* String.pad.js | |
* A simple string padding function written in ES5 with Closure compiler annotations | |
*/ | |
/** | |
* Enum for the padding alignment | |
* @enum {number} | |
*/ |
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
// Get the nth fibonacci number, starting from fib(0) == 1 | |
var fib = Memoize(function(n) { | |
if (n == 0) return 1; | |
if (n == 1) return 1; | |
return fib(n - 1) + fib(n - 2); | |
}); |
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
<Proplex> so are we going to be posting donation receipts any time soon? | |
<irungentoo> the paypal ones might contain personal info | |
<Jfreegman> then we're doing it wrong | |
<Jfreegman> just blank out any personal info | |
<Proplex> ^ | |
<Proplex> you have no idea how bad we look when we're not being transparent with MONEY. | |
<Jfreegman> agreed. i don't even think we should be taking donations right now if no one knows where they're going | |
<irungentoo> they are going nowhere | |
<irungentoo> they are not getting spent | |
<Proplex> then fucking prove it! |
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
#!/bin/sh | |
## MySQL Setup Configuration | |
MYSQL_DATABASE='mydb_name'; | |
MYSQL_USERNAME='mydb_user'; | |
INCLUDE_DEVELOPER_DEFAULTS=false; | |
## Get the MySQL files |
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
#!/bin/bash | |
## search.{bash,zsh} v0.0.3 | |
## Configuration | |
LOG_DIR=~znc/'.znc/moddata/log/syrup-tan'; | |
DEFAULT_SERVER='rizon'; | |
## Usage | |
## Source the file with $ . ./search.bash | |
## All queries must begin with a from_* function |
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
#!/bin/sh | |
## Configuration | |
OUTPUT=~/www/anya.txt; | |
## Get the search scripts | |
. ~/www/search.bash; | |
## Get all of the messages from Anya that contain danbooru | |
from_buffer '#r/a/dio' | grep_nick 'Anya' | grep 'danbooru' > "$OUTPUT"; |
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
#!/bin/sh | |
## sh stdlib | |
plus_equals() { FUNCTION="plus_equals()"; | |
## Handle options | |
case "$1" in | |
-h) | |
echo; |
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
Example: https://denpa.moe/~syrup/himawari8.png |
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
caesar(atob('TFdWIFFSVyBEUSBEVlZEVlZMUSwgTFdWIEQgUUxRTUQ7IFFSVyBZRFBTTFVILVJRSCwgV0tSWEpLLg=='), 23); | |
function caesar(s, n) { | |
n = n || 13; | |
var alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
return s.toUpperCase().replace(/./g, function(l) { | |
var index = alphabet.indexOf(l); | |
return index < 0 ? l : alphabet[(index + n) % 26]; | |
}); | |
} |
OlderNewer