Skip to content

Instantly share code, notes, and snippets.

View kpunith8's full-sized avatar
🏠
Working from home

Punith K kpunith8

🏠
Working from home
View GitHub Profile
@kpunith8
kpunith8 / Dockerfile
Created March 3, 2020 09:57 — forked from remarkablemark/Dockerfile
Install node and npm with nvm using Docker.
# set the base image to Debian
# https://hub.docker.com/_/debian/
FROM debian:latest
# replace shell with bash so we can source files
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# update the repository sources list
# and install dependencies
RUN apt-get update \
@kpunith8
kpunith8 / terminal-git-branch-name.md
Created September 10, 2019 10:32 — forked from joseluisq/terminal-git-branch-name.md
Add Git Branch Name to Terminal Prompt (Mac)

Add Git Branch Name to Terminal Prompt (Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {
@kpunith8
kpunith8 / MockitoBehaviour.java
Created April 25, 2019 05:55 — forked from dimosr/MockitoBehaviour.java
Mockito when/thenReturn & doReturn/when patterns behaviour
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import java.util.Map;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.when;
@RunWith(MockitoJUnitRunner.class)
@kpunith8
kpunith8 / webdev_online_resources.md
Created July 27, 2018 10:18 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)