This file contains hidden or 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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase /mysite/ | |
RewriteCond %{REQUEST_FILENAME} !-f [NC] | |
RewriteRule ^app/uploads/(.*)$ http://mysite.com/app/uploads/$1 [R=301,L] | |
</IfModule> |
This file contains hidden or 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
{ | |
"name": "FlexbonesBuild", | |
"version": "5.0.0", | |
"description": "Watch sass,js and deploy", | |
"author": "Rory Ashford <[email protected]>", | |
"config": { | |
"theme": "wp-content/themes/flexbones", | |
"sass":"wp-content/themes/flexbones/assets/sass/style.scss", | |
"sassfolder":"wp-content/themes/flexbones/assets/sass", | |
"css":"wp-content/themes/flexbones/style.css", |
This file contains hidden or 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
/** | |
* dots.js | |
* Create dots for the explosion animation | |
* on the homepage | |
*/ | |
/** | |
* generates random dots within a circular outline | |
* |
This file contains hidden or 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
/** | |
* getWpVersionInfo - gets the lates WordPress version and download links | |
* @param {Function} cb Callback function that is neccessary for data and errors | |
* @return {Object} Thisreturns selected data extracted from the api/json request | |
*/ | |
function getWpVersionInfo(cb) { | |
// Pass the API details to the http.get method | |
return http.get({ | |
host: 'api.wordpress.org', | |
path: '/core/version-check/1.7/' |
This file contains hidden or 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
.content { | |
font-size: 1.2rem; | |
line-height: 1.5; } | |
@media (min-width: 800px) and (max-width: 900px) { | |
.content { | |
font-size: 1.4rem; } } | |
@media (min-width: 1000px) { | |
.content { | |
font-size: 1.8rem; | |
line-height: 1.3; } } |
This file contains hidden or 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
// ---- | |
// libsass (v3.1.0) | |
// ---- | |
// S/Small | |
$s: (null null); | |
// M/Medium | |
$m: (800px 900px); |
This file contains hidden or 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
{ | |
"name": "bob the builder", | |
"version": "0.1.0", | |
"description": "Build all the things", | |
"author": "Rory Ashford <[email protected]>", | |
"scripts": { | |
"compile-sass": "node-sass --output-style compressed assets/sass/style.scss style.css && autoprefixer --map style.css", | |
"browserify-js": "browserify assets/js/scripts.js -o scripts.js", | |
"uglify-js": "uglifyjs scripts.js -o scripts.min.js -c", | |
"process-js": "npm run browserify-js && npm run uglify-js", |
This file contains hidden or 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
/** | |
* testFoo | |
* | |
* @param {[int]} $foo [description] | |
* @param {[int]} $bar [description] | |
*/ | |
@mixin testFoo($foo,$bar){ | |
width: $foo; | |
height: $bar; | |
} |
This file contains hidden or 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
/** | |
* _aspect-ratios.scss | |
* | |
* Mixin to display block level elements at | |
* fixed aspect ratios using padding top | |
* on an :after pseudo element. | |
*/ | |
@mixin aspect-ratio($h,$v){ | |
This file contains hidden or 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
/** | |
* After reading a few articles | |
* (http://substack.net/task_automation_with_npm_run) | |
* (http://blog.keithcirkel.co.uk/why-we-should-stop-using-grunt/) | |
* and discussing with other developers on Twitter | |
* (@benhowdle, @_mikefrancis,@zachmayberry) | |
* I put together a replacement of my current Grunt workflow using npm via | |
* package.json using npm cli plugins instead of grunt specific plugins. | |
* | |
* I found that several grunt plugins were just wrappers for npm mopdules, |
NewerOlder