This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pulseJS=(function () { | |
var urlBase='app/pulsePHP/v1/'; | |
getFormsElements=function (form) { | |
var regForm = $('#'+form).serializeArray(); | |
var regFormObject = {}; | |
var cont=0; | |
$.each(regForm,function(i, v) { | |
regFormObject[v.name] = v.value; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
PULSEPHP_URL="https://github.com/diniremix/pulsePHP/archive/master.zip" | |
PULSEJS_URL="https://gist.githubusercontent.com/diniremix/8df589843792342197cd/raw/deebde566b25316fc39c8da5a18a4eeb9e88efa4/pulseJS.js" | |
TEST_DIR="./test" | |
APP_DIR="./js" | |
function help(){ | |
echo; | |
echo -e "\e[1;97mpulse\e[0m - a simple script to generate skeletons for Web applications"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[playlist] | |
NumberOfEntries=10 | |
Title1=Radio Tiempo Cali | |
File1=https://24493.live.streamtheworld.com/RT_CALIAAC.aac | |
Title2=Radio Tiempo Clasicos | |
File2=http://i90.letio.com:80/9188.aac | |
Title3=Naxi Radio (Dance) | |
File3=http://naxidigital-dance128.streaming.rs:8110/ | |
Title4=Naxi Radio (Rock) | |
File4=http://naxidigital-rock128.streaming.rs:8180/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#unlock android pattern lock | |
#paso 1 | |
adb shell | |
cd /data/data/com.android.providers.settings/databases | |
sqlite3 settings.db | |
update system set value=0 where name='lock_pattern_autolock'; | |
update system set value=0 where name='lockscreen.lockedoutpermanently'; | |
.quit | |
#reboot android |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function() { | |
function cargarDatos() { | |
var $ = jQuery.noConflict(true), | |
username = "admin", | |
password = "password"; | |
$('#username').trigger('focus').val(username); | |
$('#password').trigger('focus').val(password); | |
$('#remerberMe').trigger('focus').attr('checked',true); | |
} | |
var version = "1.7.1"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
clear | |
function createProyect(){ | |
proyname=$1 | |
if [ ! -d "$proyname" ]; | |
then | |
echo | |
echo -e 'Creando nuevo repositorio de GIT: \e[1;33m'$proyname'\e[0m' | |
mkdir -v $proyname |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
clear | |
dirproy=$(basename "`pwd`") | |
versionapp=$dirproy\_$(date +%d)_$(date +%b) | |
echo | |
echo -e 'Generando archivo tarball del proyecto: \e[1;33m'\"$dirproy\"'\e[0m' | |
echo -e 'Nombre para la Version: \e[1;36m'\"$versionapp\"'\e[0m' | |
rama=$(git br| sed -e '/^[^*]/d' -e 's/* \(.*\)/\ \1/') | |
brname=$(git rev-parse --abbrev-ref HEAD) | |
echo -e 'Rama actual: \e[1;32m' $rama '\e[0m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=Sublime | |
Name[es]=Sublime Text 2 | |
Comment=Sublime Text 2 | |
Comment[es]=Sublime Text 2 | |
GenericName[es]=Sublime Text 2 | |
TryExec=/home/diniremix/.SublimeText2/sublime_text | |
Exec=/home/diniremix/.SublimeText2/sublime_text | |
Icon=/home/diniremix/.SublimeText2/Icon/32x32/sublime_text.png | |
Type=Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
//minifyjs.sublime-build | |
{ | |
"cmd": [ "${packages}\\JavaScript\\yui.bat", "$file", "-o", "${file_path}/${file_base_name}.min.js"], | |
"selector": "source.js" | |
} | |
//yui.bat | |
@echo off | |
echo minifying %* | |
:: path to yui compressor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
app=setupgit.sh; | |
uname="Peter Anderson" | |
email="diniremix@gmail.com" | |
clear; | |
echo "Fijando nombre de usuario y email..." | |
echo | |
git config --global user.name "$uname" | |
git config --global user.email $email | |
echo "Creando algunos alias..." |