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
{ | |
"name": "", | |
"description": "", | |
"version": "0.0.0", | |
"private": true, | |
"author": "Brian Frichette", | |
"homepage": "", | |
"contributors": [ "Brian Frichette <brian.frichette@gmail.com> (https://github.com/brian-frichette)" ], | |
"bugs": { "url": "" }, | |
"scripts": { "start": "nodemon app.js" }, |
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
unless Function::bind | |
Function::bind = (oThis) -> | |
# closest thing possible to the ECMAScript 5 internal IsCallable function | |
if typeof this isnt "function" | |
throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable") | |
aArgs = Array::slice.call(arguments, 1) | |
fToBind = this | |
fNOP = -> |
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
if (!Function.prototype.bind) { | |
Function.prototype.bind = function (oThis) { | |
if (typeof this !== "function") { | |
// closest thing possible to the ECMAScript 5 internal IsCallable function | |
throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable"); | |
} | |
var aArgs = Array.prototype.slice.call(arguments, 1), | |
fToBind = this, | |
fNOP = function () {}, |
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
### | |
Initialize a new `Emitter`. | |
@api public | |
### | |
module.exports = Emitter = (obj) -> | |
return mixin(obj) if obj | |
@_callbacks = {} | |
### |
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 is really just an interaction wrapper for amplify | |
# I prefer this syntax for interacting with storage. | |
class Stor | |
# Constructor sets defaults for amplify | |
# and optionally for expiration and key | |
constructor: (key, exp) -> | |
@key = if key? then key else undefined | |
@exp = if exp? then exp else null | |
@amp = amplify.store |
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
# Requires jQuery.slideFade.coffee gist | |
# https://gist.github.com/4425644 | |
app.directive 'slideFadeShow', -> | |
(scope, elem, attrs) -> | |
$elem = $(elem) | |
exp = attrs.slideFadeShow | |
duration = 600 | |
slideElem = (toShow, init = false) -> |
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
# jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ | |
# Uses the built in easing capabilities added In jQuery 1.1 to offer multiple easing options | |
# TERMS OF USE - jQuery Easing | |
### | |
jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ | |
Copyright (c) 2008 George McGinley Smith and (c) 2001 Robert Penner | |
Open source under the BSD License. (http://www.opensource.org/licenses/bsd-license.php) |
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
### | |
Adapted from jqMobi (appMobi) | |
https://github.com/appMobi/jQ.Mobi | |
MIT License | |
### | |
window.UserAgent = -> | |
self = @ | |
self.ua = navigator.userAgent | |
self.os = {} |
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
# By default requires jQuery.easing by default | |
# change default easing to 'swing' if not using | |
# jQuery.slideFade | |
# Copyright © Brian Frichette, 2012+, All Rights Reserved. | |
# License: MIT http://opensource.org/licenses/mit-license.php | |
# Usage: | |
# @param {String} type A string value of either 'show', 'hide', or 'toggle' (default: 'toggle') |
NewerOlder