Skip to content

Instantly share code, notes, and snippets.

View ceoaliongroo's full-sized avatar

Carlos Mantilla ceoaliongroo

View GitHub Profile
@ceoaliongroo
ceoaliongroo / ngDebug.js
Last active August 29, 2015 14:21
Angular (ng) services debug via console.
var ng = ngDebug;
var $filter;
function getService(name) {
return angular.element('body').injector().get(name);
};
function ngDebug(name) {
var providers = [];
@ceoaliongroo
ceoaliongroo / ndDebug.html
Last active August 29, 2015 14:21
angular debug webcomponent
<!-- Debug -->
<style>
pre.debug {
font-size: 11px;
position: fixed;
top: 130px;
left: 40px;
overflow-y: scroll;
direction: ltr;
max-height: 80%;
@ceoaliongroo
ceoaliongroo / favorites
Last active August 29, 2015 14:26
Git favorites
https://github.com/pemrouz/popper
https://github.com/lapwinglabs/bare-auth
https://github.com/stevenmiller888/mind
@ceoaliongroo
ceoaliongroo / .bash_profile
Last active November 24, 2015 11:38
My .bash_profile
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# Set PATH
export PATH="/Applications/MAMP/Library/bin/:$PATH"
@ceoaliongroo
ceoaliongroo / 0_reuse_code.js
Created November 27, 2015 19:40
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ceoaliongroo
ceoaliongroo / 030_update_platform_config.js
Created March 6, 2016 13:00 — forked from marcocarnazzo/030_update_platform_config.js
Ionic/Cordova update platform config
#!/usr/bin/env node
/** This hook updates platform configuration files based on preferences and config-file data defined in config.xml.
Currently only the AndroidManifest.xml and IOS *-Info.plist file are supported.
See http://stackoverflow.com/questions/28198983/ionic-cordova-add-intent-filter-using-config-xml
Preferences:
1. Preferences defined outside of the platform element will apply to all platforms
2. Preferences defined inside a platform element will apply only to the specified platform
@ceoaliongroo
ceoaliongroo / ExcelFormulas.js
Created June 7, 2016 09:04 — forked from pies/ExcelFormulas.js
Few Excel formulas - PMT, PPMT, XIRR - expressed in Javascript
/* Based on
* - EGM Mathematical Finance class by Enrique Garcia M. <egarcia@egm.co>
* - A Guide to the PMT, FV, IPMT and PPMT Functions by Kevin (aka MWVisa1)
*/
var ExcelFormulas = {
PVIF: function(rate, nper) {
return Math.pow(1 + rate, nper);
},