Skip to content

Instantly share code, notes, and snippets.

View mickey's full-sized avatar

Michael Bensoussan mickey

View GitHub Profile
@quentin23soleil
quentin23soleil / cannelesrecipe.md
Last active November 15, 2021 09:16
Cannelés recipe

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)

Ingredients

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

Antirez

  • 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
maccman / canvas.physics.coffee
Created April 11, 2013 02:52
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) ->
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|
#
# 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.
# Video: http://rubyhoedown2008.confreaks.com/08-chris-wanstrath-keynote.html
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
keynote-y.