Skip to content

Instantly share code, notes, and snippets.

View edwinwong90's full-sized avatar

Edwin Wong edwinwong90

View GitHub Profile
@edwinwong90
edwinwong90 / load_dotenv.sh
Created February 23, 2023 10:59 — forked from mihow/load_dotenv.sh
Load environment variables from dotenv / .env file in Bash
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
@edwinwong90
edwinwong90 / array-print.js
Last active August 6, 2022 15:10
Effortless print each array method result for debugging
if (!Array.prototype.print) {
// eslint-disable-next-line no-extend-native
Array.prototype.print = function () {
if (this == null) {
throw new TypeError("this is null or not defined")
}
console.log(this)
return this
}
}
@edwinwong90
edwinwong90 / cleanup.sh
Created April 5, 2020 03:50
React Native Super Clean up commands
#!/bin/bash
echo "Project Cleaning Begin"
echo "Cleaning React Cache"
rm -rf $TMPDIR/react-*
echo "Cleaning Metro Cache"
rm -rf $TMPDIR/metro-*
echo "Cleaning Watchman Cache"
@edwinwong90
edwinwong90 / README.md
Last active November 4, 2019 10:35
git flow extend cli tool which support submodule.

Installation

cd to root project and run following command

curl https://gist.githubusercontent.com/edwinwong90/e14f1d767fd42338789ee4f437cb8eab/raw/5e28bdb779815e207fd07940573b3840ba3abfc6/gitflow-extend-cli.sh > gitflow-extend-cli.sh && chmod 755 gitflow-extend-cli.sh

Usage

@edwinwong90
edwinwong90 / README-Template.md
Created March 10, 2019 16:06 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites