Skip to content

Instantly share code, notes, and snippets.

Minh Nguyễn 1ec5

View GitHub Profile
planemad /
Created Mar 19, 2020
Create a Mapbox vector tileset using OpenStreetMap data
#!/usr/bin/env bash
set -e -u -o pipefail
set -x
# Step 0: Setup
echo "Install Dependencies (Ubuntu)"
anonymous / overpass.geojson
Created Jul 3, 2017
data exported by overpass turbo
View overpass.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Hi ____,

I appreciate you reaching out. Unfortunately, I can't consider working at Uber because I believe that the company behaves unethically and has produced a culture that is harmful to its employees, to the software engineering profession, and indeed to the public at large. Specifically:

  • Numerous allegations of sexual harassment and mistreatment of women employees
  • Attempts to evade regulatory investigation and oversight via greyballing
  • Running an unpermitted self-driving car program in San Francisco in which vehicles ran red lights, lurched into intersections, and made illegal right turns, putting pedestrians, cyclists, and other drivers at risk, and then misleading the public about whether the incidents occurred while the vehicle was under autonomous control
  • Reports from former forensic investigator that lack of internal controls allowed employees to track high profile politicians, celebrities, personal acquaintances, and ex-partners
  • The participation of Travis Kalanick in Trump's business ad
JeOam /
Last active May 22, 2020
iOS Core Animation: Advanced Techniques, Part 1: The Layer Beneath


1. The Layer Tree

Core Animation's original name is Layer Kit

Core Animation is a compositing engine; its job is to compose different pieces of visual content on the screen, and to do so as fast as possible. The content in question is divided into individual layers stored in a hierarchy known as the layer tree. This tree forms the underpinning for all of UIKit, and for everything that you see on the screen in an iOS application.

In UIView, tasks such as rendering, layout and animation are all managed by a Core Animation class called CALayer. The only major feature of UIView that isn’t handled by CALayer is user interaction.

There are four hierarchies, each performing a different role:

emacsen /
Created May 11, 2012
OSM Tiger expansion code
from xml.sax.handler import ContentHandler
import os
import codecs
from xml.sax.saxutils import escape
class OSMHandler(ContentHandler):
"""This is a base OSMHandler class which sets up the XML parsing, etc.
You will want to override the selectElement and transformElement
You can’t perform that action at this time.