Skip to content

Instantly share code, notes, and snippets.

View stoggi's full-sized avatar

Jeremy Stott stoggi

View GitHub Profile
@stoggi
stoggi / keybase.md
Created December 6, 2017 19:15
Keybase Github Claim

Keybase proof

I hereby claim:

  • I am stoggi on github.
  • I am stoggi (https://keybase.io/stoggi) on keybase.
  • I have a public key ASAo9vF7HSRVpXtS4d4CFD7rWyXvRh5_wFq78ChTS-SgDQo

To claim this, I am signing this object:

@stoggi
stoggi / gif.sh
Last active February 20, 2019 23:06
Create a gif from a video using ffmpeg
#!/bin/sh
# Usage:
# gif.sh input output width fps
# Example:
# 12 frame per second
# 640 width (aspect ratio is preserved. Use -1 for no change)
# gif.sh input.mp4 output.gif 640 12
@stoggi
stoggi / Makefile
Created January 31, 2017 01:44
Helpful Makefile
## Your Project
## This project is amazing, and you should use it.
##
## Usage:
## make help Prints this help message
help:
@grep -E "^##" Makefile | sed -e "s/##//"
@stoggi
stoggi / startstop.py
Last active May 3, 2017 22:23
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
stoggi / character_frequency.py
Created November 17, 2015 02:13
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!!")