Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jazzdan
jazzdan / gist:1585752
Created January 9, 2012 23:51 — forked from colbyr/gist:1579888
Backbone-Handlebars View Template
/* base view template */
var ViewTemplate = Backbone.View.extend({
// containing element
el: $('body'),
// events
events: {},
// initialize
@jazzdan
jazzdan / boxfile
Created April 23, 2012 19:56
Boxfile
global:
env:
- LARAVEL_ENV: production
web1:
name: hipsta2
shared_writable_dirs:
- /storage/cache
- /storage/database
- /storage/logs
- /storage/sessions
@jazzdan
jazzdan / gist:2555030
Created April 30, 2012 02:36
Theory of Programming Languages Study Guide

TOPL Test 3

Overview

  • Types and Type Checking

    • Motivation
    • Type Systems
  • Modules

  • Object-oriented Programming

@jazzdan
jazzdan / gist:2629755
Created May 7, 2012 19:08
Example Shift YAML File
from:
adapter:
database:
port:
username:
password:
host:
to:
adapter:
<!doctype html>
<head>
<style>
.meter {
width: 300px;
height: 30px;
background: #eff;
position: relative;
}
.amt {
@jazzdan
jazzdan / hello.cpp
Created August 15, 2012 04:38
Hello World!
# include <iostream>
int main()
{
std::cout << "Hello, world!\n";
}
@jazzdan
jazzdan / KeyValue.js
Last active December 12, 2015 07:49
Jasmine Testing with Coffeescript because just learning of those at a time wasn't enough. I'll just put in the compiled JS though
// Generated by CoffeeScript 1.4.0
(function() {
var KeyValue;
KeyValue = (function() {
function KeyValue() {}
KeyValue.prototype.hello = function() {
return alert("Hello world...");
@jazzdan
jazzdan / gist:5707802
Last active December 18, 2015 01:59 — forked from anonymous/gist:5707777
class A
@x = 0
def self.give_list
{
'blah' => :x
}
end
def self.run_it(obj)
@jazzdan
jazzdan / proxy.go
Last active December 25, 2015 09:18
What is syntactically wrong between lines 11 and 14?
14: syntax error: unexpected semicolon or newline, expecting )