The following will minify your assets with grunt each time a generation write completes.
- Install Dependencies
| rsync -zvr /from/here /to/here |
| var Tumblr = { | |
| posts: { | |
| // this will get filled by the ajax response upon success | |
| }, | |
| config: { | |
| dataType: 'jsonp', | |
| apiKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx', | |
| limit: '1', | |
| endpoint: 'http://api.tumblr.com/v2/blog/pixelpressgame.tumblr.com/posts/text', |
| mysql -u USERNAME -p -h localhost YOUR-DATA-BASE-NAME-HERE < YOUR-.SQL.FILE-NAME-HERE |
| <?php | |
| /********** | |
| ***** PHP Object Literal Pattern | |
| ***********/ | |
| $object = (object) [ | |
| 'config' => (object) [ | |
| 'username' => 'Rob Bennet', | |
| 'email' => '[email protected]' | |
| ], |
| var Embed = { | |
| config : { | |
| elementId : 'embed', | |
| trigger: document.querySelectorAll('[data-js="embedTrigger"]'), | |
| videoId : 7100569, | |
| autoplay : true, | |
| vidWidth: 640, | |
| vidHeight: 400 | |
| }, |
The following will minify your assets with grunt each time a generation write completes.
| // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
| // requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
| // MIT license | |
| (function() { | |
| var lastTime = 0; | |
| var vendors = ['ms', 'moz', 'webkit', 'o']; |
| (function($) { | |
| $('a[href*=#]:not([href=#])').click(function() | |
| { | |
| if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') | |
| || location.hostname == this.hostname) | |
| { | |
| var target = $(this.hash), | |
| headerHeight = $(".primary-header").height() + 5; // Get fixed header height | |
| <!DOCTYPE html> | |
| <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
| <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
| <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title></title> | |
| <meta name="description" content=""> |