Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw
| <?php | |
| // Get an array of all files in a directory. | |
| $files = File::files('path_to_dir'); | |
| // Get all of the files from the given directory (recursive). | |
| $files = File::allFiles('path_to_dir'); | |
| // Get all of the directories within a given directory. | |
| $files = File::directory('path_to_dir'); |
| $ = jQuery | |
| queues = {} | |
| running = false | |
| queue = (name) -> | |
| name = 'default' if name is true | |
| queues[name] or= [] | |
| next = (name) -> |
| These are my own commands, shortcuts, configurations for sublime text 2 on windows | |
| There's also a really good one at http://www.sublimetext.com/forum/viewtopic.php?f=2&t=10615. | |
| sublime text 2 documentation at | |
| http://www.sublimetext.com/docs/2/ | |
| preferences |
| #!/bin/sh | |
| USERNAME=shostakovich | |
| mkdir ~/tmp | |
| cd ~/tmp | |
| # Install GCC + Git | |
| curl https://github.com/downloads/kennethreitz/osx-gcc-installer/GCC-10.7-v2.pkg > GCC-10.7-v2.pkg | |
| sudo installer -pkg GCC-10.7-v2.pkg -target / |
Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw
| <?php | |
| function gfm($text){ | |
| # Extract pre blocks | |
| $extractions = array(); | |
| $text = preg_replace_callback('/<pre>.*?<\/pre>/s', function($matches) use (&$extractions){ | |
| $match = $matches[0]; | |
| $md5 = md5($match); | |
| $extractions[$md5] = $match; |
| import ast | |
| from cStringIO import StringIO | |
| import sys | |
| INFSTR = '1e308' | |
| def interleave(inter, f, seq): | |
| seq = iter(seq) | |
| try: | |
| f(next(seq)) |
| (function(window,undefined){ | |
| // Prepare our Variables | |
| var | |
| document = window.document, | |
| $ = window.jQuery; | |
| // Wait for Document | |
| $(window).bind(function(){ | |
| // Prepare Variables |