- 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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| |
(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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. | |