Skip to content

Instantly share code, notes, and snippets.

View mglukhovsky's full-sized avatar

Michael Glukhovsky mglukhovsky

View GitHub Profile
@mglukhovsky
mglukhovsky / index.html
Created July 24, 2017 23:11
Realtime graph with D3
<html>
<head>
<title>Stripe Charts</title>
</head>
<style>
body {
font: 10px sans-serif;
.layer path, .layer line {
fill: none;
stroke: red;
@mglukhovsky
mglukhovsky / gist:6632926
Created September 20, 2013 03:22
Multiple filters with a lambda in RethinkDB
Based on this question on SO: http://stackoverflow.com/questions/18907951/multiple-filters-with-a-lambda-in-rethinkdb
Test documents inserted into the table:
[
{
"id": "aad234" ,
"verified": true
} ,
{
"id": "234" ,
@mglukhovsky
mglukhovsky / gist:6244066
Created August 15, 2013 19:39
RethinkDB 1.8 on OS X 10.8.2
dr-manhattan:rethinkdb-www michael$ brew install rethinkdb
==> Installing rethinkdb dependency: boost
==> Downloading http://downloads.sourceforge.net/project/boost/boost/1.54.0/boost_1_54_0.tar.bz2
######################################################################## 100.0%
==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching