I hereby claim:
- I am zhiboz on github.
- I am zhiboz (https://keybase.io/zhiboz) on keybase.
- I have a public key ASBWlDFjzlEHuko04YOZT2uF3aKU9v7cjlGXyNnKIeK7gQo
To claim this, I am signing this object:
| # Initialize the scroll | |
| page = es.search( | |
| index = 'yourIndex', | |
| doc_type = 'yourType', | |
| scroll = '2m', | |
| search_type = 'scan', | |
| size = 1000, | |
| body = { | |
| # Your query's body | |
| }) |
| #==========================================================# | |
| # Visualizing Facebook networks with friend photos # | |
| # Katya Ognyanova, www.kateto.net, @ognyanova # | |
| #==========================================================# | |
| # Find more details at http://bit.ly/fbgephi | |
| #==========================================================# | |
| #### Collect the data using the RFacebook package #### |
| import requests | |
| import requests_jwt | |
| import json | |
| # email and password auth through postgrest | |
| resp = requests.post('http://localhost:3000/rpc/login', json={"email": "you@yours.com", "pass": "dog"}) | |
| print resp # <Response [200]> | |
| # JWT token-based auth through postgrest using the returned token from above | |
| auth = requests_jwt.JWTAuth(json.loads(resp.text)['token']) |
| library(tidyverse) | |
| library(stringr) | |
| # read in the transcript | |
| # I simply copied the text from the page at | |
| # https://www.washingtonpost.com/news/the-fix/wp/2016/09/26/the-first-trump-clinton-presidential-debate-transcript-annotated/ | |
| # and popped it into a txt file | |
| xx <- scan("first_debate_2016.txt", "character") |
| #!/bin/bash | |
| wget https://snap.stanford.edu/data/email-Enron.txt.gz | |
| gunzip email-Enron.txt.gz | |
| bin/gremlin.sh #and then :load enron.groovy |
| import collections | |
| import datetime | |
| import logging | |
| from goblin import properties | |
| logger = logging.getLogger(__name__) | |
| CARD_MAPPING = {'Cardinality.single': 'Cardinality.SINGLE', |
I hereby claim:
To claim this, I am signing this object:
| "\e[A": history-search-backward | |
| "\e[B": history-search-forward | |
| set show-all-if-ambiguous on | |
| set completion-ignore-case on |
| all: json2bson | |
| clean: | |
| rm -f json2bson | |
| json2bson: json2bson.c | |
| ${CC} $(shell pkg-config --cflags json libmongo-client glib-2.0) -Wall -O0 -ggdb3 -std=c99 ${CFLAGS} \ | |
| $(shell pkg-config --libs json libmongo-client glib-2.0) -o $@ $^ | |
| check: all | |
| ./json2bson <test.json >test.bson |