Skip to content

Instantly share code, notes, and snippets.

View marti1125's full-sized avatar
🐍

Willy Aguirre marti1125

🐍
View GitHub Profile
@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: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: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:64b71f0bfc95210b76ea
Created June 17, 2014 20:14
datetimezone joda-time
DateTimeZone zone = DateTimeZone.forID("America/Lima");
function cambiarLetras(letra){
var resultado = letra.replace("Á", "Á").replace("á", "á")
.replace("É", "É").replace("é", "é")
.replace("Í", "Í").replace("í", "í")
.replace("Ó", "Ó").replace("ó", "ó")
.replace("Ú", "Ú").replace("ú", "ú")
.replace("ñ", "ñ").replace("Ñ", "Ñ");
return resultado;
}
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");
@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>
// registering remote methods
client.registerMethod("jsonGetInfAboutUserByEmail",
url_server+"/api/v1/users/?app_name="+app_name+"&app_key="+api_key+"&email=marti1125@gmail.com", "GET");
client.methods.jsonGetInfAboutUserByEmail(function(data,response){
// parsed response body as js object
console.log(data); // iterate
// raw response
console.log(response);
});
@marti1125
marti1125 / gist:74fc37e938e6b2e81f29
Created July 15, 2014 20:37
last issue for fix
04:55:19 p.m. - marti1125: this ? https://issues.apache.org/jira/browse/CB-4556
04:55:55 p.m. - marti1125: what does mean r+ ?
04:57:22 p.m. - marti1125: https://issues.apache.org/jira/browse/CB-5610
04:57:29 p.m. - rodms: ah, r+ is a bugzilla thing we carried over :) It means it passed the review
04:57:54 p.m. - marti1125: ohhhh, :)
05:00:35 p.m. - rodms: marti1125: https://issues.apache.org/jira/browse/CB-4556 looks like a good one
05:00:59 p.m. - rodms: from the comment it needs a clean.bat file to work on windows
05:02:54 p.m. - rodms: CB-5610 is more involved, we need to investigate if it's even possible to implement the APIs in firefoxOS
05:03:06 p.m. - rodms: and it may only be possible on more recent versions
05:03:11 p.m. - marti1125: ok what repo I fork?
drop table promedio_cantidad
create table promedio_cantidad
(
Customer varchar(100) null,
SalesPerson varchar(100) null,
ProductID int null,
ProductName varchar(100) null,
quantity float null,
amount float null