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
Show hidden characters
{ | |
"white": true, | |
"sub": true, | |
"strict": false, | |
"regexp": false, | |
"nonew": false, | |
"evil": true, | |
"wsh": false, | |
"undef": true, | |
"nomen": false, |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>author</key> | |
<string>Lars H. Nielsen (translated by Tony Kemp)</string> | |
<key>name</key> | |
<string>Wombat</string> | |
<key>settings</key> | |
<array> |
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 someClassNameHere = { | |
someVariable: '', | |
someFunction: function () { // prototype.displayName = "someClassNameHere.someFunction" | |
console.debug('some message'); // console.debug > "[someClassNameHere.someFunction] some message" | |
}, | |
someObject: { | |
someFunction: function () { // prototype.displayName = "someClassNameHere.someObject.someFunction" | |
console.warn('some message'); // console.warn > "[someClassNameHere.someObject.someFunction] some message" | |
}, | |
someVariable: 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
# Usage: mount_ssh [your_username@]some.server.com:/path/to/mount "[Your Server Name]" | |
function mount_ssh() { | |
# Ensure SSHFS is installed before trying to run any commands. | |
if ! type sshfs >/dev/null 2>&1; then | |
echo "SSHFS is required to run this command." | |
echo "If you have Homebrew installed, please run \"brew install sshfs\"" | |
return | |
fi | |
local connectionPattern="((.*)@)?(.*)(:(.*))?" |
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
alias grok='find . -type f -not -path "*CVS*" -not -path "*svn*" -not -path "*/tmp/*" -print0 | xargs -0 grep ' | |
alias sgrep='find . -type f -not -path "*CVS*" -not -path "*svn*" -not -path "*/tmp/*" -not -path "*/images/*" -print0 | xargs -0 grep ' | |
alias proj='dir /workplace |grep $USER' | |
alias ll='ls -la' | |
alias rm='rm -i' | |
alias cp='cp -i' | |
alias mv='mv -i' | |
alias top='top -d 60' | |
alias svnci='svncommit' |
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 cdproj() { | |
local projectDir=$(ls /workplace | grep $USER | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g") | |
cd /workplace/${projectDir}/$1 | |
} |
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
# Usage xgrok "ABC" *.txt | |
function xgrok() { | |
find . -name "${2}" -type f | xargs grep -i $1 | |
} |
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 () { | |
var utils = window.utils || {}; | |
utils.dependancyCheck = function (dependancies, callback) { | |
dependancies = !(dependancies instanceof Array) ? [dependancies] : dependancies; | |
var checkForDependancies = function () { | |
var i = 0; | |
for (; i < dependancies.length; ++i) { | |
if (dependancies[i] !== undefined) { |
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 () { | |
var utils = window.utils || {}, | |
domLoaded = false; | |
utils.domready = function (callback) { | |
/* Internet Explorer */ | |
/*@cc_on | |
@if (@_win32 || @_win64) | |
document.write("<script id="ieScriptLoad" defer src=\"//:\"><\/script>"); | |
document.getElementById("ieScriptLoad").onreadystatechange = function() { |
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 fibonacci = function (position) { | |
return position < 1 ? 0 : | |
position <= 2 ? 1 : | |
fibonacci(position - 1) + fibonacci(position - 2); | |
}; |
OlderNewer