Skip to content

Instantly share code, notes, and snippets.

View muziejus's full-sized avatar

Moacir P. de Sá Pereira muziejus

View GitHub Profile
@muziejus
muziejus / create_citibike_geojson.rb
Created February 6, 2016 05:20
Make a geojson file out of the app dump for CitiBike locations
# citibike stations: http://appservices.citibikenyc.com/v1/station/list
# Save this json file as "citibikestations.json"
# The result is a file called "citibikestations.geojson," which Qgis will read with no trouble. Leaflet too.
require 'json'
bike_stations = JSON.parse(File.read('citibikestations.json'))
geojson_array = bike_stations["results"].map do |p|
{ "type" => "Feature",
"geometry" => {
"type" => "Point",
"coordinates" => [p["longitude"], p["latitude"]]
@muziejus
muziejus / gist:bf0222ff5ac1a24bbee5e5eac9622c00
Created September 22, 2016 03:51
Getting Stanford NER up and running on DHBox
#! /bin/sh
# This is a barebones and super brittle script by Moacir P. de Sá Pereira
# (@muziejus on GitHub) for installing part of the Stanford NLP library to a
# DHBox (http://dhbox.org)
# First, we need to upgrade Java
# from: http://stackoverflow.com/questions/30177455/moving-from-jdk-1-7-to-jdk-1-8-on-ubuntu
# Newer versions of java *are* available
@muziejus
muziejus / markdown-cheat-sheet.md
Created August 22, 2017 15:59
Markdown Cheat Sheet
tags author date title
these
are
some
tags
Moacir P. de Sá Pereira
2017-07-07
Markdown Cheat Sheet

Markdown Cheat Sheet headline

Regular text (subhead)

@muziejus
muziejus / crashing_point.geojson
Created November 16, 2017 01:02
Crashing geojson on turf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This is an h1

This is a paragraph.

@muziejus
muziejus / Rakefile
Last active May 1, 2018 23:15
Jekyll Rakefile to generate tag pages without plugins for use in gh-pages sites.
# This is a ruby port of Long Qian's:
#
# https://github.com/qian256/qian256.github.io/blob/master/tag_generator.py
#
# which is a python script that accompanies this useful webpage on creating
# tags for Jekyll without plugins:
#
# http://longqian.me/2017/02/09/github-jekyll-tag/
#
# This Rakefile uses Jekyll's internals to generate the list, as opposed to
@muziejus
muziejus / users.json
Last active May 23, 2018 05:45
User store for CMU-barchart
{"users":[{"email":"mds17@nyu.edu","password":"asdf","age":12},{"email":"moacir@uchicago.edu","password":"qwer","age":"23"},{"email":"taylorswift@taylorswift.com","password":"taytay","age":"29"},{"email":"Joe.biden@aol.com","password":"ishouldverun","age":"75"},{"email":"hi-im@29.years.old","password":"liketaylor","age":"29"},{"email":"a@baby.com","password":"justababy","age":"2"},{"email":"andrew@carnegie.com","password":"learnearngive","age":"182"}]}
@muziejus
muziejus / greetings.txt
Created May 23, 2018 02:22
Greetings from Postman!
Greetings from Postman!
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Rank,Name,Type,Smoothness,Smudging,Bleed-through,Feel,Looks,Price/
100,Pilot Fineliner,Felt-tip,1,3,3,3,2,$1.50
99,Pentel Arts Slicci 0.25mm. Extra Fine,Gel,1,5,3,2,3,$2.25
98,Uni-ball Jetstream,Ballpoint,4,3,3,3.5,1,$3.00
97,Pilot Metropolitan,Fountain,1.5,3,4,3,3.5,$13.00
96,Pentel RSVP RT,Ballpoint,3,5,4,2,1,$1.50
95,Koh-I-Noor Rapidograph,Fountain,2,2,4.5,3,4,$25.00
94,Staedtler Pigment Liner,Felt-tip,1,5,5,3,2,$1.67
93,Staedtler Lumocolor Permanent,Felt-tip,2,5,1,4,4,$2.10
92,Pilot G2 Ultra Fine,Gel,2,5,5,2,2,$1.08