Skip to content

Instantly share code, notes, and snippets.

View qwfy's full-sized avatar

Incomplete qwfy

View GitHub Profile
@nrk
nrk / command.txt
Created April 2, 2012 19:19
Using ffprobe to get info from a file in a nice JSON format
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json"
@kfish
kfish / FieldNames.hs
Created November 15, 2012 02:49
Data constructor field names as [String] using Template Haskell
{-# LANGUAGE TemplateHaskell #-}
module FieldNames (
fieldNames
) where
import Data.List (nub)
import Language.Haskell.TH
-- | Generate a list of all field names used in the constructors
@aparrish
aparrish / understanding-word-vectors.ipynb
Last active July 1, 2024 08:20
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.