Skip to content

Instantly share code, notes, and snippets.

View gist:9456318
(ns switcher.core
(:require [cljs.core.async :refer [put! chan <! >!]])
(:require-macros [cljs.core.async.macros :refer [go go-loop]]))
(enable-console-print!)
(def NAME "s")
(def URL "https://nextdoor.com")
View keybase.md

Keybase proof

I hereby claim:

  • I am bstro on github.
  • I am bstro (https://keybase.io/bstro) on keybase.
  • I have a public key whose fingerprint is 12F0 C46D 0B3A 32BA 4509 3036 8FD1 6CE9 C0D2 3921

To claim this, I am signing this object:

View gist:10610118
render: function() {
var stories = this.state.map((story) => {
return (
<ReactCSSTransitionGroup transitionName="Story">
<Story key={story.id} story={story} />
</ReactCSSTransitionGroup>
)
})
return (
View gist:004fa78e0c9b755dc1b4
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>md</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="shortcut icon" href="/favicon.ico">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
View gist:2e56f1529bd2ca115d16
{"categories":["antiques","baby \u0026 kid","barter","bikes","boats","books","business","computer","free","furniture","general","household","jewelry","materials","camping","sporting","tickets","tools","wanted","appliances","arts \u0026 crafts","auto parts","beauty","health","automobiles","cds/dvd/vhs","cell phones","clothes \u0026 accessories","collectibles","electronics","farm + garden","garage sale","heavy equip","motorcycles","music instruments","photo \u0026 video","toys \u0026 games","video gaming"],"items":[{"id":0,"guid":"d4253c2d-6022-4193-b60a-733dd2e75823","price":"$1,962.31","picture":"http://placehold.it/32x32","firstName":"Carolina","lastName":"Watts","neighborhood":"South of Market","gender":"female","email":"carolinawatts@sunclipse.com","phone":"+1 (959) 446-3252","tags":["farm + garden","automobiles","tickets","music instruments","household"]},{"id":1,"guid":"ed3d84ef-ea41-4e3e-9673-61197edfdbe4","price":"$2,068.65","picture":"http://placehold.it/32x32","firstName":"Leonard","lastName":"Hahn",
View gist:2890bb7869e93af2762e
@import "../../bower_components/normalize.css/normalize.css";
@import "../../node_modules/normalize-opentype/normalize-opentype.scss";
@import "partials/_Transitions";
@import "partials/_Photo";
$lemonde: 'lemonde-courrier';
$effra: 'Effra W01';
$amasistext: 'Amasis eText W01';
$silica: 'Silica W00';
View gist:d71791926ba4189ab937
@import "../../bower_components/normalize.css/normalize.css";
@import "../../node_modules/normalize-opentype/normalize-opentype.scss";
@import "partials/_Transitions";
@import "partials/_Photo";
$lemonde: 'lemonde-courrier';
$effra: 'Effra W01';
$amasistext: 'Amasis eText W01';
$silica: 'Silica W00';
@bstro
bstro / gist:1f3f8ea55106dfcd3772
Last active Aug 29, 2015
euler2 with generators and shitty transducers
View gist:1f3f8ea55106dfcd3772
/** @jsx React.DOM */
// EULER 2
var isEven = val => val % 2 === 0;
var concat = (acc, cur) => acc.concat(cur)
var sum = (a, b) => a + b;
View server.js
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config');
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
hot: true
}).listen(3000, 'localhost', function (err, result) {
if (err) {
console.log(err);
View gist:5c023a4f155e7ee478a2
var React = require('react/addons'),
supportPageOffset = window.pageXOffset !== undefined,
isCSS1Compat = ((document.compatMode || "") === "CSS1Compat"),
components = [],
lastValue = -1,
ticking = false,
windowHeight = window.innerHeight,
compose = function() { // from underscore
var args = arguments;
var start = args.length - 1;