I hereby claim:
- I am olivere on github.
- I am olivere (https://keybase.io/olivere) on keybase.
- I have a public key whose fingerprint is 673A C913 DD38 B088 A1DD 5376 BDDC E308 FF6D 71E5
To claim this, I am signing this object:
# Let's start off with a company and a buyer model | |
class Company < ActiveRecord::Base | |
has_many :users | |
end | |
class Buyer < Company | |
# Makes sure that +user+ only gets the buyers she may see. | |
# If +user+ is nil we assume anonymous. | |
def self.for(user) |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>jQuery Keypress Demo</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script> | |
<script> | |
$(function() { | |
$(document).keypress(function(e) { | |
console.dir(e); |
# Gemfile | |
source "http://rubygems.org" | |
gem 'eventmachine', '~>1.0.0.beta.3' | |
gem 'em-synchrony', '~>0.3.0.beta.1' | |
gem 'em-http-request', '~>1.0.0.beta3' | |
gem 'addressable', :require => 'addressable/uri' | |
# Capturing and passing cookies on redirects | |
require "rubygems" |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"fmt" | |
"time" | |
"runtime" | |
"github.com/olivere/elastic" | |
) |
package main | |
import ( | |
"log" | |
"sync" | |
elastic "gopkg.in/olivere/elastic.v2" | |
) | |
var ( |
package main | |
import ( | |
"fmt" | |
"log" | |
"sync" | |
elastic "gopkg.in/olivere/elastic.v2" | |
) |
package bulk | |
import ( | |
"errors" | |
"sync" | |
"time" | |
"gopkg.in/olivere/elastic.v3" | |
) |
// This is an example of using elastic's BulkProcessor with Elasticsearch. | |
// | |
// See https://github.com/olivere/elastic and | |
// and https://github.com/olivere/elastic/wiki/BulkProcessor | |
// for more details. | |
/* | |
* This example illustrates a simple process that performs bulk processing | |
* with Elasticsearch using the BulkProcessor in elastic. | |
* |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"reflect" | |
elastic "gopkg.in/olivere/elastic.v3" | |
) |