Skip to content

Instantly share code, notes, and snippets.

View gpincheiraa's full-sized avatar

Gonzalo Pincheira Arancibia gpincheiraa

View GitHub Profile
@gpincheiraa
gpincheiraa / rename_js_files.sh
Created April 4, 2022 21:34 — forked from afternoon/rename_js_files.sh
Rename .js files to .ts
find app/src -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.ts"' {} \;
@gpincheiraa
gpincheiraa / introrx.md
Created October 19, 2016 20:08 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
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)/;