Skip to content

Instantly share code, notes, and snippets.

View geraintwhite's full-sized avatar
:octocat:

Geraint White geraintwhite

:octocat:
View GitHub Profile
def find_turnaround(boat_speed, run_speed, distance):
return distance * (1 + boat_speed / run_speed) / 2
def get_input(prompt, default):
try:
return float(input(prompt))
except:
return default
#import "AppDelegate.h"
#import "Swift-Header.h"
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
LocalNetworkPrivacy *local = [LocalNetworkPrivacy new];
diff --git a/node_modules/react-native-material-textfield/src/components/affix/index.js b/node_modules/react-native-material-textfield/src/components/affix/index.js
index d6c9d64..4c4ea11 100644
--- a/node_modules/react-native-material-textfield/src/components/affix/index.js
+++ b/node_modules/react-native-material-textfield/src/components/affix/index.js
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types';
import React, { PureComponent } from 'react';
-import { Animated } from 'react-native';
+import { Animated, ViewPropTypes } from 'react-native';
diff --git a/node_modules/react-native-proximity/RNProximity/RNProximity.xcodeproj/project.pbxproj b/node_modules/react-native-proximity/RNProximity/RNProximity.xcodeproj/project.pbxproj
index b38f970..80cb473 100644
--- a/node_modules/react-native-proximity/RNProximity/RNProximity.xcodeproj/project.pbxproj
+++ b/node_modules/react-native-proximity/RNProximity/RNProximity.xcodeproj/project.pbxproj
@@ -105,6 +105,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
+ English,
en,
diff --git a/node_modules/react-native-callkeep/android/src/main/java/io/wazo/callkeep/VoiceConnectionService.java b/node_modules/react-native-callkeep/android/src/main/java/io/wazo/callkeep/VoiceConnectionService.java
index cae0399..164d772 100644
--- a/node_modules/react-native-callkeep/android/src/main/java/io/wazo/callkeep/VoiceConnectionService.java
+++ b/node_modules/react-native-callkeep/android/src/main/java/io/wazo/callkeep/VoiceConnectionService.java
@@ -18,17 +18,22 @@
package io.wazo.callkeep;
import android.annotation.TargetApi;
-import android.content.Intent;
-import android.content.Context;
diff --git a/node_modules/react-native-mail/android/src/main/java/com/chirag/RNMail/RNMailModule.java b/node_modules/react-native-mail/android/src/main/java/com/chirag/RNMail/RNMailModule.java
index bcd00c4..e2ec682 100644
--- a/node_modules/react-native-mail/android/src/main/java/com/chirag/RNMail/RNMailModule.java
+++ b/node_modules/react-native-mail/android/src/main/java/com/chirag/RNMail/RNMailModule.java
@@ -5,6 +5,7 @@ import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.text.Html;
+import android.support.v4.content.FileProvider;
#!/bin/bash
loop() {
FN="$@"
for opt in ${OPTIONS[@]}; do
IFS=', ' read -r -a array <<< "$opt"
$FN ${array[0]} ${array[1]} ${array[2]}
done
}
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz
CPU Family: 0x6
@geraintwhite
geraintwhite / DeviceEventEmitter.js
Created March 27, 2018 10:05
React Native Web Polyfills
// @flow
import EventEmitter from 'events';
export default new EventEmitter();
@geraintwhite
geraintwhite / config.json
Last active March 27, 2018 08:44
Filter Strava Activities
{
"strava": {
"client_id": "your_client_id",
"client_secret": "your_client_secret",
"access_token": "your_access_token",
"redirect_uri": "http://localhost:3000/auth"
}
}