Skip to content

Instantly share code, notes, and snippets.

Avatar
🎛️
I hear and I forget. I see and I remember. I do and I understand.

Anubhav Srivastava anubhavsrivastava

🎛️
I hear and I forget. I see and I remember. I do and I understand.
View GitHub Profile
@anubhavsrivastava
anubhavsrivastava / looseEquality.js
Created Nov 7, 2018
Can (a==1 && a==2 && a==3) ever evaluate to true?
View looseEquality.js
const a = { value : 0 };
a.valueOf = function() {
return this.value += 1;
};
console.log(a==1 && a==2 && a==3); //true
View semantic-commit-messages.md

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@krusynth
krusynth / books.md
Last active Jun 15, 2021
A list of useful books to improve your skills
View books.md

Recommended Books

A list of useful books to improve your skills

Recommendations from others are noted in (parentheses). The rest are my personal recommendations.

Programming

Building your core

  • The Pragmatic Programmer - Hunt & Thomas
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active Nov 30, 2021
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)
View iterm2-solarized.md

Default

Default

Powerlevel10k

Powerlevel10k

@jexchan
jexchan / multiple_ssh_setting.md
Created Apr 10, 2012
Multiple SSH keys for different github accounts
View multiple_ssh_setting.md

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"