Skip to content

Instantly share code, notes, and snippets.

/*
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();
#Boilerplate------------------------------------
# Apache configuration file
# httpd.apache.org/docs/2.2/mod/quickreference.html
# Note .htaccess files are an overhead, this logic should be in your Apache
# config if possible: httpd.apache.org/docs/2.2/howto/htaccess.html
# Techniques in here adapted from all over, including:
!!! 5
html(class='no-js')
head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge')
title
meta(name='description', content='')
meta(name='viewport', content='width=device-width, initial-scale=1')
#!/usr/bin/php
<?php
if(!array_key_exists(1, $argv) || $argv[1] === '--help' || $argv[1] === '-h')
{
printLine("Hacklang php translation tool");
printLine("Version 1");
printLine('usage: ./headerModifyer.php <directory> [options]');
printLine('');
@SqueeG
SqueeG / saivryth-printable.js
Created September 22, 2014 01:53
Tampermonkey script for Saivryth
// ==UserScript==
// @name Saivryth printable script
// @namespace http://saivryth.org/
// @version 0.1
// @description enter something useful
// @match http://saivryth.org/kingdoms_of_saivryth.htm
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js
// @grant unsafeWindow
// @copyright 2012+, You
// ==/UserScript==
@SqueeG
SqueeG / internet-optouts.md
Last active August 29, 2015 14:02
Google and Facebook ad tracking opt-out
!!! 5
//if lt IE 7
html(class="no-js ie6 oldie", lang="en")
//if IE 7
html(class="no-js ie7 oldie", lang="en")
//if IE 8
html(class="no-js ie8 oldie", lang="en")
// [if gt IE 8] <!
html(class="no-js", lang="en")
// <![endif]