Skip to content

Instantly share code, notes, and snippets.

@davesherratt
davesherratt / DefaultLayout.jsx
Created January 26, 2016 21:02 — forked from koistya/DefaultLayout.jsx
React.js (ReactJS) Page and Layout components. For a complete sample visit https://github.com/kriasoft/react-starter-kit and http://reactjs.kriasoft.com (demo)
/**
* Page layout, reused across multiple Page components
* @jsx React.DOM
*/
var React = require('react');
var ExecutionEnvironment = require('react/lib/ExecutionEnvironment');
var Navigation = require('../components/Navigation.jsx');
var DefaultLayout = React.createClass({
This file has been truncated, but you can view the full file.
'use strict';
var COMPILED = !0, goog = goog || {};
goog.global = this;
goog.DEBUG = !1;
goog.LOCALE = "en";
goog.provide = function (a) {
if (!COMPILED) {
if (goog.isProvided_(a))
throw Error('Namespace "' + a + '" already declared.');
@davesherratt
davesherratt / etc_init.d_unicorn_example.co.uk
Created September 2, 2012 21:13 — forked from rubysolo/etc_init.d_unicorn_example.co.uk
Ruby on Rails server setup on Ubuntu 11.04 with Nginx, Unicorn, Rbenv
#! /bin/bash
### BEGIN INIT INFO
# Provides: unicorn
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the unicorn web server
# Description: starts unicorn
@davesherratt
davesherratt / app.js
Created July 24, 2012 23:18 — forked from aaronksaunders/app.js
LinkenIn IOS Javascript Module for Use with Appcelerator
/*
This is a minified javascript module because I have not had a chance to refactor and
clean up the horrible hacks I have done to make this work, and I don't want to expose
the code and then spend alot of time responding to issues and/or questions.
This code is released AS IS and I will clean it up, document it better and eventually
re-release it as a module or open source
*/
Ti.include('linkedin_module-min.js');
@davesherratt
davesherratt / app.js
Created July 24, 2012 23:15 — forked from joemaffia/app.js
foursquare OAuth in Titanium
/**
*
*
* Copyright 2011 Aaron K. Saunders, Clearly Innovative Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>