This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"code": "AAA", | |
"lat": "-17.3595", | |
"lon": "-145.494", | |
"name": "Anaa Airport", | |
"city": "Anaa", | |
"state": "Tuamotu-Gambier", | |
"country": "French Polynesia", | |
"woeid": "12512819", |
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
.hll { background-color: #ffffcc } | |
.c { color: #586E75 } /* Comment */ | |
.err { color: #93A1A1 } /* Error */ | |
.g { color: #93A1A1 } /* Generic */ | |
.k { color: #859900 } /* Keyword */ | |
.l { color: #93A1A1 } /* Literal */ | |
.n { color: #93A1A1 } /* Name */ | |
.o { color: #859900 } /* Operator */ | |
.x { color: #CB4B16 } /* Other */ | |
.p { color: #93A1A1 } /* Punctuation */ |
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
// Lambda calculus: Church 1940-ish | |
// | |
// <expression> := <name> | <function> | <application> | |
// <function> := λ <name>.<expression> | |
// <application> := <expression><expression> | |
// | |
// expression := name | function | application | |
// function := name => expression | |
// application := expression(expression) | |
// |
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
export function to<A, T>(fn: (items: A[]) => T) { | |
return (sum: any, _item: A, index: number, all: A[]): T => { | |
const isLast = index === all.length - 1; | |
if (!isLast) { | |
return sum; | |
} | |
return fn(all); | |
}; |
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
export function loadStories(userId: string) { | |
return Task.map2( | |
myStories => storiesSharedWithMe => | |
({ | |
myStories, | |
storiesSharedWithMe, | |
}), | |
userStories(userId).map(listToLookup), | |
userSharedStories(userId).map(listToLookup), |
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
interface Array<T> { | |
andThen: <U>(this: T[], fn: (items: T[]) => U) => U; | |
} | |
Array.prototype.andThen = function<T, U>(this: T[], fn: (items: T[]) => U): U { | |
return fn(this); | |
}; |
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
@keyframes animate-particle { | |
0% { | |
background-position: 0 0px; } | |
1.695% { | |
background-position: 0 -124px; } | |
3.39% { | |
background-position: 0 -248px; } |
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 linear() { | |
@return cubic-bezier(0.250, 0.250, 0.750, 0.750); } | |
@function ease() { | |
@return cubic-bezier(0.250, 0.100, 0.250, 1.000); } | |
@function ease-in() { | |
@return cubic-bezier(0.420, 0.000, 1.000, 1.000); } | |
@function ease-in-quad() { | |
@return cubic-bezier(0.550, 0.085, 0.680, 0.530); } |
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 PIXI = require('pixi.js/bin/pixi.dev.js'); | |
/** | |
* Data model and serialization. | |
*/ | |
module.exports = (function() { | |
'use strict'; | |
/** | |
* URL-safe character mapping. |
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
// Vector of number types | |
const v1 = vector([1, 2, 3, 4]); | |
console.log(v1.toString()); | |
// Vector of string types | |
const v2 = vector(["a", "b", "c", "d"]); | |
console.log(v2.toString()); | |
// Vector of vector types |
NewerOlder