Skip to content

Instantly share code, notes, and snippets.

Avatar

Carlos Martínez Gadea carlos-mg89

View GitHub Profile
View gist:4aaafa310c9e4b91f5fb890540f38cae
/**
* ValidateSpanishID. Returns the type of document and checks its validity.
*
* Usage:
* ValidateSpanishID( str );
*
* > ValidateSpanishID( '12345678Z' );
* // { type: 'dni', valid: true }
*
* > ValidateSpanishID( 'B83375575' );
View gist:a3ef1bd71f277edd5783271796c4b466
// Modified for a real Spanish keyboard by Jon Tombs.
default partial alphanumeric_keys
xkb_symbols "basic" {
include "latin(type4)"
name[Group1]="Spanish";
key <AE01> { [ 1, exclam, bar, exclamdown ] };
View gist:727244c4e73caab718f8c73d8ea3a745
cat /usr/share/X11/xkb/symbols/es
// Modified for a real Spanish keyboard by Jon Tombs.
default partial alphanumeric_keys
xkb_symbols "basic" {
include "latin(type4)"
name[Group1]="Spanish";
View gist:14f35b17ebe5ad6f9c7aa26b83446d27
setxkbmap -v 10
Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules: evdev
model: pc105
layout: es,us
View Xarly89 Laptop machine info
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
CPU Family: 0x6
@carlos-mg89
carlos-mg89 / route.geojson
Created Feb 13, 2019
Generated GeoJson route with OSRM match API
View route.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Macbook system info
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
CPU Family: 0x6