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
function anUnchecked() | |
{ | |
'use strict'; | |
return true; | |
} | |
function getPlayer() | |
{ | |
return { | |
isWorthy: anUnchecked |
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
console.log('Loading express server...'); | |
var path = require('path'); | |
var express = require('express'); | |
var app = express(); | |
app.use('/', express.static('./')); | |
app.use('/bower_components', express.static('bower_components')); | |
app.use('/node_modules', express.static('node_modules')); | |
var port = 8628; | |
app.listen(port, 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
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.2.14/angular-ui-router.min.js"></script> |
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
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.4/angular.min.js"></script> |
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
{ | |
"names": [ | |
"Thor", | |
"Captain America", | |
"Hawkeye", | |
"Hulk", | |
"Black Widow", | |
"Falcon", | |
"Ironman", | |
"Vision", |
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
{ | |
"images": [ | |
"http://www.hdwallpapers.in/walls/thor_2_the_dark_world_movie-wide.jpg", | |
"http://img4.wikia.nocookie.net/__cb20150208173400/disney/images/f/fa/Captain-America-AOU-Render.png", | |
"http://img1.wikia.nocookie.net/__cb20131114045927/disney/images/d/d7/IronMan-IM.jpg", | |
"https://vdizzle129.files.wordpress.com/2013/02/2333369-hulk_001.jpg", | |
"http://static.comicvine.com/uploads/original/6/69951/3095102-hawkeye.png", | |
"http://vignette2.wikia.nocookie.net/marvelcinematicuniverse/images/5/57/AoU_Black_Widow_0003.png/revision/latest?cb=20150310045950", | |
"http://img1.wikia.nocookie.net/__cb20050528232427/marveldatabase/images/a/a7/Falcon_002.jpg", |
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
void testBasicPromises() | |
{ | |
// 1, 3, 2 | |
void basic() | |
{ | |
print("1"); | |
new Future.delayed(new Duration(seconds: 3), () | |
{ | |
print("2"); |
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
//RxJS: schedule streams containing DOM side effects with window.requestAnimationFrame: | |
stream.observeOn(Rx.Scheduler.requestAnimationFrame); |
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
// validators.js | |
var lodash = require('lodash'); | |
var XRegExpLib = require('xregexp').XRegExp; | |
var momentLib = require('moment'); | |
var predicate = require('./predicate'); | |
var arrayValidator = require('./native/array'); | |
var validators = { | |
predicate: predicate, |
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
// Polymer component should have content tags in template | |
<template> | |
<!-- paper stuff --> | |
<content></content> | |
</template> | |
// Angular external directive template should have transclude target & have transclude to true | |
<your-polymer-component> | |
<div ng-transclude></div> | |
</your-polymer-component> |