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
var Chrome = Application('Google Chrome'); | |
var Safari = Application('Safari'); | |
Safari.includeStandardAdditions = true; | |
Chrome.includeStandardAdditions = true; | |
var urls = []; | |
Safari.windows[0].tabs().forEach(function(tab) { | |
console.log(tab.url()) |
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
### The commands | |
# Show all collections and the number of documents in each | |
mongo zngine_dev --eval "printjson(db.getCollectionNames().forEach(function(coll){printjson(coll+\"-\"+db[coll].count())}))" | |
# Drop all collections and remove all indexes from mongo | |
mongo zngine_dev --eval "db.getCollectionNames().forEach( function(coll) { if(coll!=\"system.indexes\") { db[coll].drop(); db[coll].dropIndexes(); } } )" | |
# Count all Redis keys | |
redis-cli keys "*" | wc -l | |
# Clear all Redis keys | |
redis-cli flushall | |
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
db.Page.insert({ | |
name : 'page-X', | |
title : 'Title Here', | |
sections : [ | |
{ | |
name : 'hero-1', | |
content : 'all content here blah blah' | |
}, | |
{ | |
name : 'hero-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
MLB | |
Arizona Diamondbacks: #C51230 (red) | #241E20 (black) | |
Atlanta Braves: #01487E (blue) | #D60D39 (red) | |
Baltimore Orioles: #020001 (black) | #DF4601 (orange) | |
Boston Red Sox: #0E2B55 (blue) | #BD3039 (red) | |
Chicago Cubs: #0E3386 (blue) | #D12325 (red) | |
Chicago White Sox: #000000 (black) | #555B66 (dark gray) | #DCDDDF (silver) | |
Cincinnati Reds: #EB184B (red) | #FFFFFF (white) | |
Cleveland Indians: #023465 (dark blue) | #EE113D (red) | |
Colorado Rockies: #000000 (black) | #333366 (purple) | #CACDCD (light gray) |
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
var html = ''; | |
icons.forEach(function(icon) { | |
html += '<tr><td><code>icon-' + icon + '</code></td><td><i class="icon-' + icon + '"></i></td></tr>'; | |
}); | |
$("#icon_table").html( html ); |
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
<?php | |
$sets = ['access' => ['wheelchair','speaker','fontsize','eject','view-mode','eyeball','asl','person','question','adult','child','glasses','cc','blind','braille','iphone-home','w3c','css','key','hearing-impaired','male','female','network','guidedog','universal-access','elevator'], 'social' => [ 'thumb-up','thumb-down','rss','facebook','twitter','pinterest','github','path','linkedin','dribbble','stumble-upon','behance','reddit','google-plus','youtube','vimeo','flickr','slideshare','picassa','skype','steam','instagram','foursquare','delicious','chat','torso','tumblr','video-chat','digg','wordpress'], 'general' => [ 'settings','heart','star','plus','minus','checkmark','remove','mail','calendar','page','tools','globe','home','quote','people','monitor','laptop','phone','cloud','error','right-arrow','left-arrow','up-arrow','down-arrow','trash','add-doc','edit','lock','unlock','refresh','paper-clip','video','photo','graph','idea','mic','cart','address-book','compass','flag','location','clock','folder',' |
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
// Let's wrap all these into the same file :D | |
@mixin i-class($name,$pua) { | |
.#{$classPrefix}#{$name}:before { | |
content: "\f#{$pua}"; | |
} | |
} | |
@mixin ie-class($name,$pua) { | |
.#{$classPrefix}#{$name} { |
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
/** | |
* Links and such | |
* | |
* http://docs.mongodb.org/manual/reference/mongo-shell/ | |
* http://docs.mongodb.org/manual/reference/javascript/ | |
* http://docs.mongodb.org/manual/reference/meta-query-operators/ | |
*/ | |
/** | |
* Show the names of all collections and the number of documents in each of them. |
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
/** | |
* All of the following Mixins are credited to their original authors, I DID NOT write ANY of these awesome things | |
* unless I specifically commented immediately preceding the mixin. | |
*/ | |
// underscore-pickrandom.js | |
// (c) 2012 Simon Kågedal Reimer | |
// This file is freely distributable under the MIT license. | |
// https://gist.github.com/skagedal/1709989 | |
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
[ | |
// Nil theme for Sublime Text 2 | |
// https://github.com/nilium/st2-nil-theme | |
// TABS | |
// ========================================================== | |
// - Tabset |
NewerOlder