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
define(function (require, exports, module) { | |
var OptionsManager = require('famous/core/OptionsManager'); | |
var MouseSync = require("famous/inputs/MouseSync"); | |
var sync = new MouseSync(); | |
function Draggable(options) { | |
this.options = Object.create(Draggable.DEFAULT_OPTIONS); | |
this._optionsManager = new OptionsManager(this.options); |
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
/* This Source Code Form is subject to the terms of the Mozilla Public | |
* License, v. 2.0. If a copy of the MPL was not distributed with this | |
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
* | |
* Owner: [email protected] | |
* @license MPL 2.0 | |
* @copyright Famous Industries, Inc. 2014 | |
*/ | |
define(function(require, exports, module) { |
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 () { | |
var myList; | |
var List = function () { | |
this.listSize = 0; | |
this.pos = 0; | |
this.dataStore = []; |
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
#!/bin/sh | |
echo "Creating $1" | |
express --css stylus $1 | |
cd $1 | |
touch README.md | |
npm install | |
touch run_locally.sh | |
chmod 777 run_locally.sh | |
echo "web: node app.js" > Procfile | |
echo "node_modules" .gitignore |
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 ninja = { | |
chirp: function signal(n) { | |
if (n > 1) { | |
return signal(n-1) + " - chirp"; | |
} | |
else{ | |
return "chirp"; | |
} | |
} |
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 methodMixin = function (func, obj){ | |
var args = Array.prototype.slice.apply(arguments, [2]); | |
return function () { | |
func.apply(obj, args); | |
} | |
}; |
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 () { | |
"use strict"; | |
var mixin = function () { | |
var arg, | |
prop, | |
mixedChild = { }, | |
len = arguments.length; | |
for (arg = 0; arg < len; arg ++) { |
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 () { | |
"use strict"; | |
var list = [ | |
{ name: "level 1", obs: [ | |
{name: "level 2", obs: [ | |
{name: "level 3 a"}, | |
{name: "level 3 b"} | |
]} |
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 () { | |
"use strict"; | |
angular.module("exampleApp") | |
.factory("WebWorks", ["$q", function ($q) { | |
var worker = new Worker('scripts/workers/doWork.js'); | |
var defer; | |
worker.addEventListener('message', function(e) { |
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 () { | |
"use strict"; | |
angular.module("exampleApp") | |
.provider("Person", function () { | |
this.$get = [function () { | |
var Person = function (id) { |