Skip to content

Instantly share code, notes, and snippets.

Avatar

Fábio Fortkamp fabiofortkamp

View GitHub Profile
@fabiofortkamp
fabiofortkamp / configure_matplotlib.py
Created Jul 12, 2017
Common matplotlib configuration, with LaTeX and my own packages, for easier generation of engineering plots
View configure_matplotlib.py
import matplotlib
import matplotlib.pyplot as plt
mpl_params = {'text.usetex': True,
'font.family': 'serif',
'font.serif': 'Palatino',
'text.latex.preamble': [r'\usepackage{engsymbols}',
r'\usepackage{magref}',
r'\usepackage{siunitx}']}
matplotlib.rcParams.update(mpl_params)
@fabiofortkamp
fabiofortkamp / 0_reuse_code.js
Created Jul 11, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@fabiofortkamp
fabiofortkamp / gist:f2738a083ff235c3a57e
Created Jul 23, 2014
TextWrangler Script to create a Markdown link from Safari tabs
View gist:f2738a083ff235c3a57e
tell application "System Events"
set numSafari to count (every process whose name is "Safari")
end tell
if numSafari > 0 then
tell application "Safari"
set URLList to {}
@fabiofortkamp
fabiofortkamp / gist:d6b937bdcac186a216e4
Created Jul 16, 2014
AppleScript to show a list of Safari tab URLS, to be used with TextExpander, but it crashes
View gist:d6b937bdcac186a216e4
tell application "System Events"
set numSafari to count (every process whose name is "Safari")
end tell
if numSafari > 0 then
tell application "Safari"
set URLList to {}