- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
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
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName:'Ember Twiddle', | |
| actions: { | |
| prevent(e) { | |
| console.log("here we are"); | |
| e.preventDefault(); | |
| return false; | |
| }, |
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
| // The following example creates complex markers to indicate beaches near | |
| // Sydney, NSW, Australia. Note that the anchor is set to (0,32) to correspond | |
| // to the base of the flagpole. | |
| function initMap() { | |
| var map = new google.maps.Map(document.getElementById('map'), { | |
| zoom: 10, | |
| center: {lat: -33.9, lng: 151.2} | |
| }); |
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
| var s3 = new S3({ | |
| accessKeyId: process.env.S3_KEY, | |
| secretAccessKey: process.env.S3_SECRET | |
| }); |
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": "typeahead-hacked", | |
| "version": "0.0.1", | |
| "main": "type-ahead-hacked.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
| function adriver(ph, prm, defer){ | |
| var my = this, p = ph; | |
| if(this instanceof adriver){ | |
| if(typeof(p)=='string')p=document.getElementById(ph); | |
| else ph=p.id; | |
| if(!p){ | |
| if(!adriver.isDomReady)adriver.onDomReady(function(){new adriver(ph, prm, defer)}); | |
| return null | |
| } |
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
| var async = require('async'); | |
| var ids = ['1','2','3']; | |
| var work = function(item, cb){ | |
| setTimeout(function(){ | |
| cb(null,item); | |
| },10); | |
| }; |
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
| var async = require('async'); | |
| var array = []; | |
| var work = function(item, cb){ | |
| setTimeout(10,cb.bind(null,'result')); | |
| }; | |
| async.each(array,work,function(err,res){ | |
| console.log(err,res); |
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
| var Step = require('step'); | |
| function someFunc(i, callback){ | |
| function cbWrapper(){ callback(undefined, i); } | |
| i % 2 == 0 ? cbWrapper() : setTimeout(cbWrapper, 10); | |
| } | |
| Step( | |
| function process(){ | |
| var group = this.group(); | |
| for(var i = 0; i < 10; i++){ |
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
| var async = require('async'); | |
| function someFunc(i, callback){ | |
| function cbWrapper(){ | |
| callback(null, i); | |
| } | |
| i % 2 == 0 ? cbWrapper() : setTimeout(cbWrapper, 100); | |
| } | |
| var jobs = []; |