Skip to content

Instantly share code, notes, and snippets.

View ged's full-sized avatar
President of the ByteBuffer fanclub

Michael Granger ged

President of the ByteBuffer fanclub
View GitHub Profile
@ged
ged / app.html
Last active July 8, 2016 01:11 — forked from jdanyow/app.html
I'm Not Repeat.foring Correctly?
<template>
<h1>I expect:</h1>
<div>
<strong>this</strong>: that<br>
<strong>those</strong>: these<br>
</div>
<h1>But I get:</h1>
<div repeat.for="[a,b] of stuff">
<strong>${a}</strong>: ${b}<br>
@ged
ged / show.html.erb
Created January 19, 2012 23:07 — forked from pbruna/show.html.erb
Treequel adding to many extensions
class OrganizationalUnitsController < ApplicationController
def show
@organizational_unit = @directory.search( params[:id], :base )
end
end
require 'treequel/model'
require 'treequel/model/objectclass'
@ged
ged / sheen.rb
Created October 25, 2011 21:42 — forked from tarcieri/sheen.rb
Example class using Celluloid::Actor
class Sheen
include Celluloid::Actor
def initialize(name)
@name = name
end
def current_status
"#{@name} is winning!"
end