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
/** | |
* domready.js | |
* | |
* Cross browser mozilla's 'onDOMContentLoaded' implementation. | |
* Executes a function when the dom tree is loaded without waiting for images. | |
* | |
* Based on +Element.Events.domready+ from Mootools open source project, | |
* this tiny javascript library adds the emulated 'DOMContentLoaded' functionality. | |
* | |
* Features: |
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
var subcats = cats[foo_barcat_id].subcats; | |
var subcatHash = $.extend({}, subcats); | |
$('tr[id^=all_fields_]').each(function() { | |
if($(this).id == 'all_fields_' + foo_barcat_id) { | |
$(this).hide(); | |
} else { | |
$(this).show(); | |
} | |
}); |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
if [[ -n "$PS1" ]]; then | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
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
#!/usr/bin/env bash | |
if [ ! -e ./.zmq ]; then | |
# Move into temporary directory. | |
mkdir .zmq | |
cd .zmq | |
# Add repository for 0MQ. | |
sudo add-apt-repository ppa:chris-lea/zeromq |
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
find . -type f -print0 | xargs -0 sed -i 's/fromregex/toregex/g' |
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/sh | |
for file in **/pepsi.css ; do git mv $file `echo $file | sed 's/\(.*\.\)css/\1scss/'` ; done |
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
vm update | |
echo "Done." |
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
nathan@orchid:~/Code/global_dawn/platform-seagull/www/js$ jshint app/**/*.js gd/**/*.js | |
app/base.js: line 59, col 30, 'app' is not defined. | |
app/base.js: line 60, col 34, 'app' is not defined. | |
app/base.js: line 61, col 34, 'app' is not defined. | |
app/base.js: line 62, col 38, 'app' is not defined. | |
app/base.js: line 63, col 38, 'app' is not defined. | |
app/base.js: line 63, col 79, Extra comma. | |
app/controllers/Home.js: line 96, col 17, 'dojox' is not defined. | |
app/controllers/Home.js: line 109, col 17, 'dojox' is not defined. | |
gd/core/Dispatcher.js: line 44, col 13, Too many var statements. |
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
dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get -y purge |
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
x = x + 1 |
OlderNewer