Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jqtrde
jqtrde / tutorial.md
Created July 17, 2018 13:21 — forked from swalkinshaw/tutorial.md
Designing a GraphQL API

Tutorial: Designing a GraphQL API

This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.

It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.

import random
import time
import json
import threading
import click
def send_message(msg, async=True):
"""Logs the msg (presumably a JSON object) to firehose
@jqtrde
jqtrde / index.md
Created April 14, 2018 17:14
Stanford Big Data Hackathon - Tools for working with Satellite Imagery

Tools

We're very much Python powered!

  • rasterio - Reading and writing geospatial data (rasters)
  • shapely - Manipulation and analysis of geometric objects (vectors)
  • fiona - Reading and writing geospatial data (vectors)

The combination of ^ with other standard Python utilities provide a powerful & flexible means of achieving almost any sort of geospatial process you can imagine.

@jqtrde
jqtrde / shh.rb
Created March 8, 2018 16:19 — forked from robinsloan/shh.rb
Disable RTs from all the people you follow on Twitter.
require "rubygems"
require "twitter"
# get these from apps.twitter.com
CONSUMER_KEY = "foo"
CONSUMER_SECRET = "bar"
OAUTH_TOKEN = "blee"
OAUTH_TOKEN_SECRET = "baz"
TWITTER_USER = "your_username" # needs to be the one associated with keys above
@jqtrde
jqtrde / README.md
Created January 25, 2018 05:35
A nice little geojson renderer for Jupyter Lab.
$ pip install jupyterlab
$ jupyter labextension install @jupyterlab/geojson-extension
@jqtrde
jqtrde / maptime.md
Last active July 31, 2020 15:09
Maptime Presentation

Hi, and welcome!

We love pixels. We build our tools such that they allow us to work with pixels at a wide range of scales, from individual landsat scenes, to global mosaics, via command line programs or as python libraries we can integrate into large processing pipelines.

Today we'll walk through:

  • processing an individual Landsat scene using rasterio, a tool which serves as the foundation for most of our work
  • uploading the outputs of ^ to Mapbox, where we can visualize it on top of mapbox.satellite, and serve it globally at crazy speed
@jqtrde
jqtrde / syllabus.md
Created November 13, 2017 02:32
Stanford's Stats 385 - Theories of Deep Learning
@jqtrde
jqtrde / .Xresources
Created September 3, 2017 14:07 — forked from VovanR/.Xresources
Atom One Light color theme for xterm and urxvt
! Atom One Light theme
xterm*background: #f9f9f9
xterm*foreground: #383a42
xterm*cursorColor: #d0d0d0
xterm*color0: #000000
xterm*color1: #E45649
xterm*color2: #50A14F
xterm*color3: #986801
xterm*color4: #4078F2
xterm*color5: #A626A4