Skip to content

Instantly share code, notes, and snippets.

View iawaisrana's full-sized avatar
🎯
Focusing

Awais Rana iawaisrana

🎯
Focusing
View GitHub Profile

Add Git Branch Name to Terminal Prompt (macOS Catlina)

Open ~/.zshrc in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

function parse_git_branch() {
    git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p'
}
import React from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
StatusBar,
Button,
} from 'react-native';
import {requestOneTimePayment} from 'react-native-paypal';
import {Colors} from 'react-native/Libraries/NewAppScreen';
const dotenv = require("dotenv");
const braintree = require("braintree");
const express = require("express");
dotenv.config();
const app = express();
var gateway = braintree.connect({
environment: braintree.Environment.Sandbox,
MERCHANT_ID=place your merchant id here
PUBLIC_KEY=place your public key here
PRIVATE_KEY=place your private key here
PORT=3000
NODE_ENV=development