Skip to content

Instantly share code, notes, and snippets.

Ido Sela idosela

  • Google
  • New York, NY
Block or report user

Report or block idosela

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@idosela
idosela / http-response-interceptor.js
Last active Jul 18, 2018
Sample code for ng-conf 2014
View http-response-interceptor.js
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)/;
@idosela
idosela / svg2png.sh
Created May 15, 2012
Convert svg to png file and optimize using pngcrush.
View svg2png.sh
#!/bin/sh
#
# Require:
# sudo apt-get install librsvg2-bin
# sudo apt-get install pngcrush
#
# Usage:
# sh svg2png.sh input.svg output.png
rsvg-convert -o "$2" "$1"
@idosela
idosela / angular-bc.js
Created Apr 13, 2012 — forked from vojtajina/angular-bc.js
Angular: BC module for scope/controller separation
View angular-bc.js
/**
* @license AngularJS
* (c) 2010-2012 AngularJS http://angularjs.org
* License: MIT
*/
/**
* Backward compatibility module for AngularJS
* @author Vojta Jina <vojta.jina@gmail.com>
*
You can’t perform that action at this time.