View tierTransform.js
export default (show, venueType) => {
const tiers = show.tierPrices.map((price, index) => ({
title: venueType[`tier${index + 1}Title`],
description: venueType[`tier${index + 1}Description`],
price,
}));
return {
name: show.name,
venueType: venueType.name,
tiers,
View Softmax function
"""Softmax."""
scores = [3.0, 1.0, 0.2]
import numpy as np
from math import e
def softmax(scores):
denominator = sum([e ** x for x in scores])
result = [e ** x / denominator for x in scores]
View _thats-so-fetch.md

Thats So Fetch

A collection of asynchronous fetching examples with various frameworks and patterns.

View _counter.md

Counter Examples

Moved to omg-counters

This is a collection of increment/decrement counters using various frontend frameworks.

The increment/decrement counter is the step between a hello world example and a todo app. Please note that the examples are supposed to be as minimal as possible.

So far we have the following:

View counter.re
module Counter = {
include ReactRe.Component.Stateful;
let name = "Counter";
type state = {count: int};
type props = unit;
let getInitialState _ => {count: 0};
/** increment handler */
let handleIncrement {state} _ => {
Js.log "clicked increment!";
View atom-packages.txt
atom-beautify@0.29.17
atom-ternjs@0.17.0
atom-typescript@10.1.13
autocomplete-modules@1.6.7
ayu@0.1.0
color-picker@2.2.5
css-snippets@1.1.0
docblockr@0.9.1
emmet@2.4.3
file-icons@2.0.14
View reportInterval.js
// throw these two lines into the markup:
// <button id="btn">Click</button>
// <script src="https://unpkg.com/@reactivex/rxjs/dist/global/Rx.js"></script>
const button = document.querySelector('#btn');
const click$ = Rx.Observable.fromEvent(button, 'click');
click$
.map(() => Date.now())
.bufferTime(5000)