Skip to content

Instantly share code, notes, and snippets.

View coreyphillips's full-sized avatar

Corey coreyphillips

View GitHub Profile
@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.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"
Verifying my Blockstack ID is secured with the address 1En774vaDxAey7PaM9sn5FoJb6iP18aKyV https://explorer.blockstack.org/address/1En774vaDxAey7PaM9sn5FoJb6iP18aKyV
@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