#A simple Slideshow module wrapped in a Backbone View
- Dependencies ** underscore.js ** backbone.js
Viewable in action in this jsfiddle
VERSION ?= $(shell cat VERSION) | |
.PHONY: help version clean bump release | |
.DEFAULT_GOAL := help | |
build: ## build the app | |
do stuff | |
clean: ## clean artifacts |
FROM ubuntu:xenial | |
MAINTAINER Test Double <dave@testdouble.com> | |
RUN apt-get -y update | |
RUN apt-get -y install git-core | |
ENV NODENV_ROOT /usr/local/lib/nodenv | |
RUN git clone https://github.com/nodenv/nodenv.git ${NODENV_ROOT} | |
RUN git clone https://github.com/nodenv/node-build.git ${NODENV_ROOT}/plugins/node-build | |
RUN git clone https://github.com/nodenv/nodenv-update.git ${NODENV_ROOT}/plugins/nodenv-update |
app.constant("RouteManifest", { | |
"/login" : { | |
templateUrl: 'templates/login.html', | |
controller: 'LoginController' | |
}, | |
"/home" : { | |
templateUrl: 'templates/home.html', | |
controller: 'HomeController' | |
}, |
#A simple Slideshow module wrapped in a Backbone View
Viewable in action in this jsfiddle
;(function($){ | |
var touch = {}, | |
touchTimeout, tapTimeout, swipeTimeout, | |
longTapDelay = 750, longTapTimeout | |
function parentIfText(node) { | |
return 'tagName' in node ? node : node.parentNode | |
} | |
function swipeDirection(x1, x2, y1, y2) { |
void Update () { | |
if(Input.touchCount == 1) { | |
Touch touch = Input.touches[0]; | |
if(touch.phase == TouchPhase.Ended && guiTexture.HitTest(touch.position)) { | |
appController.SendMessage("nextProduct"); | |
} | |
} | |
} |
`/** @jsx React.DOM */` | |
React = require("react") | |
$ = require("jquery-browserify") | |
converter = new Showdown.converter | |
Comment = React.createClass | |
render: -> | |
rawMarkup = converter.makeHtml @props.children.toString() |
(function($, _) { | |
$.cil = $.cil || {}; | |
$.cil.protokit = function(opts) { | |
var self = {}; | |
var defaults = { | |
boilerplate: false | |
}; | |
_.extend(defaults, opts); |
/** | |
* Backbone sessionStorage Adapter | |
* Based on https://github.com/jeromegn/Backbone.localStorage | |
*/ | |
(function() { | |
// A simple module to replace `Backbone.sync` with *sessionStorage*-based | |
// persistence. Models are given GUIDS, and saved into a JSON object. Simple | |
// as that. |
$ cat ~/.gitconfig | |
[user] | |
name = David Mosher | |
email = davidmosher@gmail.com | |
[core] | |
autocrlf = input | |
safecrlf = false | |
editor = vim | |
excludesFile = /Users/davidmosher/.gitignore_global | |
[github] |