Skip to content

Instantly share code, notes, and snippets.

@maedhr
maedhr / gist:8823168
Created February 5, 2014 13:04
React GoogleMap Example
<html>
<head>
<script src="https://maps.googleapis.com/maps/api/js?sensor=false" ></script>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="http://fb.me/react-0.8.0.js"></script>
<script src="http://fb.me/JSXTransformer-0.8.0.js"></script>
<script type='text/jsx'>
/** @jsx React.DOM */
ExampleGoogleMap = React.createClass({
getDefaultProps: function () {
@maedhr
maedhr / gist:1641724
Created January 19, 2012 18:29
Catch all
require 'sinatra'
get '/*' do
'HERE IS THE RESPONSE'
end
@maedhr
maedhr / gist:1410352
Created November 30, 2011 19:10
Class instance variables
class A
@foo = 'foo'
class << self
attr_accessor :foo
end
attr_accessor :foo
def initialize
@foo = 'bar'
end