Skip to content

Instantly share code, notes, and snippets.

View kcdipesh's full-sized avatar
🕊️

Dipesh KC kcdipesh

🕊️
View GitHub Profile
@kcdipesh
kcdipesh / .bash_aliases
Created December 14, 2017 14:42 — forked from vratiu/.bash_aliases
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@kcdipesh
kcdipesh / pitches.h
Created June 1, 2016 18:18 — forked from taylor224/pitches.h
Arduino Fingerprint System
/*************************************************
* Public Constants
*************************************************/
#define NOTE_B0 31
#define NOTE_C1 33
#define NOTE_CS1 35
#define NOTE_D1 37
#define NOTE_DS1 39
#define NOTE_E1 41
@kcdipesh
kcdipesh / IonicCordovaNetwork.js
Last active August 29, 2015 14:05 — forked from welcoMattic/IonicCordovaNetwork.js
Angularjs service (meant for ionicframework) to detect wether the user is online or not.Works for both web-view and browser
var myApp = angular.module('myApp')
.factory('CordovaNetworkAsync', ['$ionicPlatform', '$q',
function($ionicPlatform, $q) {
var Connection = window.Connection || {
"CELL": "cellular",
"CELL_2G": "2g",
"CELL_3G": "3g",
"CELL_4G": "4g",
"ETHERNET": "ethernet",