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
### Aliases | |
# Open specified files in Sublime Text | |
# "s ." will open the current directory in Sublime | |
alias s='open -a "Sublime Text 2"' | |
alias bp='open ~/.bash_profile' | |
# Color LS | |
colorflag="-G" | |
alias ls="command ls ${colorflag}" |
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
/* | |
* AnythingSlider Video Controller 1.3 beta for AnythingSlider v1.6+ | |
* By Rob Garrison (aka Mottie & Fudgey) | |
* Dual licensed under the MIT and GPL licenses. | |
*/ | |
(function($) { | |
$.fn.anythingSliderVideo = function(options){ | |
//Set the default values, use comma to separate the settings, example: | |
var defaults = { |
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> | |
$(function(){ | |
$('#slider1').anythingSlider({ | |
resizeContents : true, | |
addWmodeToObject : 'transparent', | |
enableNavigation : false, | |
buildArrows : false, | |
easing : 'easeInOutCubic' | |
}) |
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
/* MY FIRST PUB/SUB jQuery | |
* ESCHIE/DESIGN_PATTERNS | |
* | |
*/ | |
(function($) { | |
var o = $( {} ); | |
$.each({ | |
trigger: 'publish', |
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
// Polyfill -- Extend Object.create for older browsers | |
if ( typeof Object.create !== 'function' ){ | |
Object.create = function ( obj ) { | |
function F(); | |
F.prototype = obj; | |
return new F(); | |
}; | |
} | |
(function( $, window, document, 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
while read url; do curl -o $(basename $url.html) "$url"; done < ../urllist.txt |
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
tail -n +2 test.css > test.css | |
# remove up to the second line (remove first line) of a file and output to new file | |
for file in *.css; do tail -n 7 "$file" > "${file%.css}".new.css; 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
javascript:void((function(){var%20u%20=%20decodeURIComponent(window.top.location.href);var%20sub1%20=%20'https://m.facebook.com/lsr.php?u=';%20window.top.location.href%20=%20u.substring(sub1.length,%20u.indexOf('&ext'));})()) |
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
`cat>/dev/null` redirects the command standard output to the null device, special device which discards the information written to it. |
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 | |
set -euo pipefail | |
OlderNewer