This file contains hidden or 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
| #!/bin/bash | |
| FILE=$1 | |
| $(gzip < $FILE > $FILE.gz) |
This file contains hidden or 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 common = [], uncommon = [], rare = [], veryRare = [], extremelyRare = [], itemGrid, items; | |
| itemGrid = $("div.collection ul.item-grid"); | |
| items = itemGrid.children(); | |
| items.each(function(i,e){ | |
| var rarity; | |
| if($(this).find("span.title").children("a").attr("class")) { | |
| rarity = $(this).find("span.title").children("a").attr("class"); |
This file contains hidden or 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
| # Allow Hubot to brighten someone\'s day. | |
| # | |
| # Commands: | |
| # comp <name/me> - Give person a compliment! | |
| # compliment <name/me> - Give person a compliment! | |
| # Compliment data taken from http://emergencycompliment.com/ - thanks! | |
| compliments = [ | |
| "Your prom date still thinks about you all the time.", | |
| "All your friends worry they aren\u2019t as funny as you.", |
This file contains hidden or 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
| // Media Queries in Sass 3.2 | |
| // | |
| // These mixins make media queries a breeze with Sass. | |
| // The media queries from mobile up until desktop all | |
| // trigger at different points along the way | |
| // | |
| // And important point to remember is that and width | |
| // over the portrait width is considered to be part of the | |
| // landscape width. This allows us to capture widths of devices | |
| // that might not fit the dimensions exactly. This means the break |
This file contains hidden or 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
| findGroups = function(selector, size) { | |
| var groups = []; var group = []; | |
| $(selector).each(function(i, v){ | |
| group.push(v); | |
| if(group.length === size) { | |
| groups.push(group); | |
| group = []; | |
| } | |
| }); | |
| if(group.length !== 0) |
This file contains hidden or 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
| /* ---------------------------------------------------------- */ | |
| /* */ | |
| /* A media query that captures: */ | |
| /* */ | |
| /* - Retina iOS devices */ | |
| /* - Retina Macs running Safari */ | |
| /* - High DPI Windows PCs running IE 8 and above */ | |
| /* - Low DPI Windows PCs running IE, zoomed in */ | |
| /* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
| /* - Android hdpi devices and above */ |
This file contains hidden or 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
| <?php | |
| /* | |
| Plugin Name: Fix Such and Such Problem | |
| Description: This plugin fixes such and such because such and such is broken | |
| Version: 0.1 | |
| Author: Awesome Plugin Meister | |
| */ | |
| if(!class_exists('Such_Such_Fixer')){ | |
| class Such_Such_Fixer{ |
This file contains hidden or 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
| # Allow Hubot to give a burn Shakespeare would approve of. | |
| # | |
| # Commands: | |
| # insult <name> - Don't have a good comeback, ask for some backup.(name parameter optional) | |
| data = [["artless","bawdy","beslubbering","bootless","churlish","cockered","clouted","craven","currish","dankish","dissembling","droning","errant","fawning","fobbing","froward","frothy","gleeking","goatish","gorbellied","impertinent","infectious","jarring","loggerheaded","lumpish","mammering","mangled","mewling","paunchy","pribbling","puking","puny","qualling","rank","reeky","roguish","ruttish","saucy","spleeny","spongy","surly","tottering","unmuzzled","vain","venomed","villainous","warped","wayward","weedy","yeasty","cullionly","fusty","caluminous","wimpled","burly-boned","misbegotten","odiferous","poisonous","fishified"],["tardy-gaited","rampallian","beef-witted","dizzy-eyed","fool-born","scurvy-valiant","brazen-faced","muddy-mettled","beetle-headed","boil-brained","clapper-clawed","folly-fallen","base-court","full-gorged","flap-mouthed","mot |
This file contains hidden or 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 tabname { | |
| printf "\e]1;$1\a" | |
| } | |
| if [ x`type -t cd` == "xfunction" ]; then | |
| # previously wrapped cd | |
| eval $(type cd | grep -v 'cd is a function' | sed 's/^cd/original_cd/' | sed 's/^}/;}/' ) | |
| else | |
| # builtin | |
| eval "original_cd() { builtin cd \$*; }" |