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
var lodash = require('lodash') | |
var components = {} | |
var register = function(params) { | |
var missingParams = lodash.filter(['id', 'constructor'], function(param) { | |
return !params[param] | |
}) | |
if(missingParams.length) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>React–Firebase</title> | |
<style> | |
ul li.done span { text-decoration: line-through } | |
ul li a { margin-left: 10px; } | |
</style> |
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
/** @jsx React.DOM */ | |
'use strict'; | |
var React = require('react'), | |
List = require('./List'), | |
Add = require('./Add'), | |
View = require('./View'), | |
Edit = require('./Edit'), | |
route = require('../route') |
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
var DeliveryAddress = React.createClass({ | |
getInitialState: function() { | |
return { | |
preset: '2' | |
} | |
}, | |
changePreset: function(e) { | |
this.setState({ preset: e.target.value }) | |
}, |
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
var gulp = require('gulp'), | |
connect = require('gulp-connect') | |
gulp.task('html', function() { | |
gulp.src('src/**/*.html') | |
.pipe(gulp.dest('build')) | |
}) | |
gulp.task('assets', function() { | |
gulp.src('src/assets/**/*') |
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
var gulp = require('gulp'), | |
plumber = require('gulp-plumber'), | |
normalize = require('normalize'), | |
connect = require('gulp-connect') | |
// HTML | |
gulp.task('html', function() { | |
return gulp.src('src/**/*.html') | |
.pipe(gulp.dest('build')) | |
.pipe(connect.reload()) |
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
<html> | |
<head> | |
<style> | |
body { | |
height: 2000px; | |
} | |
.navigation { | |
position: fixed; | |
top: 0; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Curtain transition</title> | |
<style> | |
html { padding: 0; margin: 0; } | |
body { | |
position: relative; | |
margin: 0; |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Audio test</title> | |
</head> | |
<body> | |
<script> | |
var context = new webkitAudioContext(); |
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 java.net.*; | |
import java.io.DataOutputStream; | |
import java.io.InputStreamReader; | |
String baseURL = "https://api.twilio.com/2010-04-01/Accounts/ACaf8b0ee41ddb0766a2862432d4e968b4/Messages"; | |
URL url; | |
String auth = ""; | |
void setup() { | |
try { |