Skip to content

Instantly share code, notes, and snippets.

View ggstuart's full-sized avatar

Graeme Stuart ggstuart

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ggstuart on github.
  • I am ggstuart (https://keybase.io/ggstuart) on keybase.
  • I have a public key ASCUn8lnH6LSnY-0Qc6tPkp9KQ5FI1nr9kG9y3UtEmj85Ao

To claim this, I am signing this object:

@ggstuart
ggstuart / index.html
Created April 17, 2015 10:31
Select example ember select box demo using ember data belongsTo relationship // source http://emberjs.jsbin.com/forixeyuku
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="ember select box demo using ember data belongsTo relationship">
<meta charset="utf-8">
<title>Select example</title>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.css">
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://builds.emberjs.com/tags/v1.11.1/ember-template-compiler.js"></script>
@ggstuart
ggstuart / dispatch.py
Last active August 29, 2015 14:09 — forked from spranesh/dispatch.py
def Analyse(obj):
""" Dynamic Dispatch based on object's class type.
This will call the AnalyseClassName
Example: if obj is of type Let, then call AnalyseLet,
if it is of type IfElse call AnalyseIfElse
"""
# Get obj's class name
class_name = obj.__class__.__name__
# Create the function name as a string