Skip to content

Instantly share code, notes, and snippets.

@fabe
fabe / expo-pkce.js
Created August 6, 2019 23:00
Create a `verifier` and `challenge` in Expo (React Native) for the Authorization Code Grant Flow with PKCE (Auth0)
// Usage:
// const [verifier, challenge] = await createVerifierChallenge();
import * as Random from 'expo-random';
import * as Crypto from 'expo-crypto';
if (typeof Buffer === 'undefined') {
global.Buffer = require('buffer').Buffer;
}
@vratiu
vratiu / .bash_aliases
Last active July 15, 2024 10:23
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset