Skip to content

Instantly share code, notes, and snippets.

View pcoutin's full-sized avatar

Pedro L C pcoutin

View GitHub Profile

Keybase proof

I hereby claim:

  • I am pcoutin on github.
  • I am pcoutin (https://keybase.io/pcoutin) on keybase.
  • I have a public key ASCmgNrnwCUC2b115BLWWwmTsVL8YY-WdwneLKXGCbdR-Qo

To claim this, I am signing this object:

@pcoutin
pcoutin / README.md
Created February 5, 2019 23:38
SCRIPT-8
@pcoutin
pcoutin / README.md
Last active February 5, 2019 23:23 — forked from SlashScreen/README.md
SCRIPT-8
@pcoutin
pcoutin / README.md
Last active February 4, 2019 08:38
SCRIPT-8
@pcoutin
pcoutin / README.md
Created January 27, 2019 03:18
SCRIPT-8
use std::io::{self, Read};
use std::collections::HashMap;
fn find_set(x: usize, parents: &mut Vec<usize>) -> usize {
if x != parents[x] {
parents[x] = find_set(parents[x], parents);
}
parents[x]
}

 

Two Late Han to Jin Bows from Gansu and Khotan
Stephen Selby. © Stephen Selby, 2002
(originally published as ATARN Newsletters in April and September 2002)

A desert tomb in Jiayuguan, Gansu, Western China, has recently yielded

title authors copyright
Two Late Han to Jin Bows from Gansu and Khotan
Stephen Selby
Stephen Selby, 2002

{width="160" height="113"}

(originally published as ATARN Newsletters in April and September 2002)

@pcoutin
pcoutin / tmux_local_install.sh
Last active June 14, 2017 11:42 — forked from ryin/tmux_local_install.sh
bash script for installing tmux without root access
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=2.5
@pcoutin
pcoutin / xmlify.rkt
Last active November 15, 2015 09:35 — forked from themattchan/xmlify.rkt
;; converted from racket to r5rs by pcoutin
;; originally by themattchan
;; Requires Oleg's match-case-simple
;; TODO: Probably craps out with numbers or symbols as values rather than keys.
;; Because string-append isn't (~a ...) nor (format "~a" ...)
;;
;; Simplified SXML grammar
;; <Element> ::= (<Symbol> <Children>...)
;; | (<Symbol> <AttribList> <Children>...)
;; <Children> ::= <Element> | <Value>