Skip to content

Instantly share code, notes, and snippets.


Michael Bensoussan mickey

View GitHub Profile

Cannelés Recipe

(original recipe - I adapted some things - in french here)

With this recipe I'm making around 22/24 "big" cannelés (see this tweet for picture)


1 liter of fresh whole milk (lait frais entier) 2 eggs 4 egg yolks



  • NoNoSQL - IDXSELECT for indices
    • based on sorted sets
    • but sorted sets have unique elements only
    • IDXSELECT myindex IFI FIELDS $3 WHERE $1 == 56 and $2 >= 10.00 AND $2 <= 30.00
  • Timeseries database
    • not possible to built upon sorted sets
    • new data structure, API
  • Multiple AOF file to avoid in-memory buffer on AOF rewrite
maccman /
Created Apr 11, 2013
A canvas physics engine in 160 lines of CoffeeScript.
class Point
constructor: (@x = 0, @y = 0) ->
if isNaN(@x) or isNaN(@y)
throw new Error('Invalid coords')
add: (point) ->
@x += point.x
@y += point.y
subtract: (point) ->
View movie_matcher.rb
require 'digest'
module AnyGood
class MovieMatcher
def add_movie(movie_hash)
prefixes = prefixes_for(movie_hash[:name])
hashed_name = data_hash_key_for(movie_hash)
prefixes.each do |prefix|
View default.rb
# Cookbook Name:: delayed_job
# Recipe:: default
if %w(solo app app_master).include?(node[:instance_role])
user = node[:owner_name]
framework_env = node[:environment][:framework_env]
# Be sure to replace APP_NAME with the name of your application.
View gist:6443
# Video:
Hi everyone, I'm Chris Wanstrath.
When Jeremy asked me to come talk, I said yes. Hell yes. Immediately. But
then I took a few moments and thought, Wait, why? Why me? What am I supposed
to say that's interesting? Something about Ruby, perhaps. Maybe the
future of it. The future of something, at least. That sounds