Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jazzdan on github.
  • I am dmiller (https://keybase.io/dmiller) on keybase.
  • I have a public key whose fingerprint is C1EF 112B 5AD3 C157 C582 D15B 56E1 4C55 60A2 1CD0

To claim this, I am signing this object:

@jazzdan
jazzdan / a.php
Last active August 29, 2015 13:59
<?php
require 'src/Mustache/Autoloader.php';
Mustache_Autoloader::register();
$m = new Mustache_Engine([
'partials' => [
'header' => '<title>{{$title}}Default title{{/title}}</title>',
'base' => '<html>{{$header}}{{/header}}{{$content}}{{/content}}</html>'
],

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
Server {
Port = 80
SourceRoot = /Users/dan/hhvm-test/public/
}
VirtualHost {
* {
Pattern = .*
RewriteRules {
* {
@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 )
@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 / 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 / hello.cpp
Created August 15, 2012 04:38
Hello World!
# include <iostream>
int main()
{
std::cout << "Hello, world!\n";
}
<!doctype html>
<head>
<style>
.meter {
width: 300px;
height: 30px;
background: #eff;
position: relative;
}
.amt {