Skip to content

Instantly share code, notes, and snippets.

View dmachat's full-sized avatar

Drew Machat dmachat

View GitHub Profile
@dmachat
dmachat / react-native-maps-enable-google-maps-manual-instructions.md
Last active November 22, 2018 17:04 — forked from heron2014/react-native-maps-enable-google-maps-instructions.md
Instructions for manually installing Google Maps for react-native-maps

Install Google Maps for iOS manually for react-native-maps

This is for my personal use, things might not be correctly explained here. For the official docs please check https://github.com/airbnb/react-native-maps

After installing react-native-maps from npm:

  1. Drag this folder node_modules/react-native-maps/lib/ios/AirGoogleMaps/ into your project, and choose Create groups in the popup window.

  2. In xcode, right click on Libraries -> Add files to [your project], and navigate to and add node_modules/react-native-maps/lib/ios/AirMaps.xcodeproj. Select Copy files is necessary and Create groups.

@dmachat
dmachat / timeframe-pages.js
Created February 12, 2018 18:46
segment data by timeframe
const timeframes = [
{
name: '1900-1920',
range: [timestamp, timestamp] // you could also parse this from the name
slug: 'timeframes/1900-1920',
},
...
];
function filterDataByTimeframe(range, data) {