Skip to content

Instantly share code, notes, and snippets.

View harveyconnor's full-sized avatar
💭
React Native

Harvey Connor harveyconnor

💭
React Native
View GitHub Profile
@harveyconnor
harveyconnor / Fastfile
Created April 23, 2021 05:14 — forked from johanquiroga/Fastfile
fastlane android
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
@harveyconnor
harveyconnor / jwtVerify.ts
Created August 10, 2020 05:55
Async JWT Verify for TypeScript/JS
export async function jwtVerify(token: string, secret: string): Promise<any> {
return new Promise((resolve, reject) => {
verify(token, secret, (err, decoded) => {
if (err) return reject(err);
resolve(decoded);
});
});
}
@harveyconnor
harveyconnor / README.md
Created May 26, 2020 01:13
React Native Swift Module Singleton Pattern with Events Example

React Native Swift Module Singleton Pattern

If you are reading this tutorial please be aware that this is for advanced users that require a singleton pattern in their RN native module and some documentation detail is left out intentionally.

For the sake of this tutorial we will be using TestManager as our class.

Instructions

  1. First of all you need to setup a swift class with a bridging header, in Xcode it will generate this for you upon creating a Swift file.
  2. Create your swift class with the @objc directive.
  3. Create a second class that has a static export of the class in singleton.
  4. Follow the files below for a boilerplat example.
@harveyconnor
harveyconnor / a-mongodb-replica-set-docker-compose-readme.md
Last active August 12, 2024 17:25
MongoDB Replica Set / docker-compose / mongoose transaction with persistent volume

This will guide you through setting up a replica set in a docker environment using.

  • Docker Compose
  • MongoDB Replica Sets
  • Mongoose
  • Mongoose Transactions

Thanks to https://gist.github.com/asoorm for helping with their docker-compose file!