Skip to content

Instantly share code, notes, and snippets.

View mcuadros's full-sized avatar

Máximo Cuadros mcuadros

View GitHub Profile
Names: Antonio Santiago, acanimal
Emails: antonio@cartodb.com, asantiago@acuriousanimal.com, asantiagop@gmail.com
Metrics
Repositories: 44
Public commits: 848
Total lines: 830416 added / 747410 deleted
Number of lines of code: 380994 added / 4523 deleted
Ratio of lines of tests vs code: 0.01 added / 0.16 deleted
Ratio of lines of comments vs code: 0.29 added / 0.01 deleted
Countries: italy (11.5076), spain (17.7335)

Miercoles, 2 Octobre - Salida

  • 18:00 domir en Tudelo (o cerca) cenar traquilamente

Jueves, 3 Octubre - Pamplona

  • Wayout Pamplona - El Interrogatorio 17:30
  • Wayout Pamplona - El Portal de Testla 18:45
  • Wayout Pamplona - Hotel Hello, 20:00

EXPLODE solutions applied to diff, blame problems

This solutions is based on the behaviour of EXPLODE in SparkSQL and the premise that the UDFs can return complex types like lists, structs and maps (this types are represented on wire as JSON type)

Functions

  • DIFF_TREE(repository_id, from<revision>, [to<revision>] -> something similar to []git.Change
  • DIFF(repository_id, from<revision>, [to<revision>] -> []struct{file_path, marker, line, content}
  • COMMIT_FILES_STATS(repository_id, from<revision>, [to<revision>] -> []struct{file_path, additions, deletions}
  • BLAME(repository_id, from, [file_path]] -> []struct{file_path, line, author_name, when, content}
Date Room Location Name Hours Booked?
26/05/2019 Abduction Barcelona, Spain The Exam 10:15 Booked
26/05/2019 Fear Escape Room Barcelona, Spain Fear Escape Room 14:30 16:45
26/05/2019 Bizzare BCN Barcelona, Spain Toys 16:15 Booked
26/05/2019 Bizzare BCN Barcelona, Spain Circus 17:30 Booked
@mcuadros
mcuadros / gist:879cf48540ecd5dec6e6
Last active July 12, 2018 06:53
PHP vs PHP-CPP vs HHVM-HNI

#PHP vs PHP-CPP vs HHVM-HNI This is a small benchmark with the objective of compare the performance of PHP-CPP vs HNI.

Code

$a = [
    'key' => 'foo',
    'foo' => null,
    'a' => 2,
 'b' =&gt; 2.2,
### Keybase proof
I hereby claim:
* I am mcuadros on github.
* I am mcuadros (https://keybase.io/mcuadros) on keybase.
* I have a public key whose fingerprint is 8648 3012 6C98 2B17 F7E7 0B13 448D 89BB CEAA 39F1
To claim this, I am signing this object:
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
# Default shell
set-option -g default-shell /usr/local/bin/fish
# Automatically set window title
#setw -g automatic-rename
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# split panel
@mcuadros
mcuadros / gist:7476496
Last active December 28, 2015 09:09
Siren Level3 Example
{
"class": [
"discovery",
"product"
],
"title": "A. SAUVAGE royal panama cut away collar shirt grey",
"properties": {
"id": "527a355f1a9075a5778b4585",
"status": "published",
"visible": true,
@mcuadros
mcuadros / gist:7234395
Created October 30, 2013 15:18
HHVM 2.2.0 + OSX 10.9 "ld: symbol(s) not found for architecture x86_64" issue
mcuadros@mcuadros-air /t/h/hhvm-HHVM-2.2> make test
[ 0%] [ 0%] Built target sqlite3
Generating systemlib.php
[ 1%] Built target double-conversion
[ 9%] Built target mbfl
[ 9%] Built target afdt
[ 10%] Built target timelib
[ 10%] Built target lz4
[ 10%] Built target hphp_parser
[ 11%] Built target neo