This file contains 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
/* | |
* Sick of using jQuery - but still want to utilize it's selector engine | |
* and third-party plugins? Me too! | |
* | |
* Make sure you add Zepto's source first from http://zeptojs.com/. | |
* | |
* If you only need the minified version of Zepto and are using bower you can install it by: | |
* $ bower install http://zeptojs.com/zepto.min.js --save | |
* | |
* I will document with comments what specific methods are intended for below. |
This file contains 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
This GIST illustrates a hack to allow for configurable backend-url and admin styles in Keystone.js | |
New deps introduced: | |
- node-dir | |
- shelljs | |
New directory structure after running "yo keystone": | |
. | |
|____admin | |
| |____assets |
This file contains 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
var NumbrScribe = (function(plugin){ | |
plugin = { | |
write:function(data){ | |
//Validate Data | |
var integer = Number(data), | |
isInteger = (integer % 1 === 0) ? true : false, | |
maxLength = plugin.digits.increments.length * 3, | |
tooLarge = (data.toString().split('').length > maxLength) ? true : false, | |
state, | |
output; |