Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeremy Stott stoggi

View GitHub Profile
@stoggi
stoggi / keybase.md
Created Dec 6, 2017
Keybase Github Claim
View keybase.md

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 Feb 20, 2019
Create a gif from a video using ffmpeg
View gif.sh
#!/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 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
help:
@grep -E "^##" Makefile | sed -e "s/##//"
@stoggi
stoggi / startstop.py
Last active May 3, 2017
Generate start/finish times from PC startup/shutdown logs in the Windows event viewer using Pandas
View startstop.py
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 Nov 17, 2015
Calculates the number of repeated characters in a given text
View character_frequency.py
from collections import defaultdict
def character_frequency(text):
frequency = defaultdict(int)
for character in text:
frequency[character] += 1
return frequency
character_frequency("Hello World!!")