Skip to content

Instantly share code, notes, and snippets.

// Expo config plugin for Plaid SDK
// Adds Plaid support to managed expo apps using the dev client
//
// https://docs.expo.dev/guides/config-plugins/
// https://github.com/plaid/react-native-plaid-link-sdk#android-setup
import { ExpoConfig } from "@expo/config";
import {
ConfigPlugin,
withAppBuildGradle,
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x104665e94]
goroutine 34 [running]:
google.golang.org/protobuf/types/dynamicpb.(*Message).Descriptor(0x0)
/Users/eric/Sources/go-protobuf/types/dynamicpb/dynamic.go:109 +0x4
google.golang.org/protobuf/internal/impl.Export.MessageDescriptorOf({}, {0x1047cc020, 0x0})
/Users/eric/Sources/go-protobuf/internal/impl/api_export.go:156 +0x60
github.com/golang/protobuf/proto.MessageName({0x10bb9bdf0, 0x0})
/Users/eric/Sources/go-protobuf-old/proto/registry.go:271 +0x68
// actions/polls.js
export const FETCH_SUCCESS = `POLLS_FETCH_SUCCESS`;
export const FETCH_FAILURE = `POLLS_FETCH_FAILURE`;
function fetch() {
return (dispatch) => {
// Set API URL and request options, then...
fetch(url, options)
.then((response) => response.json())
// actions/polls.js
export const FETCH_SUCCESS = `POLLS_FETCH_SUCCESS`;
export const FETCH_FAILURE = `POLLS_FETCH_FAILURE`;
function fetch() {
return (dispatch) => {
// Set API URL and request options, then...
fetch(url, options)
.then((response) => response.json())
@codebutler
codebutler / QGIS-MAC-INSTALL.md
Last active August 23, 2019 10:10
Building QGIS master on MacOS

Buiding QGIS master on MacOS

How to build

$ brew tap codebutler/brew
$ brew install codebutler/brew/gdal
$ brew install codebutler/brew/qtkeychain
$ brew install bison geos libzip qca python3 pyqt qscintilla2 gsl qwt spatialindex libpq
$ pip3 install six
$ git clone https://github.com/qgis/QGIS.git
@codebutler
codebutler / retrograde-cla.md
Last active January 18, 2018 16:05
Retrograde Contributor License Agreement

Retrograde Contributor License Agreement

The following terms are used throughout this agreement:

  • You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
  • Project - is an umbrella term that refers to any and all Retrograde open source projects.
  • Contribution - any type of work that is submitted to a Project, including any modifications or additions to existing work.
  • Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with Retrograde, contributors or maintainers.

1. Grant of Copyright License.

set adb to "/usr/local/bin/adb"
set impbcopy to "/Users/ericbutler/.bin/impbcopy"
set {oldtid, AppleScript's text item delimiters} to {AppleScript's text item delimiters, return}
set rawDevices to do shell script adb & " devices | tail -n +2 | grep -v '^$' | awk -F\\ '{ print $1 }'"
set devices to every text item of rawDevices
set AppleScript's text item delimiters to oldtid

Keybase proof

I hereby claim:

  • I am codebutler on github.
  • I am codebutler (https://keybase.io/codebutler) on keybase.
  • I have a public key whose fingerprint is DC69 C720 351C AFCD B038 F130 7353 0388 7257 7B74

To claim this, I am signing this object:

def password = null
def askPassword() {
return 'security -q find-generic-password -g -l omw-release -w'.execute().text.trim()
}
afterEvaluate {
validateReleaseSigning.doFirst {
password = askPassword()
signingConfig.storePassword = password
@codebutler
codebutler / MapAdjust.java
Last active April 19, 2016 02:54
Code to offset Android Google Map positions in pixels.
// MapAdjust.java
// Based on adjust.py
// Gatubit <gatubit@gmail.com>
// https://gist.github.com/astrocosa/724526
// Based on adjust.js
// Bratliff <bratliff@umich.edu>
// http://www.polyarc.us/adjust.js