Skip to content

Instantly share code, notes, and snippets.

💭
typin'

jqtrde jacquestardie

💭
typin'
Block or report user

Report or block jacquestardie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View stsassume.py
from botocore.credentials import RefreshableCredentials
from botocore.session import get_session
from boto3 import Session
def assumed_session(role_arn, session_name, session=None):
"""STS Role assume a boto3.Session
With automatic credential renewal.
View StyleTransfer-Mapbox.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jacquestardie
jacquestardie / tutorial.md
Created Jul 17, 2018 — forked from swalkinshaw/tutorial.md
Designing a GraphQL API
View tutorial.md

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.

View send_message.py
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
@jacquestardie
jacquestardie / index.md
Created Apr 14, 2018
Stanford Big Data Hackathon - Tools for working with Satellite Imagery
View index.md

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.

@jacquestardie
jacquestardie / shh.rb
Created Mar 8, 2018 — forked from robinsloan/shh.rb
Disable RTs from all the people you follow on Twitter.
View shh.rb
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
@jacquestardie
jacquestardie / README.md
Created Jan 25, 2018
A nice little geojson renderer for Jupyter Lab.
View README.md
$ pip install jupyterlab
$ jupyter labextension install @jupyterlab/geojson-extension
@jacquestardie
jacquestardie / maptime.md
Last active Aug 16, 2018
Maptime Presentation
View maptime.md

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
@jacquestardie
jacquestardie / syllabus.md
Created Nov 13, 2017
Stanford's Stats 385 - Theories of Deep Learning
View syllabus.md
You can’t perform that action at this time.