#node-tasker An exercise on Promises and flows (simulating Grunt tasks on a node server)
##Usage
tasker.registerTask('test1', function(){
console.log('test1');
});
tasker.registerTask('test2', function(resolve, reject){
//test case http://jsfiddle.net/NHZ6W/ | |
(function(Element, undefined){ | |
var _setAttribute = Element.prototype.setAttribute; | |
Element.prototype.setAttribute = function(attrName, attrValue){ | |
if (this.hasAttribute(attrName)) { | |
if (attrValue !== undefined) { | |
_setAttribute.call(this, attrName, attrValue); | |
} | |
//do nothing if attr exists and action is to create |
/* | |
Tested on | |
(Windows 7) | |
Chrome, Firefox | |
(Android 4.1) | |
Android Browser, Chrome, Firefox | |
(iOS 6.1.3) | |
Safari | |
*/ |
#node-tasker An exercise on Promises and flows (simulating Grunt tasks on a node server)
##Usage
tasker.registerTask('test1', function(){
console.log('test1');
});
tasker.registerTask('test2', function(resolve, reject){
/* experimental, flexbox grid */ | |
@fg_total_columns: 12; | |
.fg-row { | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
display: flex; | |
} | |
.fg-col-base { | |
-moz-box-sizing: border-box; |
{ | |
"terms": { | |
"search": "tração", | |
"text": "Concentração prévia tração centrado" | |
}, | |
"found": true, | |
"result": [ | |
{ | |
"str": "Concen", | |
"isMatch": false |
##Install
1 - Node + NPM: http://nodejs.org/download/
2 - Ruby: http://rubyinstaller.org/downloads/
3 - Run:
gem install compass-sourcemaps --pre
npm install grunt-contrib-watch grunt-contrib-compass --save
// create Gruntfile.js as below, then proceed to next line
grunt init
.lt-ie9 .top-bar { | |
background: #2f2f2f; | |
*zoom: 1; | |
overflow: visible; | |
} | |
.lt-ie9 .top-bar:before, .lt-ie9 .top-bar:after { | |
content: " "; | |
display: table; | |
} | |
.lt-ie9 .top-bar:after { clear: both; } |
@charset "UTF-8"; | |
/*--------------------------------------------------------------- | |
IE78 - Zurb Foundation 4 Grid | |
ˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍ | |
https://gist.github.com/replete/7082477 | |
(an enhanced fork of https://gist.github.com/zurbchris/5068210 ) | |
1) Make sure $row-width-px = your max large breakpoint row width (e.g. 960px) |
@charset "UTF-8"; | |
/*--------------------------------------------------------------- | |
IE6-7 Box-sizing polyfill, for Zurb ruleset | |
ˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍ | |
https://gist.github.com/replete/7082518 | |
1) Requires box-sizing.htc from https://github.com/Schepp/box-sizing-polyfill | |
˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭*/ |