The following will minify your assets with grunt each time a generation write completes.
- Install Dependencies
(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 | |
var Embed = { | |
config : { | |
elementId : 'embed', | |
trigger: document.querySelectorAll('[data-js="embedTrigger"]'), | |
videoId : 7100569, | |
autoplay : true, | |
vidWidth: 640, | |
vidHeight: 400 | |
}, |
#!/bin/bash | |
#Download the latest copy of WordPress into a directory, grab all the files in the new /wordpress folder | |
#Put all the files in the current directory, remove the now empty /wordpress directory | |
#Remove the tarball | |
#download latest wordpress with wget | |
wget http://wordpress.org/latest.tar.gz | |
#OR using CURL |
<?php | |
/********** | |
***** PHP Object Literal Pattern | |
***********/ | |
$object = (object) [ | |
'config' => (object) [ | |
'username' => 'Rob Bennet', | |
'email' => 'rob@madebyhoundstooth.com' | |
], |
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 |
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']; |