Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Glukhovsky mglukhovsky

View GitHub Profile
@mglukhovsky
mglukhovsky / index.html
Created Jul 24, 2017
Realtime graph with D3
View index.html
<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 Sep 20, 2013
Multiple filters with a lambda in RethinkDB
View gist:6632926
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 Aug 15, 2013
RethinkDB 1.8 on OS X 10.8.2
View gist:6244066
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