Skip to content

Instantly share code, notes, and snippets.

View eddiesmo's full-sized avatar

Eddie Smolyansky eddiesmo

View GitHub Profile
@eddiesmo
eddiesmo / marvin-toggl-tracking-windows.sh
Last active August 18, 2022 17:11 — forked from amazingmarvin/marvin-toggl-tracking.sh
A shell script to start tracking an Amazing Marvin task in Toggl Track.
#!/bin/bash
# -------------------------------------------------
# Before running the script, make sure that you understand it. Running code you find on the Internet may damage your system.
# -------------------------------------------------
# In Amazing marvin, set the path to this script as "Start time tracking task" in the "System Triggers strategy" like this:
# bash /Path/to/this/script $TASK_TITLE
# Example: bash /mnt/d/Work/Repositories/AmazingMarvin/marvin-toggl-tracking-windows.sh $TASK_TITLE
# Replace "YourSecretToken" with your Toggl API token below.
# -------------------------------------------------
@eddiesmo
eddiesmo / matplotlib imports
Created March 2, 2017 11:19
Jupyter notebook
# imports for jupyter notebook
import matplotlib.pyplot as plt
%matplotlib inline # display plots in this notebook
# set display defaults
plt.rcParams['figure.figsize'] = (10, 10) # large images
plt.rcParams[
'image.interpolation'] = 'nearest' # don't interpolate: show square pixels
plt.rcParams[
'image.cmap'] = 'gray' # use grayscale output rather than a (potentially misleading) color heatmap
@eddiesmo
eddiesmo / Switching backend
Created January 14, 2017 16:20
Matplotlib hacks
import matplotlib
matplotlib.use('TkAgg') # generate postscript output by default
import matplotlib.pyplot as plt
@eddiesmo
eddiesmo / 0_reuse_code.js
Created March 13, 2016 11:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console