Skip to content

Instantly share code, notes, and snippets.

View rs's full-sized avatar

Olivier Poitrey rs

  • Netflix
  • Silicon Valley, California, USA
View GitHub Profile
@rs
rs / keymap.c
Created December 5, 2018 07:42
#include QMK_KEYBOARD_H
enum layers {
_QWERTY,
_HYPER,
_SIGN
};
#define KC_ KC_TRNS
{
"title": "RS",
"rules": [{
"description": "CapsLock to Hyper",
"manipulators": [{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": ["any"]
@rs
rs / onelog_test.go
Last active May 8, 2018 20:24
Zero to One log benchmark
package logbench
import (
"errors"
"io/ioutil"
"testing"
"github.com/francoispqt/gojay"
"github.com/francoispqt/onelog"
)
package staticrand
import (
"math/rand"
"sync/atomic"
)
const (
_MAX = 1 << 63
_MASK = _MAX - 1
package main
import (
"fmt"
"log"
"github.com/robertkrimen/otto/ast"
"github.com/robertkrimen/otto/file"
"github.com/robertkrimen/otto/parser"
)

Keybase proof

I hereby claim:

  • I am rs on github.
  • I am op (https://keybase.io/op) on keybase.
  • I have a public key whose fingerprint is AEA1 CA6E 3E3E 7C56 F639 DDCB 2B06 E8F2 2A90 E908

To claim this, I am signing this object:

@rs
rs / gist:9677991
Last active August 29, 2015 13:57

Software Engineer / Architect, Back-End, Ad Platform

Palo Alto, CA, United States, Full-Time

Dailymotion is looking for a software engineer/architect to build tomorrow’s advertising platform. With billions of ad impressions being served on Dailymotion every month, this is a unique opportunity to combine a fun start-up environment with the massive scale of one of the largest players in the online video industry. Join a brand new team in our Palo Alto offices and work with our CTO to blow our minds with something completely new that will be seen by millions of people around the world.

We’re looking for someone curious, independent and a solution-oriented thinker with a strong background in highly scalable platforms.

You will design, document and develop an advertising platform with no limits on the technologies to use. This includes but is not limited to ad-serving, real time bidding, behavioral targeting, forecasting, billing management, etc... You will create scalable back-end solutions to smoothly d

//
// EventSource.m
// Dailymotion
//
// Created by Olivier Poitrey on 24/09/12.
// Copyright (c) 2012 Dailymotion. All rights reserved.
//
#import "EventSource.h"
if (!compositeToneCurve)
{
compositeToneCurve = [CIFilter filterWithName:@"CIToneCurve" keysAndValues:
@"inputPoint0", [CIVector vectorWithX:0.0f Y:0.0f],
@"inputPoint1", [CIVector vectorWithX:0.184f Y:0.078f],
@"inputPoint2", [CIVector vectorWithX:0.427f Y:0.403f],
@"inputPoint3", [CIVector vectorWithX:0.741f Y:0.850f],
@"inputPoint4", [CIVector vectorWithX:1.0f Y:1.0f],
nil];
}
diff --git a/Examples/SDWebImage Demo/MasterViewController.m b/Examples/SDWebImage Demo/MasterViewController.m
index 6c0a14e..3ba0abe 100644
--- a/Examples/SDWebImage Demo/MasterViewController.m
+++ b/Examples/SDWebImage Demo/MasterViewController.m
@@ -30,7 +30,7 @@
target:self
action:@selector(flushCache)];
_objects = [NSArray arrayWithObjects:
- @"http://static2.dmcdn.net/static/video/451/838/44838154:jpeg_preview_small.jpg?20120509163826",
+ @"http://www.beachscout.it/Volantino/categorie/04.png",