This file contains hidden or 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
{ | |
"name": "Clima", | |
"version": "2.0", | |
"description": "Informa los datos meteorologicos", | |
"launch_path": "/index.html", | |
"permissions": { | |
"storage": { | |
"description": "Es necesario para guardar opciones del usuario asi como datos del clima" | |
}, | |
"desktop-notification": { |
This file contains hidden or 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
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06) | |
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06) | |
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06) | |
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06) | |
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05) | |
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04) | |
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-V (rev 05) | |
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05) | |
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05) | |
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family US |
This file contains hidden or 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
exports.drawChart = function(data) { | |
var document = jsdom.jsdom(); | |
var margin = { | |
top : 40, | |
right : 40, | |
bottom : 40, | |
left : 40 | |
}; | |
var width = 500 - margin.left - margin.right; |
This file contains hidden or 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
public BufferedImage createImageFromSVG(String svg) { | |
Reader reader = new BufferedReader(new StringReader(svg)); | |
TranscoderInput svgImage = new TranscoderInput(reader); | |
BufferedImageTranscoder transcoder = new BufferedImageTranscoder(); | |
transcoder.addTranscodingHint(PNGTranscoder.KEY_WIDTH, (float) component.getWidth()); | |
transcoder.addTranscodingHint(PNGTranscoder.KEY_HEIGHT, (float) component.getHeight()); | |
try { | |
transcoder.transcode(svgImage, null); | |
} catch (TranscoderException e) { |
This file contains hidden or 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
SELECT table_name AS "Tables", | |
round(((data_length + index_length) / 1024 / 1024), 2) "Size in MB" | |
FROM information_schema.TABLES | |
WHERE table_schema = "$DB_NAME" | |
ORDER BY (data_length + index_length) DESC; |
This file contains hidden or 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
public void getFile(Url){ | |
try { | |
Client client = ClientBuilder.newClient(); | |
WebTarget target = client.target(url); | |
Response response = target.request(MediaType.WILDCARD).post(Entity.entity("data=123", MediaType.APPLICATION_FORM_URLENCODED_TYPE)); | |
InputStream input = response.readEntity(InputStream.class); | |
byte[] byteArray = IOUtils.toByteArray(input); | |
FileOutputStream fos = new FileOutputStream(new File("/tmp/1.pdf")); | |
fos.write(byteArray); | |
fos.flush(); |
This file contains hidden or 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
{ | |
"name": "app", | |
"version": "0.1.0", | |
"devDependencies": { | |
"apidoc": "^0.12.3", | |
"del": "^1.1.1", | |
"errorhandler": "^1.3.3", | |
"gulp": "^3.8.10", | |
"gulp-angular-filesort": "^1.1.1", | |
"gulp-angular-templatecache": "^1.5.0", |
This file contains hidden or 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
'use strict'; | |
var express = require('express'); | |
var router = express.Router(); | |
router.post('/test', function (req, res) { | |
console.log(req.body); | |
res.send(req.body); | |
}); |
This file contains hidden or 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
public class Application { | |
long start; | |
long end; | |
final long numberIterations = 100000000; | |
public static void main(String[] args){ | |
Application app = new Application(); | |
System.out.println(app.testStringBuffer()); | |
System.out.println(app.testStringBuilder()); |
This file contains hidden or 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
/** | |
* Divide una cadena de texto cada N | |
* caracteres | |
* Ejemplo: | |
* texto 'cadena', numeroCaracteres '2' | |
* resultado ['ca','de','na'] | |
* @param texto texto a dividir | |
* @param numeroCaracteres numero de caracteres para su division | |
* @author Jesus Perales. | |
*/ |
OlderNewer