Skip to content

Instantly share code, notes, and snippets.

View marti1125's full-sized avatar
๐Ÿ

Willy Aguirre marti1125

๐Ÿ
View GitHub Profile
@marti1125
marti1125 / gist:cf2dea576e9edcb251bd
Created July 12, 2014 06:05
html5 app mobile structure
<html>
<head>
<title>Test</title>
</head>
<body>
<page id="home">
<header>
<h1>Title</h1>
</header>
WebServiceException
Logger.error(e, "Ha ocurrido un problema de conexion con un WebService");
GenericJDBCException
Logger.error(e, "Ha ocurrido un problema con un Procedimiento Almacenado");
SQLGrammarException
Logger.error(e, "El Procedimiento Almacenado no existe");
function cambiarLetras(letra){
var resultado = letra.replace("&Aacute;", "ร").replace("&aacute;", "รก")
.replace("&Eacute;", "ร‰").replace("&eacute;", "รฉ")
.replace("&Iacute;", "ร").replace("&iacute;", "รญ")
.replace("&Oacute;", "ร“").replace("&oacute;", "รณ")
.replace("&Uacute;", "รš").replace("&uacute;", "รบ")
.replace("&ntilde;", "รฑ").replace("&Ntilde;", "ร‘");
return resultado;
}
@marti1125
marti1125 / gist:64b71f0bfc95210b76ea
Created June 17, 2014 20:14
datetimezone joda-time
DateTimeZone zone = DateTimeZone.forID("America/Lima");
@marti1125
marti1125 / gist:a3ddbc5723ed0780b46e
Created June 9, 2014 17:06
change size of memory for play framework project
jvm.memory=-Xmx2G -Xms2G -XX:PermSize=256m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled
@marti1125
marti1125 / gist:d3a20d71c56ce94a29b2
Created June 8, 2014 15:11
Question: how to cell render again ?
var row = new Backgrid.Row({model: model, columns: [...]});
row.render();
@marti1125
marti1125 / gist:660a4ba8c955fa0f614e
Created June 6, 2014 19:53
[git] revert a file
C:\Users\Willy\Documents\GitHub\cordova-firefoxos [new-icon]> git checkout 52a52
55 bin\lib\create.js
@marti1125
marti1125 / gist:cf78a11178b43b22ee02
Created June 6, 2014 00:34
Fix Isuee with Icons Apache/Cordova-FirefoxOS
I did some investigation and I think the plan for now should be:
1. Create a bin/templates/project/res folder in cordova-firefox
2. Copy icons there. At least sizes 128x128 and 60x60.
3. In bin/lib/create.js, make sure you copy res folder into platforms/firefoxos/platform_www. Cordova prepare will copy files in there over to www.
4. update bin/templates/project/cordova/defaults.xml with new default icons
5. Make sure icon implementation in cordova-lib/src/cordova/metadata/firefoxos_parser.js at repo cordova-lib can find the icons.
@marti1125
marti1125 / gist:f06eb309f8ee1cac315f
Created June 4, 2014 15:26
restore a database sql server 2008
RESTORE DATABASE AdventureWorks
FROM DISK = 'C:\BackupAdventureworks.bak'
WITH REPLACE
@marti1125
marti1125 / index.html
Created May 19, 2014 20:35
A Pen by Willy Aguirre.
<div id="visLines" class="channel-visualisation subscription-channels">
<div class="channel" color="blue" for="sendMessage" data-val="4">
4
<div class="dot color"></div>
</div>
<div class="channel" color="pink" for="clear" data-val="3">
3
<div class="dot color"></div>
</div>