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
/* onEnterClick v1.0 | |
* (c) 2009 Tim Walker | |
* onEnterClick is freely distributable under the terms of an MIT-style license. | |
* | |
* EnterClick listens on a containing element for the enter/return key being pressed. | |
* When the enter key is pressed within a child input element that will submit the form, | |
* it will prevent the default form submittal and fire the click event of a designated button. | |
* Depends on Prototype.js (v1.6.+) and extends Element. | |
* | |
* Usage: |
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
/* | |
* revealMore | |
* | |
* A tiny jQuery plugin to reveal a target element from a triggering link. | |
* | |
* Usage: | |
* <a class="more_trigger" href="#more1">more...</a> | |
* <div id="more1">More Info</div> | |
* | |
* <script type="text/javascript"> |
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
// sub-module that loads itself dynamically to its parent | |
// see: http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth | |
var UTIL = (function (parent, $) { | |
var self = parent.ajax = parent.ajax || {}; | |
self.get = function (url, params, callback) { | |
return $.getJSON(url, params, callback); | |
}; | |
// etc... |
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
/** | |
* @name UTIL.console | |
* UTIL.console acts as a proxy to native console, using window.status for ie6/7. | |
* For when you forget some console calls in your source and don't want the output | |
* shown in staging/production environments. We have enough stuff to remember, eh. | |
* Logging defaults to only being enabled on localhost (or other logic). | |
* | |
* @example | |
* UTIL.console.log("Hello", "World"); // outputs "Hello World" | |
* UTIL.console.disable(); |
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
(custom-set-variables | |
;; custom-set-variables added by Custom. | |
'(cua-mode t nil (cua-base)) | |
'(show-paren-mode t)) | |
(custom-set-faces | |
;; custom-set-faces added by Custom. | |
) | |
;; http://www.emacswiki.org/emacs/EmacsCrashCode | |
(setq-default indent-tabs-mode t) | |
(setq-default tab-width 2) |
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
# git prompt ( put in .profile or .bashrc) | |
export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[01;33m\]$(__git_ps1)\[\033[01;34m\] \$\[\033[00m\] ' | |
export GIT_PS1_SHOWDIRTYSTATE=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
[Desktop Entry] | |
Name=Aptana Studio 3 | |
Comment=Integrated development environment (IDE) for building Ajax web applications. | |
Exec=/home/twalker/bin/AptanaStudio3/AptanaStudio3 -applciation | |
Icon=/home/twalker/bin/AptanaStudio3/icon.xpm | |
Terminal=false | |
Type=Application | |
StartupNotify=true | |
Categories=Development;RevisionControl; | |
X-GNOME-FullName=Aptana Studio 3 |
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
# Removing BOM from all js files in current directory: | |
sed -i '1 s/^\xef\xbb\xbf//' *.js |
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
<snippet> | |
<content><![CDATA[ | |
/** | |
* ${1:name} view | |
*/ | |
define(function(require){ | |
var Backbone = require('backbone'), | |
Mustache = require('mustache'), | |
mainTemplate = require('text!views/${1:name}/${1:name}.mustache'); |
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
# git | |
# pulled together with posts and gists starting at: https://bbs.archlinux.org/viewtopic.php?id=50885&p=11 | |
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
BLUE="\[\033[0;34m\]" | |
LIGHT_RED="\[\033[1;31m\]" | |
LIGHT_GREEN="\[\033[1;32m\]" | |
WHITE="\[\033[1;37m\]" |
OlderNewer