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
[
{
"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 / 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]
}, {
@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 / 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 / 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 / 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/[email protected]/js/gijgo.js" type="text/javascript"></script>
<link href="https://unpkg.com/[email protected]/css/gijgo.css" rel="stylesheet" type="text/css" />
</head>
@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';
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 / twig_compile.php
Created May 8, 2020 21:53
bladeone_vs_twig
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
@jorgecc
jorgecc / blade_compile.php
Created May 8, 2020 21:54
bladeone vs twig
<ul>
<?php $__currentLoopData = $categories; $this->addLoop($__currentLoopData);$this->getFirstLoop();
foreach($__currentLoopData as $category): $loop = $this->incrementLoopIndices(); ?>
<li><?php echo \htmlentities($category, ENT_QUOTES, 'UTF-8', false); ?></li>
<?php endforeach; $this->popLoop(); $loop = $this->getFirstLoop(); ?>
</ul>