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
// Sample Testacular configuration file, that contain pretty much all the available options | |
// It's used for running client tests on Travis (http://travis-ci.org/#!/vojtajina/testacular) | |
// Most of the options can be overriden by cli arguments (see testacular --help) | |
// base path, that will be used to resolve files and exclude | |
basePath = '' | |
// list of files / patterns to load in the browser |
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
'use strict'; | |
/* jasmine specs for controllers go here */ | |
describe('PhoneCat controllers', function() { | |
describe('PhoneListCtrl', function() { | |
beforeEach(module('phonesCat.controllers')); |
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
'use strict' | |
#jasmine specs for controllers go here | |
describe 'PhoneCat controllers', -> | |
describe 'PhoneListCtrl', -> | |
beforeEach module 'phonesCat.controllers' |
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
$scope.hello = (name)-> | |
alert "hello #{(name || 'world')}!" |
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
<html> | |
<head> | |
<!-- Load Ooyala Player --> | |
<script src='http://player.ooyala.com/v3/replace_with_player_branding_id'></script> | |
</head> | |
<body> | |
<!-- Player Placement --> |
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
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
// author: Pawel Kozlowski | |
var myApp = angular.module('myApp', []); | |
//service style, probably the simplest one | |
myApp.service('helloWorldFromService', function() { | |
this.sayHello = function() { | |
return "Hello, World!" |
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
var _cli = require('commander'), | |
_minimatch = require('minimatch'), | |
_wrench = require('wrench'), | |
_fs = require('fs'), | |
_path = require('path'), | |
_requirejs = require('requirejs'); | |
// ======== |
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 webpackUniversalModuleDefinition(root, factory) { | |
if(typeof exports === 'object' && typeof module === 'object') | |
module.exports = factory(); | |
else if(typeof define === 'function' && define.amd) | |
define(factory); | |
else if(typeof exports === 'object') | |
exports["fantasy"] = factory(); | |
else | |
root["fantasy"] = factory(); | |
})(this, 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
import {curryN} from 'ramda'; | |
var _validate = function(){}; | |
function Constructor(group, name, validators) { | |
let cons = Object.create(group, { | |
_ctor: { | |
value: name | |
}, | |
toString: { | |
value: 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
const Color = Type({RGB:[Number, Number, Number], CMYK:[Number, Number, Number, Number]}); | |
const Color_ = Type({RGB:{Red: Number, Green: Number, Blue: Number}, CMYK:{Cyan: Number, Magenta: Number, Yellow: Number, Black:Number}}); | |
const {Person} = Type({Person: {name: String, id: Number, leftEyeColor: Color_, rightEyeColor: Color}}); | |
let person = Person({name: 'John', id: 1, leftEyeColor: Color.RGB(255,100,255), rightEyeColor: Color_.CMYK({Cyan: 50, Magenta: 80, Yellow: 10, Black: 25})}); | |
let personWithoutEyes = Person('John', 2); | |
let person2 = personWithoutEyes(Color.RGB(100,100,100), Color.CMYK(30,30,30,0)); |
OlderNewer