Skip to content

Instantly share code, notes, and snippets.

Avatar

Boda bodazhao

  • United Kingdom
View GitHub Profile
@bodazhao
bodazhao / copy-folders-exclude-node-modules.js
Last active Apr 4, 2018
Copy a folder and subfolders without all the `node_modules` folders within... tested with Node v9.10.1
View copy-folders-exclude-node-modules.js
// yarn add fs-extra --dev
const fs = require("fs-extra");
console.log("*** start ***");
// replace ".src" with your own folder
fs
.copy("./src", "./dist", {
filter: path => {
// console.log("path ===", path);
@bodazhao
bodazhao / .bash_profile
Created Jan 9, 2019
Minimal Bash shell prompt
View .bash_profile
# in ~/.bash_profile
# \W The basename of $PWD, with $HOME abbreviated with a tilde
# full list: https://www.gnu.org/software/bash/manual/html_node/Controlling-the-Prompt.html
export PS1="\W \$ "
@bodazhao
bodazhao / 📊 Weekly development breakdown
Last active Mar 10, 2020
🚀Weekly Development Breakdown
View 📊 Weekly development breakdown
TypeScript 21 hrs 34 mins █████████████▉░░░░░░░ 66.1%
JSX 5 hrs 57 mins ███▊░░░░░░░░░░░░░░░░░ 18.2%
JavaScript 2 hrs 51 mins █▊░░░░░░░░░░░░░░░░░░░ 8.8%
JSON 39 mins ▍░░░░░░░░░░░░░░░░░░░░ 2.0%
Markdown 26 mins ▎░░░░░░░░░░░░░░░░░░░░ 1.3%
You can’t perform that action at this time.