Skip to content

Instantly share code, notes, and snippets.

View 1ec5's full-sized avatar
🙈
Not actively reading bugmail

Minh Nguyễn 1ec5

🙈
Not actively reading bugmail
View GitHub Profile
@1ec5
1ec5 / Main.storyboard
Last active October 10, 2019 19:32
Draft attribution guidelines simulation
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina6_1" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
@1ec5
1ec5 / speed-limit-countries.geojson
Created July 16, 2019 18:24
Speed limit sign styles and units
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@1ec5
1ec5 / 2016.geojson
Created July 9, 2019 15:53
IndianaMap orthoimagery coverage area
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@1ec5
1ec5 / AppDelegate.h
Last active February 21, 2024 07:50
SceneKit ❤️ Mapbox Maps SDK
@import Cocoa;
@interface AppDelegate : NSObject <NSApplicationDelegate>
@end
@1ec5
1ec5 / columbus.geojson
Created January 19, 2019 11:03
Columbus Orthophotography coverage area
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@1ec5
1ec5 / kyaped.geojson
Created January 14, 2019 21:04
KYAPED coverage area
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@1ec5
1ec5 / wikidata-brand.md
Last active March 21, 2019 17:01
Adding a Wikidata item for a retail chain
  1. Go to Special:NewItem on Wikidata. Select the language in which the chain’s name is written, then enter the chain’s name and a short description in that language (if you speak it). For example, a description in English might be “American fast food chain”. Click Create.
  2. Under “Statements”, click “+ add statement”, then type “instance of” into the Property field.
  3. In the next field, enter one of the following values, then click Publish. If you know a more specific entity, you can use it instead.
OSM tag Value
amenity=bank Q22687
amenity=bicycle_rental Q1358919
amenity=bureau_de_change Q2002539
amenity=cafe ?
diff --git a/platform/darwin/src/MGLVectorTileSource.mm b/platform/darwin/src/MGLVectorTileSource.mm
index a3241d3bce..b1bf20aefe 100644
--- a/platform/darwin/src/MGLVectorTileSource.mm
+++ b/platform/darwin/src/MGLVectorTileSource.mm
@@ -79,11 +79,11 @@
An array of locale codes with dedicated name fields in the Mapbox Streets
source.
- https://www.mapbox.com/vector-tiles/mapbox-streets-v7/#overview
+ https://www.mapbox.com/vector-tiles/mapbox-streets-v8/#overview
@1ec5
1ec5 / aer2x3dom.js
Created October 4, 2018 04:59
aer2x3dom
function anchorOnMouseOver(evt) {
var div = document.getElementsByClassName("x3dom-canvasdiv")[0];
div.style.cursor = "pointer";
alert("in");
}
function anchorOnMouseOut(evt) {
var div = document.getElementsByClassName("x3dom-canvasdiv")[0];
div.style.cursor = "move";
alert("out");
@1ec5
1ec5 / aer.txt
Created October 4, 2018 04:53
Notes about the .aer format
XDR w/ 2B little-endian string lengths
== Syntax ==
TYPE012345:key1=value1:key2:value2:...:
TYPE012345:key1len1\0value1
value1 includes trailing \0
Coordinates -?\d\.\d{6}e\+\d{3}
- 16 coordinates stored in modm