This file contains hidden or 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 * as React from 'react'; | |
import { Div } from 'glamorous'; | |
import { BigPlaceholder } from '../parts/BigPlaceholder'; | |
type PersonDetailProps = { id: string }; | |
export class PersonDetail extends React.Component<PersonDetailProps> { | |
render() { | |
return ( | |
<LeftRightColPadding> |
This file contains hidden or 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
test |
This file contains hidden or 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 { Action, createStore } from 'redux'; | |
type PuppyPayload = { | |
payload: { | |
timestamp: Date, | |
numberOfPuppies: number, | |
} | |
} | |
// Action "constant" |
This file contains hidden or 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
external router : ReactRe.reactClass = "BrowserRouter" [@@bs.module "react-router-dom"]; | |
external link : ReactRe.reactClass = "Link" [@@bs.module "react-router-dom"]; | |
external route : ReactRe.reactClass = "Route" [@@bs.module "react-router-dom"]; | |
module Router = { | |
let createElement children::(children: list ReactRe.reactElement) => | |
ReactRe.wrapPropsShamelessly router {"children": Array.of_list children} ::children; | |
}; |
This file contains hidden or 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 React, { Component } from 'react'; | |
const BTC_URL = 'http://54.213.83.132/hackoregon/http/oregon_individual_contributors/'; | |
export default class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
sortOrder: 'ascending', | |
data: [], |
This file contains hidden or 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
{ | |
"color_scheme": "Packages/User/SublimeLinter/Oceanic Next (SL).tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", | |
"node_modules" |
This file contains hidden or 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 { schoolMeals, costOfMeals, housing } from './data' | |
function snapCalculator(individuals, income, fips) { | |
let limit, shelter, maxBenefit | |
if (individuals === 1) { | |
limit = 1832 | |
shelter = housing[fips].median_housing_one | |
maxBenefit = 194 | |
} else if (individuals === 3) { | |
limit = 3208 |
This file contains hidden or 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 React from 'react'; | |
import { connect } from 'react-redux'; | |
import Vote from './Vote'; | |
import Winner from './Winner'; | |
export default function Voting(props) { | |
return ( | |
<div className="voting"> |
This file contains hidden or 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
// We use a magic string to hook into the functionality | |
foo.addEventListener('dragstart', function( e ) { | |
var paths = '/Foo/Bar/baz.jpg|\n|/Foo/Baz/Bar.jpg'; | |
e.dataTransfer.setData( 'text/plain', | |
'extensis-filenames-type:' + paths ); | |
}); |
This file contains hidden or 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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Dan's Vi Mode</name> | |
<item> | |
<name>Fn+Shift+hjkl to Option + Shift + Left/Down/Up/Right</name> | |
<identifier>dan.option1234.vimode_fn_hjkl</identifier> | |
<autogen>__KeyToKey__KeyCode::H, ModifierFlag::FN | ModifierFlag::SHIFT_L | ModifierFlag::NONE,KeyCode::CURSOR_LEFT, ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L</autogen> | |
<autogen>__KeyToKey__KeyCode::J, ModifierFlag::FN | ModifierFlag::SHIFT_L | ModifierFlag::NONE,KeyCode::CURSOR_DOWN | ModifierFlag::SHIFT_L</autogen> |