Just a fast guide to applying a 3 column layout using HTML and CSS3.
This is my personal favorite..
| /* | |
| Ad King Pro HTML5 Iframe Banner hack | |
| Created by Matt McFarland - [email protected] | |
| To use this, you need to enqueue this script into your wordpress. Or just use <script> tags if you're a n00b. | |
| This will only work, if you create a subfolder in your wp-content folder called "adverts" | |
| Then create another subfolder in adverts and make it the campaign name like "newsletter" | |
| Then create yet another subfolder inside the new adverts folder you made that is the banner size. | |
| The banner size must be widthxheight and nothing else. So for example, 468x60 | |
| Then slap your html5 banner in there ie "banner.html" |
| #/bin/bash | |
| rm -rf node_modules && rm -rf bower_components | |
| npm cache clean | |
| npm install . | |
| bower install |
| // This hidden gem was found at http://stackoverflow.com/questions/9865804/proper-way-to-sort-a-backbone-js-collection-on-the-fly (buried in the answers) | |
| // Following example above do in the view: | |
| // Assign new comparator | |
| this.collection.comparator = function( model ) { | |
| return model.get( 'lastname' ); | |
| } | |
| // Resort collection | |
| this.collection.sort(); |
| #/bin!bash | |
| HOST="http://127.0.0.1:5984" | |
| curl -X PUT $HOST/registry | |
| curl -X PUT $HOST/_config/admins/$1 -d '"$2"' | |
| npm start --npm-registry-couchapp:couch=http://$1:$2@localhost:5984/registry |
No fuss, no Muss.
Everytime I set up a new ubuntu 14.04 server and I want nodejs globally installed I have to go hunting.
So this just fixes everything.
# hope you ran with sudo
sudo apt-get update| ########## Web Application Development for BASH made easy | |
| # This shell script contains a collection of excellent scripts I've found over the years that enhance development. | |
| # It is organized much like a traditional etc/*conf file, and I hope others find it useful. | |
| # | |
| # YOU MUST HAVE X-CODE installed | |
| # | |
| # Features include: | |
| # - Homebrew | |
| # - Sexy git bash status prompt | |
| # - NodeJS Version Manager (nvm) |