Skip to content

Instantly share code, notes, and snippets.

View Himanshu-Mishr's full-sized avatar

Himanshu Mishra Himanshu-Mishr

View GitHub Profile
@Himanshu-Mishr
Himanshu-Mishr / codegolf.md
Last active August 29, 2015 14:23 — forked from xem/codegolf.md
@Himanshu-Mishr
Himanshu-Mishr / updateTracker.py
Created August 9, 2016 06:17
Update Tracker for a product ecosystem
import os, subprocess
# Global variables
EXCLUDE_FOLDERS = ["node_modules", "bower_components", ".git", "uploads"]
PRESENT_DIRECTORY = "."
def get_git_repo_path():
git_repo_dir_list = []
@Himanshu-Mishr
Himanshu-Mishr / http-response-interceptor.js
Created December 18, 2016 14:59 — forked from idosela/http-response-interceptor.js
Sample code for ng-conf 2014
angular.module('myMdl', []).config(['$httpProvider', function($httpProvider) {
$httpProvider.responseInterceptors.push([
'$q', '$templateCache', 'activeProfile',
function($q, $templateCache, activeProfile) {
// Keep track which HTML templates have already been modified.
var modifiedTemplates = {};
// Tests if there are any keep/omit attributes.
var HAS_FLAGS_EXP = /data-(keep|omit)/;