Skip to content

Instantly share code, notes, and snippets.

Edgar grundmanise

  • Malta
Block or report user

Report or block grundmanise

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
View rxjs.ajax.js
const searchEpic = (action$, store) =>
.map(action => action.payload)
.switchMap(query =>'http://localhost:8080/search', {query})
.map(res => ({type: 'SEARCH_DATA', result: res.response}))
View shallowEqual.js
* Copyright (c) 2013-present, Facebook, Inc.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* @providesModule shallowEqual
* @typechecks
* @flow
grundmanise / haversine.js
Last active Jun 5, 2017
Get distance between two points (return distance in meters)
View haversine.js
const calculateDistance = (pointA, pointB) => {
const lat1 = pointA.coordinate.latitude;
const lon1 = pointA.coordinate.longitude;
const lat2 = pointB.coordinate.latitude;
const lon2 = pointB.coordinate.longitude;
const R = 6371e3; // earth radius in meters
View Get LinkedList length
function getLinkedListLength(A = [1,4,-1,3,2]) {
let count = 0;
let current = 0;
while(current !== -1) {
if (A.length < current)
throw Error(`No link found for value: ${current}. Count: ${count}`);
current = A[current];
grundmanise /
Last active Nov 1, 2018
React Native + React Native Navigation: launch images setup [iOS] (iPhone)

Personal note on how to setup launch images in RN when using RNN [iOS] (iPhone).


Launch image sizes:


  1. Retina HD 5.5" : 1242 x 2208 px
  2. Retina HD 4.7" : 750 x 1334 px
You can’t perform that action at this time.