Skip to content

Instantly share code, notes, and snippets.

Thinking slowly

Riccardo Scalco riccardoscalco

Thinking slowly
View GitHub Profile
riccardoscalco / image.svg
Created May 8, 2020
Example of custom textures
View image.svg
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 Dec 6, 2017
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 Aug 29, 2015
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 Jul 15, 2015
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
View index.html
<div id="box">
<script src="" charset="utf-8"></script>
<script src=""></script>
View Edges of a network.markdown
View Outset of a d3 chart.markdown