git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| tell application "Google Chrome" | |
| set windowList to every tab of every window whose URL starts with "https://mail.google.com" | |
| repeat with tabList in windowList | |
| set tabList to tabList as any | |
| repeat with tabItr in tabList | |
| set tabItr to tabItr as any | |
| delete tabItr | |
| end repeat | |
| end repeat | |
| end tell |
| (* To the extent possible under law, Rob Mayoff has waived all copyright and related or neighboring rights to “AppleScript to make Google Chrome open/reload a URL”. This work is published from: United States. https://creativecommons.org/publicdomain/zero/1.0/ *) | |
| tell application "Google Chrome" | |
| activate | |
| set theUrl to "http://tycho.usno.navy.mil/cgi-bin/timer.pl" | |
| if (count every window) = 0 then | |
| make new window | |
| end if | |
| set found to false |
| // | |
| // UIColor+HexString.h | |
| // Class to convert hex string to UIColor | |
| // Support #RGB # ARGB #RRGGBB #AARRGGBB | |
| // Usage: [UIColor colorWithHexString:@"#f5e6a1"]; | |
| // Created by Zhu Yuzhou on 1/20/13. | |
| // | |
| #import <UIKit/UIKit.h> |
| /** | |
| * Get a random floating point number between `min` and `max`. | |
| * | |
| * @param {number} min - min number | |
| * @param {number} max - max number | |
| * @return {number} a random floating point number | |
| */ | |
| function getRandomFloat(min, max) { | |
| return Math.random() * (max - min) + min; | |
| } |
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
| import React, { Component } from 'react' | |
| import { View, Image, StyleSheet, ScrollView, Text, Animated, StatusBar, PixelRatio } from 'react-native' | |
| import Icon from 'react-native-vector-icons/MaterialIcons'; | |
| import MapView from 'react-native-maps'; | |
| const AMSTERDAM = { | |
| latitude: 52.3702, | |
| longitude: 4.8952, | |
| latitudeDelta: 0.0922, | |
| longitudeDelta: 0.0421, |