Skip to content

Instantly share code, notes, and snippets.

View rayrfan's full-sized avatar

Ray Fan rayrfan

View GitHub Profile
@rayrfan
rayrfan / gist:8a799bca602ec8dcca0f76f40a040e4a
Created March 21, 2021 17:47 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@rayrfan
rayrfan / gist:b3113ee93a42ac5fe581220d6f6db106
Created April 15, 2019 15:14 — forked from ozh/gist:4131243
Create dot files/directories (ie .file) on Windows

#How to create a .file or .folder on Windows

There are several ways

1. Rename

  • Create file.txt
  • Rename to .file., the last dot will be dropped, you'll have .file

Works the same with a file or a directory.

@rayrfan
rayrfan / git-tag-delete-local-and-remote.sh
Created March 24, 2019 21:28 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@rayrfan
rayrfan / GitCommitEmoji.md
Created September 16, 2018 05:55 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji

Inspired by dannyfritz/commit-message-emoji

See also gitmoji.

Commit type Emoji
Initial commit πŸŽ‰ :tada:
Version tag πŸ”– :bookmark:
New feature ✨ :sparkles:
Bugfix πŸ› :bug:
@rayrfan
rayrfan / gist:ef1eb7ea5d82b533bf01d313af597e55
Created September 16, 2018 05:52 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@rayrfan
rayrfan / ng-notes.md
Last active January 10, 2018 17:46
Angular Cli Notes
# generate a component named PageNotFound with only a .ts file and no separate style, template or spec file or folder
$ ng g c PageNotFound --flat -is -it --spec=false --dry-run
@rayrfan
rayrfan / npm-notes.md
Last active October 10, 2018 17:23
npm commonly used cmds

To remove global npm packages, delete C:\Users\username\AppData\Roaming\npm C:\Users\username\AppData\Roaming\npm-cache

# download and install latest nodejs https://nodejs.org/en/
# update to latest npm
$ npm i -g npm@latest