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
const CircularJSON = require('circular-json'); | |
const browserify = require('browserify'); | |
const watchify = require('watchify'); | |
const source = require('vinyl-source-stream'); | |
const buffer = require('vinyl-buffer'); | |
const __bundleFuncsCache = {}; | |
const getCachedBundleFunc = (entry, options) => { | |
const key = `${entry}#${CircularJSON.stringify(options)}`; |
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
const gulp = require('gulp'); | |
// for rollup | |
const rollup = require('rollup'); | |
// for stylus and postcss | |
const rename = require('gulp-rename'); | |
const plumber = require('gulp-plumber'); | |
const stylus = require('gulp-stylus'); | |
const postcss = require('gulp-postcss'); |
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
import 'dart:io' show HttpServer, HttpRequest; | |
main() { | |
HttpServer.bind('127.0.0.1', 8000) | |
.then((server) { | |
server.listen((HttpRequest request) { | |
request.response | |
..write('Hello, World!') | |
..close(); | |
}); |
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
class HelloException implements Exception { | |
String cause; | |
HelloException(this.cause); | |
} | |
main() { | |
var a = 1; | |
try { |
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
import { css } from 'glamor'; | |
import { CSSProperties } from 'glamor'; | |
import * as React from 'react'; | |
import FlatButton from '../../presenters/atoms/FlatButton'; | |
import Flexible, { FlexibleItem } from '../../presenters/atoms/Flexible'; | |
import Grid, { Row, Cell } from '../../presenters/atoms/Grid'; | |
import InputBox from '../../presenters/atoms/InputBox'; | |
import Label from '../../presenters/atoms/Label'; | |
type Props = { |
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
Compiling study_lang v0.1.0 (file:///Users/axross/Dropbox/Workspace/study-rust/study_lang) | |
error[E0277]: the trait bound `Humanoid: Walkable` is not satisfied | |
--> src/main.rs:68:3 | |
| | |
68 | shift(humanoid); | |
| ^^^^^ the trait `Walkable` is not implemented for `Humanoid` | |
| | |
= note: required by `shift` | |
error: aborting due to previous error |
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
const Counter = ({ count, onIncrementClick, onDecrementClick, onIncrementAsyncClick }) => ( | |
<div> | |
{count} | |
: | |
<button onClick={onIncrementClick}>+</button> | |
/ | |
<button onClick={onDecrementClick}>-</button> | |
/ | |
<br/> | |
<button onClick={onIncrementAsyncClick}>+ Async</button> |
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
import { css } from 'glamor'; | |
import * as React from 'react'; | |
type Direction = 'row' | 'row-reverse' | 'column' | 'column-reverse'; | |
type Wrap = 'nowrap' | 'wrap' | 'wrap-reverse'; | |
type JustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around'; | |
type AlignItems = 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch'; | |
type AlignContent = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'space-between' | 'space-around'; | |
type Length = number | string; |