Skip to content

Instantly share code, notes, and snippets.

View IjzerenHein's full-sized avatar
🏓
Brewing up code (and potentially also beer)

Hein Rutjes IjzerenHein

🏓
Brewing up code (and potentially also beer)
View GitHub Profile
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { useFocusEffect } from '@react-navigation/native';
import React, { useCallback } from 'react';
import { Animated, StyleSheet } from 'react-native';
import { IconName } from '../components/Icon';
import TabBar from '../components/tabbar/TabBar';
import AccountScreen from '../screens/AccountScreen';
import HelpScreen from '../screens/HelpScreen';
import MyPlaceScreen from '../screens/myplace/MyPlaceScreen';
@IjzerenHein
IjzerenHein / app.json
Last active February 26, 2020 10:22
Expo Firebase Example Config
{
"expo": {
"ios": {
"bundleIdentifier": "com.myawesomeapp",
"googleServicesFile": "./GoogleService-Info.plist"
},
"android": {
"package": "com.myawesomeapp",
"googleServicesFile": "./google-services.json"
},
import {
FirebaseAnalyticsJSCodedEvent,
FirebaseAnalyticsJSConfig,
FirebaseAnalyticsJSOptions,
} from './FirebaseAnalyticsJS.types';
/**
* A pure JavaScript Google Firebase Analytics implementation that uses
* the HTTPS Measurement API 2 to send events to Google Analytics.
*
@IjzerenHein
IjzerenHein / StripeShowOptions.h
Created December 19, 2019 16:30
iOS/JS code for showing the Stripe PaymentOptions ViewController in react-native
//
// StripeEx.h
// VickyParking
//
// Created by Hein Rutjes on 06/12/2019.
// Copyright © 2019 Facebook. All rights reserved.
//
#ifndef StripeEx_h
#define StripeEx_h
import React, { Component } from 'react';
import {
StyleSheet,
View
} from 'react-native';
import GL from 'gl-react';
import { Surface, resolveAssetSource } from 'gl-react-native';
import shader from './Shader';
const shaders = GL.Shaders.create({
//
// TextToSpeech.m
// TextToSpeech
//
// Created by Anton Krasovsky on 27/09/2016.
// Copyright © 2016 Anton Krasovsky. All rights reserved.
//
#import "RCTBridge.h"
#import "RCTEventDispatcher.h"
const R = 6371; // earths radius in km
function radiansFromDegrees(deg) {
return deg * (Math.PI / 180);
}
// reduce number of positions using the Ramer–Douglas–Peucker algorithm
// https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm
// Code based on: https://www.namekdev.net/2014/06/iterative-version-of-ramer-douglas-peucker-line-simplification-algorithm/
function simplifyGeoCoordinates(positions, tolerance) {
<a href="stagehound://hein">Hein</a>
stagehound://hein
Process: Silverjuke [8518]
Path: /Users/USER/Downloads/Silverjuke.app/Contents/MacOS/Silverjuke
Identifier: com.BPSoftwareDesignNDev.Silverjuke
Version: 1.0
Code Type: X86 (Native)
Parent Process: ??? [1]
Responsible: Silverjuke [8518]
User ID: 501
Date/Time: 2015-10-18 20:19:14.530 +0200