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
/* | |
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(); |
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
(function (a) { | |
window.ExpatLiving = {}; | |
window.ExpatLiving.SearchLayer = new Class({ | |
Implements: [Options, Events], | |
Binds: ["onFormSend", "onFormComplete", "onFormFailure"], | |
options: {}, | |
initialize: function (c, b) { | |
this.element = a(c); | |
this.setOptions(b || {}); | |
this.element.style.webkitTransitionProperty = "0"; |
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
<?php | |
/** | |
* Extends Twig with | |
* {{ "my string, whatever" | pre }} --> wraps with <pre> | |
* {{ myBigVar | yaml_dump | pre }} as {{ myBigVar | ydump }} or {{ myBigVar | dumpy }} | |
* {{ myBigVar | var_dump | pre }} as {{ myBigVar | dump }} | |
* | |
* You may control the depth of recursion with a parameter, say foo = array('a'=>array('b'=>array('c','d'))) | |
* |
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 | |
# This script is designed to work only with recent bash implementations, not busybox/ash/dash etc... | |
# BEWARE - THIS IS SYMLINKED TO FROM THE NETRIX REPO ON DGC'S DESKTOP | |
# IF YOU EDIT IT THERE IT ALSO CHANGES THE MASTER ONE | |
# @FIXME DGC 6-May-2022 | |
# This script has a large issue, which I have failed to notice ( or to fix ) earlier. | |
# It does a very bad job of labelling hourly/daily etc jobs with an 'execution time. | |
# |