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 / 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)/;
@Himanshu-Mishr
Himanshu-Mishr / codegolf.md
Last active August 29, 2015 14:23 — forked from xem/codegolf.md
; Don't forget to change the Icon and Exec path to your needs
; And save this file into the ~/.local/share/applications/ directory
[Desktop Entry]
Version=1.0
Type=Application
Name=Notes
Icon=/home/mariocesar/bin/notes.png
Exec=/home/mariocesar/bin/notes.py
Categories=Accessories;
#!/usr/bin/python
"""Usage:
X.py < X.in > X.out
"""
################################################################################
# util functions
logging = False