As configured in my dotfiles.
start new:
tmux
start new with session name:
/* | |
I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace | |
so it's better encapsulated. Now you can have multiple random number generators | |
and they won't stomp all over eachother's state. | |
If you want to use this as a substitute for Math.random(), use the random() | |
method like so: | |
var m = new MersenneTwister(); |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
#header, | |
#footer { | |
background:#000; | |
color:#FFF; | |
height:auto; | |
} |
<snippet> | |
<content><![CDATA[ | |
\$(document).ready(function() \{ | |
$0 | |
\});]]></content> | |
<tabTrigger>jq</tabTrigger> | |
<description>document ready</description> | |
</snippet> |
As configured in my dotfiles.
start new:
tmux
start new with session name:
Object.defineProperty(Date.prototype,"diff",{ | |
writable: false, configurable: false, enumerable: true, | |
/** | |
* Returns the difference between two Date objects. | |
* @param {Date} The date to compare to. | |
* @return {Object} | |
* @throws {TypeError} | |
*/ | |
value: function(date) { |
def is_even(num): | |
"Returns true iff num is even." | |
i = 0 | |
while i < num: | |
i += 2 | |
return i == num | |
def get_even_numbers(a, b): |