Skip to content

Instantly share code, notes, and snippets.

View vihardesu's full-sized avatar

Vihar Desu vihardesu

View GitHub Profile
@vihardesu
vihardesu / Custom_React_Boilerplate
Last active July 22, 2020 23:04
Installs the latest create-react-app with some opinionated dependencies and folder structures
mkdir [APP NAME]
cd [APP NAME]
npx create-react-app client
cd client
npm install --save styled-components react-router-dom react-icons react-device-detect
cd src
mkdir components containers assets utilities
@vihardesu
vihardesu / get_color_codes_ubuntu
Created May 21, 2020 17:37
Returns the color's meaning of a folder structure in an ubuntu terminal.
eval $(echo "no:global default;fi:normal file;di:directory;ln:symbolic link;pi:named pipe;so:socket;do:door;bd:block device;cd:character device;or:orphan symlink;mi:missing file;su:set uid;sg:set gid;tw:sticky other writable;ow:other writable;st:sticky;ex:executable;"|sed -e 's/:/="/g; s/\;/"\n/g')
{
IFS=:
for i in $LS_COLORS
do
echo -e "\e[${i#*=}m$( x=${i%=*}; [ "${!x}" ] && echo "${!x}" || echo "$x" )\e[m"
done
}
@vihardesu
vihardesu / react_app_to_production.txt
Last active July 6, 2020 23:13
React App -> Heroku
npx create-react-app [NAME]
cd [NAME]
git init
heroku create [APP-NAME] -b https://github.com/mars/create-react-app-buildpack.git
git add .
git commit -m "react-create-app on Heroku"
git push heroku master
heroku open
@vihardesu
vihardesu / gist:abef05c7cef9d22b6edcb02006d02cd8
Created March 20, 2020 21:45
Python Rapid Testing Environment
mkdir testing
cd testing
virtualenv venv
source venv/bin/activate
pip install numpy pandas jupyter
pip freeze > requirements.txt
jupyter notebook