Skip to content

Instantly share code, notes, and snippets.

View patrick-brian-mooney's full-sized avatar

Patrick Mooney patrick-brian-mooney

View GitHub Profile
@novel-yet-trivial
novel-yet-trivial / VerticalScrolledFrame.py
Last active April 15, 2024 18:15
A vertical scrolled frame for python tkinter that behaves like a normal Frame. Tested with python 2 and 3, windows and linux.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
try:
import tkinter as tk
except ImportError:
import Tkinter as tk
class VerticalScrolledFrame:
"""
@a-r-d
a-r-d / convert-and-split.sh
Last active August 2, 2023 20:46
How to take an annoying APE + CUE file cd rip and convert it into a set of FLAC or MP3 files on ubuntu.
#first install all the things:
sudo apt-get install flac ffmpeg mp3splt libav-tools shntool
# Okay first lets do an MP3:
# input files:
# --> cd.ape
# --> cp.cue
# (there are other options, like bitrate, but this is just the bare bones)
avconv -i cd.ape cd.mp3
@protrolium
protrolium / ffmpeg.md
Last active May 3, 2024 18:58
ffmpeg guide

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

You can get the list of installed codecs with:

@aparrish
aparrish / inform7_assertions.txt
Created July 9, 2014 20:07
"Inform 7 Assertions," a series of prose poems generated from "Writing with Inform" (http://inform7.com/learn/man/WritingWithInform.txt). I found every indented code snippet in the book that contained the phrase "is a(n)" and sorted them in alphabetical order.
A Bee Chamber is a kind of room. The printed name of a Bee
Chamber is usually "Hexagonal Room". The description of a
Bee Chamber is usually "Waxy, translucent walls surround
you on six sides; the floor and ceiling are made of the
same material, gently uneven. There are exits in every
direction, cut into the faces or the corners."
A Bengal tiger is a kind of animal.
A DVD is a kind of artwork.
@frenchtoast747
frenchtoast747 / decorator.py
Last active July 4, 2019 17:13
A Python decorator that preserves everything about the original function being decorated.
import types
class decorator(object):
"""
When using a decorator, the function that is being decorated
loses its __name__, docstring, and signature.
For example, consider the generic decorator ``my_decorator``:
def my_decorator(fn):
@yanofsky
yanofsky / LICENSE
Last active May 7, 2024 12:36
A script to download all of a user's tweets into a csv
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit