View .gitlab-ci.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e2e_run: | |
stage: e2e | |
services: | |
- node:lts-alpine | |
image: testimio/gmsaas | |
before_script: | |
- npm install -g detox-cli | |
script: | |
- gmsaas auth login $GENYMOTION_USERNAME $GENYMOTION_PASSWD | |
# The recipe id 80a67ae9-430c-4824-a386-befbb19518b9 is Google Nexus 6 |
View index.js.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- index.js 2020-04-08 12:26:27.000000000 +0300 | |
+++ index.new.js 2020-04-08 12:26:08.000000000 +0300 | |
@@ -79,7 +79,7 @@ | |
_.trys.pop(); continue; | |
} | |
op = body.call(thisArg, _); | |
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }} | |
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | |
} | |
if (op[0] & 5) throw op[1] |
View MainApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Replace com.myapp with your app's package name | |
package com.myapp; | |
import android.app.Application; | |
import com.facebook.react.ReactApplication; | |
import com.facebook.react.ReactNativeHost; | |
import com.facebook.react.ReactPackage; | |
import com.facebook.react.shell.MainReactPackage; |
View Blockstack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying my Blockstack ID is secured with the address 1NdXY7NnA9ZVdg3D83ZhwHy1x4SxLCq5Rt https://explorer.blockstack.org/address/1NdXY7NnA9ZVdg3D83ZhwHy1x4SxLCq5Rt |
View configureStore.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@flow | |
import { createStore, applyMiddleware } from 'redux'; | |
import storage from 'redux-persist/lib/storage' | |
import { composeWithDevTools } from 'redux-devtools-extension'; | |
import { persistStore, persistReducer } from 'redux-persist'; | |
import thunk from 'redux-thunk'; | |
import reducer from 'reducers'; | |
import { createOffline } from '@redux-offline/redux-offline'; | |
import offlineConfig from '@redux-offline/redux-offline/lib/defaults/index'; |
View ImagePicker.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
import Alert from 'utils/AlertUtils'; | |
import { ImagePicker as ExpoImagePicker, Permissions } from 'expo'; | |
export default { | |
async launchCameraAsync(options: { | |
allowsEditing?: boolean, | |
quality?: number | |
}): Promise<{ uri?: string }> { | |
const { status: cameraPermission } = await Permissions.askAsync( |
View bounceWhenTap.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import {TouchableWithoutFeedback, Text, View} from 'react-native'; | |
import * as Animatable from 'react-native-animatable'; | |
Animatable.initializeRegistryWithDefinitions({ | |
bounceLeftRight: { | |
0: { | |
translateX: 0, | |
}, | |
0.3: { |
View chat-input-keyboard-aware.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
content = [1,2,3,4,5,6,7,8,9,10] | |
<SafeAreaView style={styles.container}> | |
<KeyboardAvoidingView style={styles.keyboardAvoidContainer} behavior="padding"> | |
<ScrollView style={{flex: 1}}> | |
{content.map(num => ( | |
<View style={{height: 80, margin: 10, borderWidth: 1, justifyContent: 'center', alignItems: 'center'}} key={num}> | |
<Text>{num}</Text> | |
</View> | |
)} |
View Count lines in Git repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository | |
$ git ls-files | xargs wc -l |
View upload_to_pcloud.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while : | |
do | |
zip -r $ZIP_FILENAME $FOLDERNAME && curl -F 'filename=@$ZIP_FILENAME' 'https://api.pcloud.com/uploadtolink?code=$PCLOUD_UPLOAD_CODE' && rm -f $ZIP_FILENAME && sleep $SLEEPTIME | |
done | |
#ZIP_FILENAME: file name of the zip you want to name it | |
#FOLDERNAME: the folder you want to zip | |
#PCLOUD_UPLOAD_CODE: go to pcloud, generate an upload link, you will find the code | |
#SLEEPTIME: the sleep interval for each upload cycle, if you want this to be a loop |
NewerOlder