Skip to content

Instantly share code, notes, and snippets.

View Shashank085236's full-sized avatar

Shashank Dwivedi Shashank085236

View GitHub Profile
@Shashank085236
Shashank085236 / gitflow-breakdown.md
Created March 6, 2020 14:46 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@Shashank085236
Shashank085236 / git-update
Created April 5, 2018 18:05 — forked from steve-jansen/git-update
A custom script for git to stash any working changes, checkout master, pull origin master, checkout your working branch, rebase master, and unstash your working changes
#!/bin/bash
stash() {
# check if we have uncommited changes to stash
git status --porcelain | grep "^." >/dev/null;
if [ $? -eq 0 ]
then
if git stash save -u "git-update on `date`";
then
@Shashank085236
Shashank085236 / js-tricky-bits.md
Created October 9, 2016 17:55 — forked from amysimmons/js-tricky-bits.md
Understanding closures, callbacks and promises in JavaScript

#Understanding closures, callbacks and promises

For a code newbie like myself, callbacks, closures and promises are scary JavaScript concepts.

10 months into my full-time dev career, and I would struggle to explain these words to a peer.

So I decided it was time to face my fears, and try to get my head around each concept.

Here are the notes from my initial reading. I'll continue to refine them as my understanding improves.