Skip to content

Instantly share code, notes, and snippets.

Máximo Cuadros mcuadros

Block or report user

Report or block mcuadros

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View oct.md

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
View explode.md

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<revision>, [file_path]] -> []struct{file_path, line, author_name, when, content}
View barcelona.csv
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
View gist:e562ca53342e611e4a376a9153385a5f
### 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:
View i3status.conf
# 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
View tmux.conf
# 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
View rest.md

REST-HAL endpoints

Summary

Motivation

The requirement of expose the domain via HTTP to other applications.

Services

@mcuadros
mcuadros / gist:879cf48540ecd5dec6e6
Last active Jul 12, 2018
PHP vs PHP-CPP vs HHVM-HNI
View gist:879cf48540ecd5dec6e6

#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' => 2.2,
@mcuadros
mcuadros / gist:59209e4f47395828c297
Last active Aug 29, 2015
The Hitchhiker's Guide to the HHVM - Links
View gist:59209e4f47395828c297
View gist:11189569
<?hh
type Example = (function(): string);
function main() {
$callback = function() {
return 'foo';
};
You can’t perform that action at this time.