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 React = require('react'); | |
const ReactAtellier = require('react-atellier')(React); | |
class AtellierWrapper extends React.Component { | |
static propTypes = { message: React.PropTypes.string }; | |
static defaultProps = { message: 'Hello World!' }; | |
render() { | |
const Icon = React.createClass({ | |
render: function() { | |
return ( |
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
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
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
# local env. | |
$ export COUCH_HOST=https://xxx.couchdb.com | |
$ export COUCH_PORT=xxx | |
$ export COUCH_USERNAME=xxx | |
$ export COUCH_PASSWORD=xxx | |
$ export COUCH_DATABASE=xxx | |
# cloud env. | |
$ heroku config:add COUCH_HOST=https://xxx.couchdb.com | |
$ heroku config:add COUCH_PORT=xxx |
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 lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>SoundCloud OAuth 2 User Agent Authentication Flow Demo</title> | |
<script type="text/javascript" charset="utf-8" src="javascript/jquery-1.4.2.js"></script> | |
<script type="text/javascript" charset="utf-8"> | |
$(function () { | |
var extractToken = function(hash) { |