Skip to content

Instantly share code, notes, and snippets.

View riccardoscalco's full-sized avatar
Thinking slowly

Riccardo Scalco riccardoscalco

Thinking slowly
View GitHub Profile
riccardoscalco / image.svg
Created May 8, 2020 07:50
Example of custom textures
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Install ghostscript.
# Assume A and B have the same amount of files.
# Assume file in A are named `testo_1`, and files in B are named `disegno_1`.
END=`ls A/*.pdf | wc -l`
echo "merging..."
riccardoscalco /
Created December 6, 2017 14:32
how to use ttf fonts in xterm

Add fonts to directory ~/.fonts.

See available fonts:

$ fc-list | col | sort | less

For example, among all I have:

riccardoscalco /
Last active May 26, 2016 10:21
JSPM tutorial
riccardoscalco /
Last active August 29, 2015 08:30
Updates archlinux, ruby, python and npm packages

update archlinux packages

sudo pacman -Syu
sudo yaourt -Syua

update npm packages

npm outdated
sudo npm update
riccardoscalco /
Created July 15, 2015 06:44
Git: revert to an older commit. Get your index and work tree into the desired state, without changing HEAD.
$ git checkout 0d1d7fc32 .
$ git commit -m "revert to older commit"
$ git push origin master
riccardoscalco / index.html
Created June 19, 2015 08:57
power distribution
<div id="box">
<script src="" charset="utf-8"></script>
<script src=""></script>
riccardoscalco / Edges of a network.markdown
Last active August 29, 2015 14:22
Edges of a network
riccardoscalco / Outset of a d3 chart.markdown
Last active August 29, 2015 14:22
Outset of a d3 chart