Skip to content

Instantly share code, notes, and snippets.

View joelotz's full-sized avatar

Joe Lotz joelotz

View GitHub Profile
@joelotz
joelotz / heatmap.py
Created April 20, 2013 19:26
A python implementation of Heatmap
{
"metadata": {
"name": "Heatmap Example"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@joelotz
joelotz / test.ipynb
Created April 20, 2013 19:50
testing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joelotz
joelotz / test.ipynb
Created April 20, 2013 19:51
testing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joelotz
joelotz / gist:5427166
Created April 20, 2013 19:53
testing
{
"metadata": {
"name": "Heatmap Example"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joelotz
joelotz / morale
Last active December 17, 2015 12:59
This is the morale@work function
{
"metadata": {
"name": "Work Morale"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
%matplotlib inline
import matplotlib.pyplot as plt
import matplotlib.ticker as mticker
import pandas as pd
data = pd.DataFrame.from_csv('askmefi_category_year.tsv', sep='\t')
categories = data.category.unique()
mydata = {}
for i in categories:
@joelotz
joelotz / SWS
Created October 21, 2014 18:30
{
"metadata": {
"name": "",
"signature": "sha256:f8edf9c1663e0e67e6fbbbfbfc78f83f1f702f53194b9792e22bda26e5b094e5"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joelotz
joelotz / logweight
Last active June 11, 2020 16:06
A stupid shell script that inputs my weight a writes to a log file.
#!/bin/sh
# A shell script to log personal body weights into /mnt/DataDrive/Documents/WeightLog.txt file
# Written by: Joe Lotz
# Last updated: 2020/June/11
#
# logweight --help
# --------------------------------------------------------------
# Set vars