Skip to content

Instantly share code, notes, and snippets.

Minh Nguyễn 1ec5

Block or report user

Report or block 1ec5

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
@1ec5
1ec5 / detroit.geojson
Created Oct 1, 2018
Detroit metropolitan area
View detroit.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@1ec5
1ec5 / coord_order.md
Last active Sep 11, 2018
Order in the coord
View coord_order.md

Coordinate order in various Mapbox libraries

Legend:

  • Behaves correctly at runtime
  • Compile-time or runtime error or otherwise impossible to write
  • 🙀 Behaves incorrectly at runtime
Mapbox-related library Latitude, longitude Longitude, latitude Order-independent
@1ec5
1ec5 / naics2012.tsv
Last active May 14, 2018
NAICS to OSM
View naics2012.tsv
Seq. No. 2012 NAICS US Code 2012 NAICS US Title OSM tags
1 11 Agriculture, Forestry, Fishing and Hunting
2 111 Crop Production landuse=farm OR landuse=farmland
3 1111 Oilseed and Grain Farming
4 11111 Soybean Farming crop=soy
5 111110 Soybean Farming
6 11112 Oilseed (except Soybean) Farming
7 111120 Oilseed (except Soybean) Farming
8 11113 Dry Pea and Bean Farming
9 111130 Dry Pea and Bean Farming
@1ec5
1ec5 / cincinnati.geojson
Last active Dec 26, 2018
Cincinnati metropolitan area
View cincinnati.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View highrowglyph.m
//
// main.m
// HighRowGlyph
//
// Created by Minh Nguyen on 2018-02-01.
// Copyright © 2018 Mapbox. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Cocoa/Cocoa.h>
@1ec5
1ec5 / expression.m
Last active Jan 4, 2018
Freedom of NSExpression
View expression.m
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
/**
Joins the given components into a single string by concatenating each component
in order.
*/
NSString *MGLJoinComponents(Class self, SEL _cmd, NSArray<NSString *> *components) {
return [components componentsJoinedByString:@""];
}
@1ec5
1ec5 / .block
Last active Nov 1, 2018
Mapbox Streets & Buildings
View .block
license: cc-by-4.0
@1ec5
1ec5 / 408.geojson
Created Aug 20, 2017
408 area code
View 408.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Abbreviations.swift
import UIKit
// With help from http://wiki.openstreetmap.org/wiki/Name_finder:Abbreviations#English
let Abbreviations = [
"apartments": "Apts",
"center": "Ctr",
"centre": "Ctr",
"county": "Co",
"creek": "Crk",
View AppIcon-filled.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.