Skip to content

Instantly share code, notes, and snippets.

View aabril's full-sized avatar

Albert Abril aabril

View GitHub Profile
@aabril
aabril / gist:04a5c63c8b89983e724445ce70943be4
Last active March 24, 2020 08:16
dailt planner template
23mar2020
morning
08:00 - 08:30 •
08:30 - 09:00 •
09:00 - 09:30 •
09:30 - 10:00 •
10:00 - 10:30 •
10:30 - 11:00 •
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "Left", function()
local win = hs.window.focusedWindow()
local f = win:frame()
local screen = win:screen()
local max = screen:frame()
f.x = max.x
f.y = max.y
f.w = max.w / 2
f.h = max.h
@aabril
aabril / evm_opening.md
Created September 22, 2017 19:56 — forked from izqui/evm_opening.md
Senior Solidity/EVM/Ethereum opening at Aragon

Senior Solidity/EVM/Ethereum opening at Aragon

We are looking for an Ethereum wizard to work with us on Aragon Core and the future Aragon Network.

Conditions:

  • Fulltime commitment. Side projects and open source are accepted (and encouraged).
  • Completely remote position, no relocation required.
  • Very competitive and negotiable compensation.
  • You decide how to allocate your salary in USD, ETH or ANT. Rates will be revisited every 6 months.
<template>
<div class="MenuNav">
<div class="item home">
<svg xmlns="http://www.w3.org/2000/svg" width="23" height="22" viewBox="0 0 23 22">
<path fill="#DEE7EA" fill-rule="evenodd" d="M0 13.2L11.398 1.467 23 13.2h-2.875V22h-5.75v-7.333h-5.75V22h-5.75v-8.8H0zM15.812 0h5.752v7.333l-5.752-4.398V0z"/>
</svg>
</div>
<div class="item stays">
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="22" viewBox="0 0 15 22">
<defs>
var flatten = function(data) {
var result = {};
function recurse (cur, prop) {
if (Object(cur) !== cur) {
result[prop] = cur;
} else if (Array.isArray(cur)) {
for(var i=0, l=cur.length; i<l; i++)
recurse(cur[i], prop ? prop+"."+i : ""+i);
if (l == 0)
result[prop] = [];
$.map([1, 2, [3, 4], [5, [6, [7, 8]]]], function recurs(n) {
return ($.isArray(n) ? $.map(n, recurs): n);
});
@aabril
aabril / Conecta4.cpp
Created February 26, 2017 16:21
First C++ code I wrote back in 2002
#include <iostream.h>
#include <stdlib.h>
const int MAXi=8;
const int MAXj=8;
typedef int tablero[MAXi][MAXj];
void InicialitzaTablero(tablero & tab);
void TirarFitxa( int col, int jug, tablero & tab );
void DibuixaTablero( tablero tab ); //Jugador A = 0; Jugador B = 1;
@aabril
aabril / booking-pickup.js
Last active June 9, 2016 19:00
angular-component approach
"use strict";
angular.module('MerchantApp').component('bookingPickup', {
bindings: {
booking: '=',
display: '=',
actions: '='
},
@aabril
aabril / art_impacte_social.txt
Created August 11, 2015 20:18
Art , Murals i Impacte social
# Art , Murals i Impacte Social
================================
de com la bellesa pot tindre impacte social (per xicotet que siga)
22:09h ; #art #social #impact #bellesa #beauty
-> https://www.facebook.com/PlayGroundVideo/videos/1012718238740479/
-> relacionat: TED TALK #ted https://www.ted.com/talks/haas_hahn_how_painting_can_transform_communities/transcript?language=en
@aabril
aabril / list_google_fonts.txt
Created July 22, 2015 11:41
Google Fonts List ( 22th july 2015 )
Open Sans
Roboto
Lato
Slabo 27px
Oswald
Roboto Condensed
Source Sans Pro
PT Sans
Open Sans Condensed
Montserrat