Skip to content

Instantly share code, notes, and snippets.

View bhatmand's full-sized avatar

Mandeep Singh Bhatia bhatmand

View GitHub Profile
@bhatmand
bhatmand / reading-list.adoc
Created September 17, 2020 06:08 — forked from wwerner/reading-list.adoc
Reading list for young developers
Table of Contents

The Pragmatic Programmer

Straight from the programming trenches, The Pragmatic Programmer: From Journeyman to Master cuts through the increasing specialization and technicalities of modern software development to examine the core process—what do you do, as an individual and as a team, if you want to

@bhatmand
bhatmand / books.txt
Created September 13, 2020 09:35 — forked from jjaffeux/books.txt
books
Exceptional Ruby (Avdi Grimm)
Objects on Rail (Avdi Grimm)
Confident Ruby (Avdi Grimm)
Eloquent Ruby (Russ Olsen)
Growing Object-Oriented Software Guided by Tests (Steve Freeman and Nat Pryce)
Continuous Delivery: Reliable Software Releases through Build, Test, and Deployment Automation (Jez Humble and David Farley)
Clean Code (Robert C. Martin)
Working with UNIX processes (Jesse Storimer)
Working With TCP Sockets (Jesse Storimer)
Founders at Work (Livingston)
@bhatmand
bhatmand / README-Template.md
Created July 12, 2020 09:26 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@bhatmand
bhatmand / git-recover-branch.md
Created April 2, 2020 11:25 — forked from jbgo/git-recover-branch.md
How to recover a git branch you accidentally deleted

UPDATE: A better way! (August 2015)

As pointed out by @johntyree in the comments, using git reflog is easier and more reliable. Thanks for the suggestion!

 $ git reflog
1ed7510 HEAD@{1}: checkout: moving from develop to 1ed7510
3970d09 HEAD@{2}: checkout: moving from b-fix-build to develop
1ed7510 HEAD@{3}: commit: got everything working the way I want
70b3696 HEAD@{4}: commit: upgrade rails, do some refactoring
@bhatmand
bhatmand / README.md
Created January 30, 2020 15:01 — forked from nikcub/README.md
Facebook PHP Source Code from August 2007
@bhatmand
bhatmand / it-ebooks.md
Created January 25, 2020 15:21 — forked from baiwfg2/it-ebooks.md
Download ebooks as you want
const { createServer } = require('http');
createServer((req, res) => {
res.writeHead(200, {
Connection: 'Transfer-Encoding',
'Content-Type': 'text/html; charset=utf-8',
'Transfer-Encoding': 'chunked'
});
res.write(`
@bhatmand
bhatmand / README.md
Created September 9, 2019 11:09 — forked from jocki84/README.md
scrollIntoViewIfNeeded 4 everyone!!!

Polyfill for scrollIntoViewIfNeeded()

This gist provides polyfill code for the [scrollIntoViewIfNeeded()][SIVIN] Element method found on WebKit browsers.

Features

There is no particular requirement on the position in the hierarchy of the

@bhatmand
bhatmand / .block
Created September 3, 2019 12:29 — forked from kerryrodden/.block
Sequences sunburst
license: apache-2.0
@bhatmand
bhatmand / git.migrate
Created August 19, 2019 20:24 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.