Skip to content

Instantly share code, notes, and snippets.

View shiva's full-sized avatar
💭
I may be slow to respond.

Shiva shiva

💭
I may be slow to respond.
View GitHub Profile
@shiva
shiva / Makefile
Last active April 6, 2018 05:34 — forked from wolfeidau/Makefile
Standard NodeJS make file.
REPORTER = spec
.PHONY: test tap unit jshint skel help
all: jshint test ## Run all targets
test: ## Run tests
@NODE_ENV=test ./node_modules/.bin/mocha --recursive --reporter $(REPORTER) --timeout 3000
jshint: ## Run Static Analysis
@shiva
shiva / Makefile-AutoHelp
Last active November 1, 2015 23:38 — forked from prwhite/Makefile
Add a help target to a Makefile that will allow all targets to be self documenting
# Add the following 'help' target to your Makefile
# And add help text after each target name starting with '\#\#'
help: ## Show help
@IFS=$$'\n' ; \
help_lines=(`fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##/:/'`); \
printf "%-10s %s\n" "target" "help" ; \
printf "%-10s %s\n" "------" "----" ; \
for help_line in $${help_lines[@]}; do \
IFS=$$':' ; \
@shiva
shiva / .Xresources
Created May 16, 2016 05:58 — forked from liangzan/.Xresources
Xresources for configuring urxvt
! urxvt
URxvt*buffered: true
URxvt*cursorBlink: true
URxvt*underlineColor: yellow
URxvt*font: xft:inconsolata:size=10:antialias=true
URxvt*depth: 32
URxvt*borderless: 1
URxvt*scrollBar: false
URxvt*loginShell: true
Urxvt*secondaryScroll: true # Enable Shift-PageUp/Down in screen
@shiva
shiva / pre-commit-clang-format
Last active July 7, 2017 16:24 — forked from wangkuiyi/pre-commit-clang-format
Git pre-commit hook that invokes clang-format to reformat C/C++/Objective-C source code.
#!/bin/bash
# git pre-commit hook that runs an clang-format stylecheck.
# Features:
# - abort commit when commit does not comply with the style guidelines
# - create a patch of the proposed style changes
# modifications for clang-format by [email protected]
# This file is part of a set of unofficial pre-commit hooks available
# at github.