Skip to content

Instantly share code, notes, and snippets.

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

Jorge Castro jorgecc

🏠
Working from home
View GitHub Profile
First Time Time First Time Memory Overhead First Time Second Time Second Time Memory
BladeOne 1962ms 2024kb 263 1917ms 2024kb
Twig 3734ms 2564kb 123 3604ms 2327kb
@jorgecc
jorgecc / server.php
Created May 3, 2020 23:45
example-php-editablegrid web server
<?php /** @noinspection ForgottenDebugOutputInspection */
use eftec\PdoOne;
header('Content-Type: application/json');
include '../vendor/autoload.php';
include '../repo/CountryRepo.php';
include '../repo/PlayersRepo.php';
@jorgecc
jorgecc / table.blade.php
Created May 3, 2020 23:39
example_php_editablegrid
<!DOCTYPE html>
<html>
<head>
<title>jQuery Grid Inline Editing</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://unpkg.com/gijgo@1.9.13/js/gijgo.js" type="text/javascript"></script>
<link href="https://unpkg.com/gijgo@1.9.13/css/gijgo.css" rel="stylesheet" type="text/css" />
</head>
@jorgecc
jorgecc / weather2.sql
Created October 20, 2019 15:10
weather2.sql
/*
SQLyog Ultimate v13.1.1 (64 bit)
MySQL - 8.0.17 : Database - weather
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
@jorgecc
jorgecc / weather.sql
Created October 20, 2019 15:07
weather.sql for Space Apps 2019
/*
SQLyog Ultimate v13.1.1 (64 bit)
MySQL - 8.0.17 : Database - weather
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
@jorgecc
jorgecc / ws.json
Last active October 9, 2019 12:36
ws.json
[{
"name": "Installation",
"data": [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
}, {
"name": "Manufacturing",
"data": [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434]
}, {
"name": "Sales & Distribution",
"data": [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387]
}, {
@jorgecc
jorgecc / ejemplo.json
Last active October 7, 2019 12:17
json ejemplo
[{
"name": "Jane",
"data": [1, 0, 4]
}, {
"name": "John",
"data": [5, 7, 3]
}, {
"name": "Peter",
"data": [5, 7, 3]
}, {
[
{
"userId": 1,
"id": 1,
"title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit",
"body": "quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto"
},
{
"userId": 1,
"id": 2,
@jorgecc
jorgecc / table1.csv
Created July 20, 2019 14:43
table1.csv
Hash #1 (ms) #2 (ms) #3 (ms) #4 (ms) #5 (ms) Average per 1M (ms)
MD5 649 623 621 624 620 627.4
SHA-1 608 588 630 600 594 604
SHA-256 746 724 741 720 758 737.8
SHA-512 1073 1055 1050 1052 1052 1056.4
@jorgecc
jorgecc / Customer.java
Created June 3, 2019 00:46
Customer.java
public class Customer {
private String age;
private String name;
private String prefix;
// setter and getters goes here...
public void showMe() { // some logic
System.out.println("My name is "+name);
}
}