Skip to content

Instantly share code, notes, and snippets.

View rico237's full-sized avatar
πŸ‘¨β€πŸŽ“
Full time - Master Degree

Herrick Wolber rico237

πŸ‘¨β€πŸŽ“
Full time - Master Degree
View GitHub Profile

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
0e6e119341e62f6bc52cc4780bf82f858d5d5f07672e31d4fead1e07fd0f493e0a6c9c3e27b24b362b43dcf0acc2a3bed60ddec7dde93327ef4494d79a8287d5
@rico237
rico237 / push-all-tags.sh
Created January 15, 2019 12:59 — forked from jamieoliver/push-all-tags.sh
Push all Git tags to a remote repository. Useful for keeping a fork up to date with the upstream repo.
git push <remote> --tags
import {Injectable, provide} from 'angular2/core';
import {Observable} from 'rxjs';
const GEOLOCATION_ERRORS = {
'errors.location.unsupportedBrowser': 'Browser does not support location services',
'errors.location.permissionDenied': 'You have rejected access to your location',
'errors.location.positionUnavailable': 'Unable to determine your location',
'errors.location.timeout': 'Service timeout has been reached'
};
import { GoogleMapsAPIWrapper } from '@agm/core';
import { Directive, Output, EventEmitter } from '@angular/core';
declare var google: any;
@Directive({
selector: 'agm-location-marker'
})
export class AgmLocationMarker {
marker: any;
////////////////////////////////////////////////////////////////////////////////
/// ///
/// This routine calculates the distance between two points (given the ///
/// latitude/longitude of those points). It is being used to calculate ///
/// the distance between two location using GeoDataSource(TM) ///
/// products. ///
/// ///
/// Definitions: ///
/// South latitudes are negative, east longitudes are positive ///