Skip to content

Instantly share code, notes, and snippets.

View jforaker's full-sized avatar

Jake Foraker jforaker

View GitHub Profile
@jforaker
jforaker / People.js
Created April 23, 2014 15:49
scrollable config
scrollable: {
fps: 'auto',
direction : 'vertical',
directionLock: true,
indicators: false,
momentumEasing: {
momentum: {
acceleration: 30, // how slowly it stops - high # = stops less
friction: 0.7 // stick factor
},
@jforaker
jforaker / FeedItemView.js
Created April 10, 2014 22:21
Multiple tap listeners
listeners: {
tap: {
element: 'element',
delegate: '.app-box, .doc-box, .bubble-holder',
fn: function(e){
var url = e.target.name
, name = e.delegatedTarget.textContent
, divClassName = e.delegatedTarget.className
@jforaker
jforaker / SeatingChart.js
Created April 7, 2014 15:11
Sencha Touch multiple listeners on XTemplate DOM elements
listeners:{
tap: {
element: 'element',
delegate: '.student-seat .doc-box, .bubble-holder',
fn: function(e){
var me = this;
var url = e.target.name
@jforaker
jforaker / devise_controller.rb
Created March 12, 2014 19:27
open gem file
export BUNDLER_EDITOR=mine
bundle open devise