Skip to content

Instantly share code, notes, and snippets.

View gist:b6818e65e55b378b3808
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 (
View osx-for-hackers.sh
#!/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'
View env.sh
# 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
View soundcloud_oauth2_user_agent_authentication_flow_demo.html
<!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) {
You can’t perform that action at this time.