Skip to content

Instantly share code, notes, and snippets.

View iamdustan's full-sized avatar

Dustan Kasten iamdustan

View GitHub Profile
/*eslint react/no-multi-comp:0, no-console:0*/
import React from '../';
import tweenState from 'react-tween-state';
const {
Board,
Led,
mode,
PropTypes,
} = React;
import React from 'react';
import ReactHardware from '../';
const {
Board,
Led,
} = ReactHardware;
const HIGH = 255;
const LOW = 0;
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" Let Vundle manage Vundle
Bundle 'gmarik/vundle'
" Define bundles via Github repos
var React = require('react');
class Form extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {description: ''};
}
onChange(e) {
var path = require('path');
var suit = require('suitcss-preprocessor');
var rework = require('rework-webpack-loader');
var vars = require('rework-vars');
var webpack = require('webpack');
// hack to unbreak https://github.com/aaronj1335/rework-webpack-loader/blob/master/lib/plugins/urls.js#L41
var urlParse = require('url').parse;
var mark = require('rework-webpack-loader/lib/mark');
rework.plugins.urls.processJs = function(js) {
@iamdustan
iamdustan / index.jsareact-router-autonav.js
Last active August 29, 2015 14:16
react-router-autonav.js
/** @flow */
require('./styles.css');
var React = require('react');
var {Link} = require('react-router');
var ignoreSplatRoutes = a => !/\*$/.test(a.path);
var ignoreDefaultRoutes = (a, b) => a !== b.defaultRoute;
var Toc = React.createClass({

react-autodoc

What is it?

A React component and accompanying tool for parsing and understanding an arbitrary React component’s API by parsing it’s propTypes definition.

It will have the ability to provide an interface that includes the following information:

react-arduino

React has revolutionized the way we write user interfaces. It brings an extremely simple mental model to the authoring of UIs. React-native, react-canvas, and other projects have shown us that this model extends beyond the browser DOM.

I believe that this functional, predictable approach can also revolutionize how we build real-world user interfaces.

  • alignment-baseline
  • baseline-shift
  • clip
  • clip-path
  • clip-rule
  • color
  • color-interpolation
  • color-interpolation-filters
  • color-profile
  • color-rendering
'use strict';
var React = require('react/addons');
function generateClasses(options) {
return 'TODO: string'
}
var MediaImage = React.createClass({
render() {