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
/** | |
* ******************************* | |
* XOLOTL jQuery-lightbox Plugin * | |
* ******************************* | |
* @author Ingo Fahrentholz * | |
* @since Version 0.1.0 * | |
* ******************************* | |
*/ | |
!function(exports, $, 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
/* | |
Immediately-Invoked Function Expression (IIFE) [Ben Alman Blog Post] | |
(http://benalman.com/news/2010/11/immediately-invoked-function-expression/) | |
that locally passes in `jQuery`, the `window` object, the `document` object, | |
and an `undefined` variable. The `jQuery`, `window` and `document` objects | |
are passed in locally to improve performance (JavaScript first searches for | |
a variable match within the local variables set before searching the global | |
variables set). All of the global variables are also passed in locally to | |
be minifier friendly. `undefined` can be passed in locally, because it is not | |
a reserved word in 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
Show hidden characters
{ | |
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme", | |
"draw_white_space": "selection", | |
"file_exclude_patterns": | |
[ | |
"*.png", | |
"*.gif", | |
"*.swp", | |
"*.scssc", | |
".DS_Store", |
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
<script> | |
// calculate difference between zero and window.onload | |
window.onload = function () { | |
var stop = new Date(); | |
document.getElementById("content").style.display = "block"; | |
document.getElementById("ms").innerHTML = (stop - start); | |
}; | |
</script> | |
... | |
<script> |
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
uglify: { | |
options: { | |
mangle: { | |
except: ['jQuery'] | |
}, | |
preserveComments: 'some', | |
banner: '<%= banner %>', | |
report: 'min' | |
}, | |
my_targets: { |
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 tma='tmux attach -d -t' | |
alias git-tmux='tmux new -s $(basename $(pwd))' | |
alias tksa='tmux kill-session -a' | |
alias tks='tmux kill-session ' | |
alias tls='tmux list-sessions' |
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
// --------------------------------- | |
// ---------- Plugin Name ---------- | |
// --------------------------------- | |
// Brief plugin description | |
// ------------------------ | |
/* | |
The semi-colon before the function invocation is a safety net against | |
concatenated scripts and/or other plugins which may not be closed properly. |
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
$dspace: 24px; | |
$space--xs: round(0.25 * $dspace); | |
$space--s: round(0.5 * $dspace); | |
$space--m: round(2 * $dspace); | |
$space--l: round(4 * $dspace); | |
@mixin sizes($properties...) { | |
&--tiny { | |
@each $property in $properties { |
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
Cherry-Picking specific commits from another branch | |
10 June, 2010 • tagged cherry-pick, git and scm • 323 words • ~2 minutes | |
I’m often asked how to merge only specific commits from another branch into the current one. The reason you’d want to do this is to merge specific changes you need now, leaving other code changes you’re not interested in right now behind. | |
First of all, use git log or the awesome GitX tool to see exactly which commit you want to pick. An example: | |
dd2e86 - 946992 - 9143a9 - a6fd86 - 5a6057 [master] | |
\ | |
76cada - 62ecb3 - b886a0 [feature] |
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 gs='git status' | |
alias gco='git checkout' | |
alias gc='git commit' | |
alias grb='git rebase' | |
alias gb='git branch' | |
alias ga='git add -A' | |
alias gpl='git pull' | |
alias gp='git push' | |
alias glg='git log --date-order --all --graph --format="%C(green)%h%Creset %C(yellow)%an%Creset %C(blue bold)%ar%Creset %C(red bold)%d%Creset%s"' | |
alias glg2='git log --date-order --all --graph --name-status --format="%C(green)%H%Creset %C(yellow)%an%Creset %C(blue bold)%ar%Creset %C(red bold)%d%Creset%s"' |
OlderNewer