Skip to content

Instantly share code, notes, and snippets.

@joeytwiddle
joeytwiddle / index.html
Created May 4, 2016 08:04 — forked from RickWong/react.html
React without Webpack (using text/template)
<html>
<body>
<div id="react-root"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.0.1/react-with-addons.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.0.1/react-dom.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.5.2/redux.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.7.7/babel.min.js"></script>
<script id="App" type="text/template">
const App = ({name}) => {
@joeytwiddle
joeytwiddle / gist:3980560
Created October 30, 2012 14:37
Experimentum
class A
constructor: (@url, @data) ->
that = this
$.get @url, (data) =>
that.data = data
a = new A "/my-url/"
console.log a
@joeytwiddle
joeytwiddle / delicious_search_results.user.js
Created July 13, 2011 03:27 — forked from garcon/DeliciousGoogle.user.js
Delicious search results on Google
// ==UserScript==
// @name Delicious Search Results on Google
// @namespace gaillard
// @description Shows results from Delicious on Google search pages
// @include http://www.google.*/search?*q=*
// @include http://www.google.*/*
// @date 2009-03-07
// @version 0.1
// @GM_version 0.8.20080609.0
//