Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
## MySQL Setup Configuration
MYSQL_DATABASE='mydb_name';
MYSQL_USERNAME='mydb_user';
INCLUDE_DEVELOPER_DEFAULTS=false;
## Get the MySQL files
<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!
@Syrup-tan
Syrup-tan / Memoize.js
Last active August 29, 2015 14:15
Memoization function for ECMAScript
// 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);
});
@Syrup-tan
Syrup-tan / String.pad.js
Last active August 29, 2015 14:11
A simple string padding function written in ES5 with Closure compiler annotations
/**
* String.pad.js
* A simple string padding function written in ES5 with Closure compiler annotations
*/
/**
* Enum for the padding alignment
* @enum {number}
*/