Skip to content

Instantly share code, notes, and snippets.

@arrowtype
arrowtype / count-word-frequency.py
Last active March 1, 2023 23:42
A simple Python script to count and rank the frequency of words in a text file, e.g. for verifying that you are kerning important pairs for specific content
"""
Simple Python script to count word frequency in a given text document.
Started from
https://www.geeksforgeeks.org/python-count-occurrences-of-each-word-in-given-text-file/
Usage: Update the file path below, then run in the command line.
"""
# Relative path to a .txt file
@gamesbyangelina
gamesbyangelina / yahoo-answers-mbmbam
Created October 8, 2019 13:31
MBMBAM Yahoo Answers (Ep 1 - 472, filtered)
I went on a first date with this guy; I didn’t know what to say to him?
What is the first song that comes to mind when I say the word “party”?
Can birds get allergies?
Why did my gf who said she loved me cheat on me rite in fornt of me and not care?
How long does it take to get THC out of your system if you only smoke on the weekends?
My girlfriend threw my dog off my balcony when I broke up with her Im not sure what to do?
Can toenails be swallowed?
Is it okay to bring jelly beans on a plane?
is masturbation create problem?
I’m in LOVE with Krista from Fern Gully. Are there any websites devoted to her?
@tiffany352
tiffany352 / index.html
Last active May 1, 2024 11:36
Twitter archive browser
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Twitter Archive Browser</title>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
<style>
@brayhoward
brayhoward / convert_aax_files.md
Last active May 8, 2021 21:20
Directions for converting Audible audiobook files, .aax, to .m4a files
@moyogo
moyogo / CustomParameters.md
Created October 25, 2017 13:16
Glyphs.app 1077 Custom Parameters
Custom Parameter Objects Type
ascender master unicode
Autohint instance int
Axes font list
Axis Location master list
blueScale font float
blueShift font int
capHeight master unicode
CJK Grid master int
@itod
itod / split_keyboards.md
Last active May 6, 2024 10:50
Every "split" mechanical keyboard currently being sold that I know of
@casasin
casasin / compareGlyphOrders.py
Created June 25, 2015 11:40
Compare all open fonts glyphOrder to the current font's.
# compareGlyphOrders.py
"""
Compare all open fonts glyphOrder to the current font's.
"""
current = CurrentFont()
fonts = AllFonts()[1:]
@ninastoessinger
ninastoessinger / compare2charsets.py
Created June 23, 2015 21:08
RoboFont script to compare character sets of one UFO to another “master” UFO
from robofab.interface.all.dialogs import SelectFont
markCounterpartsOfMissing = (1, 0, 0, 1)
# mark color for glyphs missing in the other font
# set to None for none, otherwise (r, g, b, a) tuple
f1 = SelectFont("Select 'Master' font:")
f2 = SelectFont("Select font to compare:")
if f1 is not None and f2 is not None:
@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:

@gferreira
gferreira / compare-glyphsets.py
Last active March 16, 2018 13:33
Compare glyphsets of two .ufo fonts (in RoboFont)
# compare glyphsets of two ufos
f1_path = u"/path/to/font1.ufo"
f2_path = u"/path/to/font2.ufo"
f1 = OpenFont(f1_path, showUI=False)
f2 = OpenFont(f2_path, showUI=False)
f1_glyphset = set(f1.keys())
f2_glyphset = set(f2.keys())