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
List of current dependencies as of July 14, 2014. On the left is the current dependency, on the right, the possible replacement: | |
"grunt": "~0.4.1", https://github.com/gulpjs/gulp/ | |
"grunt-autoprefixer": "~0.4.0", https://github.com/Metrime/gulp-autoprefixer | |
"grunt-bower-install": "~0.7.0", https://github.com/taptapship/wiredep | |
"grunt-concurrent": "~0.4.1", Likely unneeded since gulp runs concurrent by default. | |
"grunt-contrib-clean": "~0.5.0", https://github.com/robrich/gulp-rimraf | |
"grunt-contrib-compass": "~0.6.0", https://github.com/appleboy/gulp-compass | |
"grunt-contrib-concat": "~0.3.0", https://github.com/wearefractal/gulp-concat | |
"grunt-contrib-connect": "~0.5.0", https://github.com/avevlad/gulp-connect |
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
/* AngularDDP - a client for DDP version pre1 */ | |
angular.module('angularDDP', ['$q']) | |
.factory("DDP", function (wsUri) { | |
function Constructor(wsUri) { | |
this.VERSIONS = ["pre1"]; | |
this.wsUri = wsUri; | |
this.sock; | |
this.defs = {}; // { deferred_id => deferred_object } |
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
Uncaught Error: [$injector:modulerr] Failed to instantiate module starter due to: | |
Error: [$injector:modulerr] Failed to instantiate module starter.controllers due to: | |
Error: [$injector:modulerr] Failed to instantiate module angularDDP due to: | |
Error...<omitted>...1) |
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
.factory('genericCollectionFactory',function(){ | |
function Collection() { | |
var _items = []; | |
function get () { | |
return _items; | |
} | |
function add (item) { |
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
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"definitions": { | |
"shift": { | |
"$ref": "members-rest-api/schema/#/definitions/shift" | |
}, | |
"blah": { | |
"test": "boolean" | |
} | |
} |
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
// ... | |
// ... SNIP: You should include and wire up express as needed before this | |
// ... | |
// Falcor deps | |
var falcor = require('falcor'); | |
var falcorExpress = require('falcor-express'); | |
var bodyParser = require('body-parser'); | |
// ROUTES |
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
/** | |
* Have your component extend this class temporarily when you | |
* need lifecycle callback tracking / debugging. See second | |
* file for how to use this class in your component. | |
*/ | |
class LifecycleCallbackTracker { | |
staticCallCounts: Object = {}; | |
textColor: string; | |
constructor(textColor?: string) { |
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
# DESCRIPTION | |
# Performs the commands needed to download and set up a new angular2 project using typescript and jspm | |
# | |
# Assumes you have these: | |
# - git | |
# - node / io.js | |
# - npm | |
# - npm install -g jspm@beta **NOTE**: you must have the beta release of jspm installed | |
# | |
# USAGE |
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
{ | |
"New NG2 Component (Item)": { | |
"prefix": "ng2c", | |
"body": [ | |
"import {Component, View, CORE_DIRECTIVES, FORM_DIRECTIVES} from 'angular2/angular2';", | |
"// import {ExampleListComponent} from '../example/example-list.component';", | |
"", | |
"@Component({", | |
" selector: '${1:dashed-name}',", | |
" properties: ['id']", |
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
javascript:void((function(){var loc = location.href; var base = loc.split('?')[0]; loc.indexOf("?") == -1 || loc.indexOf("?ionicplatform=ios") > -1 ? (location.href = base+"?ionicplatform=android") : (location.href = base+"?ionicplatform=ios");})()); |
OlderNewer