Skip to content

Instantly share code, notes, and snippets.

View keenahn's full-sized avatar
🧙

Keenahn Tiberius Jung keenahn

🧙
View GitHub Profile
@keenahn
keenahn / rotator_builder.js
Created July 6, 2012 19:23
Simple collection rotator for slideshows, quotes, etc.
(function() {
jQuery(function() {
var looper, rotator_builder;
rotator_builder = function(selector, args) {
var $items, cur, loop_fn, num_items, prev, show_dur, trans_in, trans_in_dur, trans_out, trans_out_dur;
trans_in = args.trans_in || "fadeIn";
trans_out = args.trans_out || "fadeOut";
trans_in_dur = args.trans_in_dur || 1000;
trans_out_dur = args.trans_out_dur || 400;
@keenahn
keenahn / rotator_builder.js.coffee
Created July 6, 2012 19:21
Simple collection rotator for slideshows, quotes
jQuery ->
# rotate items
rotator_builder = (selector, args) ->
trans_in = args.trans_in || "fadeIn"
trans_out = args.trans_out || "fadeOut"
trans_in_dur = args.trans_in_dur || 1000
trans_out_dur = args.trans_out_dur || 400
show_dur = args.show_dur || 7000
// Here are some variables, then a mixin and then an application of the mixin - this will only compile using Sass 3.2
//variables
$XS: 12.5em; // 200px;
$S: 18.75em; // 300px
$SM: 35em; // 560px
$M: 47.5em; // 760px
$L: 63em; // 1008px
$XL: 110em; // 1760px
$XXL: 180em; // 2880px
@keenahn
keenahn / remove_snipps.sh
Last active August 29, 2015 14:08 — forked from dreadatour/gist:7475747
Remove all default Sublime Text 3 snippets for Python language
# Sublime Text 3 languages list:
ls -1 /Applications/Sublime\ Text.app/Contents/MacOS/Packages/
# Remove all default Sublime Text 3 snippets for Python language
export ST3_LANG="Python"
mkdir -p ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/$ST3_LANG/
unzip -l /Applications/Sublime\ Text.app/Contents/MacOS/Packages/$ST3_LANG.sublime-package | grep '.sublime-snippet' | awk '{print $4}' | while read f; do touch ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/$ST3_LANG/$f; done
unset ST3_LANG