Skip to content

Instantly share code, notes, and snippets.

View csantanapr's full-sized avatar
🏠
Working from home

Carlos Santana csantanapr

🏠
Working from home
View GitHub Profile
var dojoConfig = {
asyc: true,
baseUrl: 'path/to/src',
tlmSiblingOfDojo: false,
packages: [
'dojo',
'dijit',
'dojox',
{ name: 'doh', location: 'util/doh' }
]
@csantanapr
csantanapr / git-lol
Created June 27, 2013 20:39
alias for git log tree print out
[alias]
lol = log --oneline --graph --decorate --all
git --globla config alias.lol "log --oneline --graph --decorate --all"
#!/bin/bash
while :
do
clear
git --no-pager log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all
sleep 1
done
@csantanapr
csantanapr / .git-completion.bash
Last active December 19, 2015 01:59
Add to ~/.profile source ~/.git-completion.bash
#!bash
#
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
@csantanapr
csantanapr / git-prompt
Created June 27, 2013 20:45
see current branch on prompt Add ~/.profile
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1='\[\033[01;34m\]\W\[\033[00m\]:$(parse_git_branch)$ '
@csantanapr
csantanapr / .cordova-completion.bash
Created July 15, 2013 20:16
Add to ~/.profile as source ~/.cordova-completion.bash
#!bash
case "$COMP_WORDBREAKS" in
*:*) : great ;;
*) COMP_WORDBREAKS="$COMP_WORDBREAKS:"
esac
platforms() {
get_cordova && COMPREPLY=( $(compgen -W "$(${CORDOVA_BIN} platform ls | tr -d "[]',")" -- $1) )
}
<html>
<body>
<h1>
Hellow My Friend
</h1>
</body>
</html>
define(["dojo/_base/lang", "dojo/_base/declare", "dojox/app/Controller"],
function(lang, declare, Controller){
// module:
// dojox/app/tests/mediaQuery3ColumnApp/controllers/LogAllAppEvents
// summary:
// This Custom controller created to log all dojox/app events to see when these events are fired.
return declare("dojox/app/tests/mediaQuery3ColumnApp/controllers/LogAllAppEvents", Controller, {
constructor: function(){
@csantanapr
csantanapr / .gitconfig
Last active August 29, 2015 13:57
My ~/.gitconfig setup
#
# [url "https://"]
# insteadOf = git://
#
[user]
name = Carlos Santana
email = {[email protected]}
[color]
ui = auto
var path = require('path'),
fs = require('fs');
//this node modules will be require from cordova-lib in main function
var shell;
module.exports = function(context) {
//global module to be share globally in this module
shell = context.requireCordovaModule('shelljs');