Skip to content

Instantly share code, notes, and snippets.


Jeremy Stott stoggi

View GitHub Profile
stoggi /
Created Dec 6, 2017
Keybase Github Claim

Keybase proof

I hereby claim:

  • I am stoggi on github.
  • I am stoggi ( on keybase.
  • I have a public key ASAo9vF7HSRVpXtS4d4CFD7rWyXvRh5_wFq78ChTS-SgDQo

To claim this, I am signing this object:

stoggi /
Last active Feb 20, 2019
Create a gif from a video using ffmpeg
# Usage:
# input output width fps
# Example:
# 12 frame per second
# 640 width (aspect ratio is preserved. Use -1 for no change)
# input.mp4 output.gif 640 12
stoggi / Makefile
Created Jan 31, 2017
Helpful Makefile
View Makefile
## Your Project
## This project is amazing, and you should use it.
## Usage:
## make help Prints this help message
@grep -E "^##" Makefile | sed -e "s/##//"
stoggi /
Last active May 3, 2017
Generate start/finish times from PC startup/shutdown logs in the Windows event viewer using Pandas
import pandas
import datetime
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
# Input data format:
# type date source id none
# Information 18/08/2016 8:30:31 a.m. Kernel-General 12 None
stoggi /
Created Nov 17, 2015
Calculates the number of repeated characters in a given text
from collections import defaultdict
def character_frequency(text):
frequency = defaultdict(int)
for character in text:
frequency[character] += 1
return frequency
character_frequency("Hello World!!")