Skip to content

Instantly share code, notes, and snippets.

import test from "tape";
import { TabBar, TabItem} from "./tabs";
test.only('<TabBar />', t => {
// From the enzyme documentation re: Simulate...
//
// "Even though the name would imply this simulates an actual event, .simulate() will in fact
// target the component's prop based on the event you give it. For example, .simulate('click')
// will actually get the onClick prop and call it."
//

Keybase proof

I hereby claim:

  • I am anatomic on github.
  • I am anatomic (https://keybase.io/anatomic) on keybase.
  • I have a public key ASD5C9_bOyYxjLIAU0J60pXsHRRcss4A-K11BvoNZnpaVgo

To claim this, I am signing this object:

import {compose, divide, multiply, add, curry, reduce, map, __, split, props, apply} from "ramda";
declare interface Outcome {
outcomeId: number,
marketId: number,
eventId: number,
boosted: boolean,
cashoutable: boolean,
displayOrder: number,
displayStatus: "active" | "suspended",
const { __, pick, compose, curry, concat, map, reduce, cond,
T, divide, multiply, add, subtract, lift, view, lensProp, lensPath, over,
prop, props, identity, findLast, keys, sort, split, apply } = require("ramda");
const Either = require('data.either');
const SCORECAST_CONVERSIONS = {
'1': '1/2000',
'1.001': '1/1000',
'1.002': '1/400',
'1.003': '1/300',
'1.004': '1/250',
@anatomic
anatomic / module.scss
Created January 6, 2016 12:42
Simple Sass Modules
/**
* Simple Sass Modules
*
* Prevent output from Sass modules when @imported more than once. Allows for
* modules to declare their own dependencies without a global stylesheet having to know what
* to include and without fear CSS will be exported multiple times.
*
*/
/**
@anatomic
anatomic / SassMeister-input.scss
Last active August 29, 2015 14:23
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
// Our project defines some themes
$themes: (
foo: (
foreground: #5b5b5b,
background: #f3f3f3
)
@anatomic
anatomic / SassMeister-input.scss
Last active August 29, 2015 14:23
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
// Our project defines some themes
$themes: (
foo: (
foreground: #5b5b5b,
background: #f3f3f3
)
@anatomic
anatomic / SassMeister-input.scss
Created May 22, 2015 14:31
Generated by SassMeister.com.
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
$base-line-height: 24px !default;
$base-spacing-unit: $base-line-height!default;
// Add spacing types
$add-spacing-types: (
@anatomic
anatomic / SassMeister-input.scss
Created May 14, 2015 13:50
Generated by SassMeister.com.
// ----
// libsass (v3.2.4)
// ----
$breakpoints: (
palm : 'screen and (max-width : 739px)',
lap : 'screen and (min-width : 740px) and (max-width : 979px)',
lap-and-up : 'screen and (min-width : 740px)',
portable : 'screen and (max-width : 979px)',
desk : 'screen and (min-width : 980px)',
@anatomic
anatomic / gist:8cbe5b0f0ad4227a99fe
Created December 4, 2014 21:16
Stamp Duty Calculator
var range = {
0: { min: 0, max: 125000},
2: { min: 125000, max: 250000},
5: { min: 250000, max: 925000},
10: { min: 925000, max: 1500000},
12: { min: 1500000, max: null}
};
function stampDuty(houseValue) {
return Object.keys(range).reduce(function(duty, percentage) {