Skip to content

Instantly share code, notes, and snippets.

View coreyphillips's full-sized avatar

Corey coreyphillips

View GitHub Profile
### Keybase proof
I hereby claim:
* I am coreyphillips on github.
* I am coreyphillips (https://keybase.io/coreyphillips) on keybase.
* I have a public key ASBe0KXIw_GNtgCJGDPO9mp_ayNa37mhGAOGc8ENRvZfRwo
To claim this, I am signing this object:
@coreyphillips
coreyphillips / rn-bitcoinjs-lib-4.0.1_Setup.md
Last active March 12, 2019 16:44
How To Add bitcoinjs-lib Version 4.0.1 To A React Native Project

Newer version available. Please see 4.0.2

How To Add bitcoinjs-lib Version 4.0.1 To A React Native Project

Add/Link the following dependencies:

  • yarn add bitcoinjs-lib@4.0.1 react-native-randombytes buffer-reverse buffer@5
  • yarn add --dev rn-nodeify
  • react-native link react-native-randombytes
  • Add the following postinstall to your script in package.json: "postinstall": "rn-nodeify --install buffer,stream,assert,events,crypto,vm --hack"
@coreyphillips
coreyphillips / rn-bitcoinjs-lib-4.0.2_Setup.md
Last active March 12, 2019 16:45
How To Add bitcoinjs-lib Version 4.0.2 To A React Native Project

Newer version available. Please see 4.0.3

How To Add bitcoinjs-lib Version 4.0.2 To A React Native Project

Add/Link the following dependencies:

  • yarn add bitcoinjs-lib@4.0.2 react-native-randombytes buffer-reverse buffer@5
  • yarn add --dev rn-nodeify
  • react-native link react-native-randombytes
  • Add the following postinstall to your script in package.json: "postinstall": "rn-nodeify --install buffer,stream,assert,events,crypto,vm --hack && cd node_modules/bs58 && yarn add base-x@3.0.4 && cd ../../"
@coreyphillips
coreyphillips / rn-bitcoinjs-lib-4.0.3_Setup.md
Last active May 30, 2019 18:52
How To Add bitcoinjs-lib Version 4.0.3 To A React Native Project

Newer version available. Please see 5.0.5

How To Add bitcoinjs-lib Version 4.0.3 To A React Native Project

Add/Link the following dependencies:

  • yarn add bitcoinjs-lib@4.0.3 react-native-randombytes buffer-reverse buffer@5
  • yarn add --dev rn-nodeify
  • react-native link react-native-randombytes
  • Add the following postinstall to your script in package.json: "postinstall": "rn-nodeify --install buffer,stream,assert,events,crypto,vm --hack && cd node_modules/bs58 && yarn add base-x@3.0.4 && cd ../../"
@coreyphillips
coreyphillips / rn-bitcoinjs-lib-5.0.5_Setup.md
Last active August 7, 2019 13:32
How To Add bitcoinjs-lib Version 5.0.5 To A React Native Project

Newer version available. Please see 5.1.1

How To Add bitcoinjs-lib Version 5.0.5 To A React Native Project

Add/Link the following dependencies:

  • yarn add bitcoinjs-lib@5.0.5 react-native-randombytes buffer-reverse buffer@5
  • yarn add --dev rn-nodeify
  • react-native link react-native-randombytes
  • Add the following postinstall to your script in package.json: "postinstall": "rn-nodeify --install buffer,stream,assert,events,crypto,vm --hack && cd node_modules/bs58 && yarn add base-x@3.0.4 && cd ../../"
@coreyphillips
coreyphillips / Moonshine_Altcoin_Implementation_Guide.md
Last active March 13, 2020 17:15
Moonshine Altcoin Implementation Guide

Altcoin Support

Please be aware and take note that my primary focus is on expanding the core functionality of this wallet and not on adding altcoins. However, for those wishing to add a specific altcoin for personal use, this guide was created so that you may fork off in a proper fashion. If you have any questions I'm always happy to help so don't hesitate to reach out.

Feel free to use the following commit as a reference to what changes need to be made: https://github.com/coreyphillips/moonshine/commit/0eeecdeea7a9004bacf6db369cec61bc2c930962

Files that will need to be modified/updated for this process:

//
// LndReactModule.m
// lightning
//
// Created by Johan Torås Halseth on 05/11/2018.
//
#import "LndReactModule.h"
#import <React/RCTLog.h>
#import <React/RCTConvert.h>
/**
* @fileOverview a low level action to proxy GRPC api calls to and from lnd
* mobile via a native module. This module should not be invokes directly
* from the UI but rather used within other higher level actions.
*/
import "../shim";
import base64 from "base64-js";
import { lnrpc } from "./rpc";
import { toCaps } from "./helpers";
2020-07-31 14:22:51.494 27080-27080/? I/act_native_dem: Not late-enabling -Xcheck:jni (already on)
2020-07-31 14:22:51.523 27080-27080/? I/act_native_dem: Unquickening 12 vdex files!
2020-07-31 14:22:51.530 27080-27080/? W/act_native_dem: Unexpected CPU variant for X86 using defaults: x86
2020-07-31 14:22:51.624 27080-27080/com.react_native_demo I/act_native_dem: The ClassLoaderContext is a special shared library.
2020-07-31 14:22:51.826 27080-27080/com.react_native_demo D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2020-07-31 14:22:51.827 27080-27080/com.react_native_demo D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2020-07-31 14:22:51.835 27080-27080/com.react_native_demo D/SoLoader: init start
2020-07-31 14:22:51.835 27080-27080/com.react_native_demo D/SoLoader: adding system library source: /vendor/lib
2020-07-31 14:22:51.837 27080-27080/com.react_native_demo D/SoLoader: adding system library source: /system/lib
2020-07-31 14
@coreyphillips
coreyphillips / gist:f27025c86b838cc5372c
Last active July 19, 2022 20:04 — forked from mhawksey/gist:1276293
Google App Script to insert data to a google spreadsheet via POST or GET - updated version as per https://mashe.hawksey.info/2014/07/google-sheets-as-a-database-insert-with-apps-script-using-postget-methods-with-ajax-example/
/*
Copyright 2011 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software