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
Login | |
Login Cached? | |
cached? -> Enter Credentials | |
not cached? -> Login Downloading | |
Login Downloading | |
downloaded -> Enter Credentials | |
Enter Credentials | |
login success -> File Manager |
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
/** | |
* Lodash mixins for combinatorics | |
* Inspired by python itertools: https://docs.python.org/2.7/library/itertools.html | |
* | |
* Usage: | |
* permutations([0,1,2],2) // [[0,1],[0,2],[1,0],[1,2],[2,0],[2,1]] | |
* combinations([0,1,2],2) // [[0,1],[0,2],[1,2]] | |
* combinations_with_replacement([0,1,2],2)// [[0,0],[0,1],[0,2],[1,1],[1,2],[2,2]] | |
* product([0,1,2],[0,1,2]) // [[0,0],[0,1],[0,2],[1,0],[1,1],[1,2],[2,0],[2,1],[2,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
function rootReducer(state, action) { | |
return { | |
part1: part1Reducer(state.part1, action), | |
part2: part2Reducer(state.part2, action) | |
} | |
} | |
function part1Reducer(state, action) { | |
return { | |
part1A: part1AReducer(state.A, action), |
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* watchEvents(): any { | |
const initial = yield call(ExternalApi.getCurrent); | |
yield put(receiveEvent(initial); | |
const chan = yield call(setupEvents); | |
while (true) { | |
const event = yield take(chan); | |
yield put(receiveEvent(event)); | |
} |
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
<div> | |
<MyCollection name="ONE" /> | |
<MyCollection name="TWO" /> | |
</div> |
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
// define main angular module | |
var app = angular.module('app-module', []); | |
// inject $provide into the application config | |
app.config(['$provide', function($provide) { | |
// provide the LOGIN_DATA as a constant to angular | |
$provide.constant('LOGIN_DATA', window.LOGIN_DATA) | |
}]); | |
app.controller('MyCtrl', function(LOGIN_DATA) { |
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 () { | |
var chart; | |
$(document).ready(function() { | |
chart = new Highcharts.Chart({ | |
chart: { | |
renderTo: 'container', | |
type: 'area' | |
}, | |
title: { | |
text: 'Weekly Cohorts: States' |
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": "kera-proxy", | |
"version": "0.0.1", | |
"author": "Kera Software Inc <[email protected]>", | |
"private": true, | |
"dependencies": { | |
"faux": "https://github_username:[email protected]/kera-inc/faux.git", | |
"express": "2.5.x", | |
"directory-tree-watcher": "0.0.5", | |
"coffee-script": "1.3.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
<!doctype html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
</head> | |
<body> | |
<style> | |
#outer { | |
position:relative; |
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
[~] rake db:create:all |