Skip to content

Instantly share code, notes, and snippets.

View pera's full-sized avatar
⚠️
moved to: https://gitlab.com/trobador

Brian Gomes Bascoy pera

⚠️
moved to: https://gitlab.com/trobador
View GitHub Profile

Keybase proof

I hereby claim:

  • I am pera on github.
  • I am pera (https://keybase.io/pera) on keybase.
  • I have a public key whose fingerprint is 52A8 A209 64D0 64EC 63DE CA0A 8E7D 1193 0973 EE82

To claim this, I am signing this object:

(define node cons)
(define node-left car)
(define node-right cdr)
(define (make d)
(if (= d 0)
(node #f #f)
(let ([d2 (1- d)])
(node (make d2) (make d2)))))
@pera
pera / libros.txt
Created February 9, 2018 00:16
wish list
Diogenes Laertius: Lives of Eminent Philosophers (Loeb Classical Library No. 184 & 185)
Dionysius of Halicarnassus: Roman Antiquities (Loeb Classical Library)
Julius Caesar: The Gallic War (Loeb Classical Library)
Lore and Science in Ancient Pythagoreanism - Walter Burkert
Philolaus of Croton: Pythagorean and Presocratic: A Commentary on the Fragments and Testimonia with Interpretive Essays - Philolaus
@pera
pera / tmux.conf
Last active April 25, 2018 23:29
set -g prefix C-a
unbind C-b
bind a send-prefix
set -g status-bg blue
set -g status-fg white
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
unbind '"'
@pera
pera / dreamy.theme
Created July 2, 2016 19:07
XFCE4 Terminal Theme
[Scheme]
Name=Dreamy
ColorForeground=#f5f2df
ColorBackground=#0b0d22
ColorPalette=#0b0d22;#eb0c4f;#97bf5f;#cccc3d;#3a9495;#850cd5;#7accc5;#f5f2df;#252525;#ff4262;#b1e06f;#ebe200;#0adcdd;#d900ff;#66fff2;#ffffff
set show-all-if-ambiguous on
set completion-ignore-case on
# only for bash 4.3+
set colored-stats on
@pera
pera / gist:5b3c312aff9a25ccf7d9
Last active April 23, 2017 20:19
.bash_profile
PS1='\[\e[1m\]\u@\h:\w\$\[\e[0m\] '
[ -r ~/.profile ] && . ~/.profile
[ -r ~/.bashrc ] && . ~/.bashrc
@pera
pera / 1.pl
Last active December 28, 2015 19:18
DLX sudoku solver
#!/usr/bin/perl
use strict;
use warnings;
# constants for the exact cover matrix
my $width = 9*9*4;
my $height = 9*9*9;
# globals used in recursive functions
my @solution;
@pera
pera / .ghci
Last active November 3, 2017 13:01
GHCi dot file
-- You need to install IPPrint and HsColour with cabal to use this config.
-- If you find all the loading messages anoying you may want to set an alias:
-- alias ghci="ghci -v0"
-- Or if you are using stack ghci:
-- alias ghci="stack --silent ghci --ghci-options -v0"
:set -XNoMonomorphismRestriction
:set prompt "\ESC[34mλ\ESC[m "
-- remove the following comments if ghci >= v7.8.1 for multiline support:
@pera
pera / syslinux.cfg
Created January 7, 2014 01:13
black menu
UI vesamenu.c32
# Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu
MENU TITLE Arch Linux
MENU COLOR border 30;44 #40ffffff #a0000000 std
MENU COLOR title 1;36;44 #9033ccff #a0000000 std
MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all
MENU COLOR unsel 37;44 #50ffffff #a0000000 std
MENU COLOR help 37;40 #c0ffffff #a0000000 std