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
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
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
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
### 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
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()) |
OlderNewer