Skip to content

Instantly share code, notes, and snippets.

@nikolowry
nikolowry / zepto.polyfills.js
Created March 30, 2015 16:54
Zepto.polyfills.js
/*
* 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.
@nikolowry
nikolowry / ._readme
Last active December 26, 2018 06:24
Customize Keystone
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
@nikolowry
nikolowry / numbrscribe.js
Last active August 29, 2015 13:56
Logic Quiz
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;