Last Update: 12.12.2014
Offline Version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Graphs | |
# This implementation takes too long to create the graphs, so I'm almost sure it's not the best way (certainly is not the only way) | |
function nsquaregraph(n::Int) | |
# Creating Vertices Array | |
newvertices = Array(ExVertex, 0) | |
for i in 1:n^2 | |
vertice = ExVertex(i,"eletron") | |
vertice.attributes["spin"] = randspin() # randspin() generates randomically -1 or +1 | |
newvertices = [newvertices, vertice] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Julia Version 0.4.0-dev+5181 | |
# Commit 98c144b (2015-06-03 14:28 UTC) | |
# | |
# - PyPlot 1.5.3+ master | |
# - PyCall 0.8.1+ master | |
using Calculus, PyPlot, Roots | |
# function being approximated | |
# still needing to find a way to remove this redundancy.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
link=$1 | |
if [[ ! -n $1 ]] | |
then | |
link=http://w2.vatican.va/content/francesco/pt/apost_letters/documents/papa-francesco_bolla_20150411_misericordiae-vultus.html | |
fi | |
curl $link > .tp1 |
Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.
cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/