Skip to content

Instantly share code, notes, and snippets.

View finoradin's full-sized avatar

Cass Fino-Radin (they/them) finoradin

View GitHub Profile
# ----------------------------------------------------------------------------------------------------------------
# Processing for object representations
# ----------------------------------------------------------------------------------------------------------------
#
# If you want original media fetched from URLs to *NOT* be stored in CA, but rather
# for CA to directly reference the media via the URL used to fetch it set use_external_url_when_available to 1
#
# If you have no idea what this means then leave this set to zero
#
@finoradin
finoradin / gist:a597a15115de93fd8230
Created December 12, 2014 09:00
media_processing.conf
# ----------------------------------------------------------------------------------------------------------------
# Processing for object representations
# ----------------------------------------------------------------------------------------------------------------
#
# If you want original media fetched from URLs to *NOT* be stored in CA, but rather
# for CA to directly reference the media via the URL used to fetch it set use_external_url_when_available to 1
#
# If you have no idea what this means then leave this set to zero
#
00000000 -------------------------
00000000 --- DPX, accepted ---
00000000 -------------------------
00000000 Generic section header (1664 bytes)
00000000 File information (768 bytes)
00000000 Magic number: SDPX
00000004 Offset to image data: 8192 (0x00002000)
00000008 Version number of header format: V1.0
00000010 Total image file size: 12754944 (0x00C2A000)
00000014 Ditto Key: 1 (0x00000001)
General
Complete name : /Volumes/JODI_00Archi/mydesktop---JODI.00013/4_artwork/OSX1047b.mov
Format : MPEG-4
Format profile : QuickTime
Codec ID : qt
File size : 847 MiB
Duration : 10mn 59s
Overall bit rate : 10.8 Mbps
Encoded date : UTC 2009-05-11 18:26:56
Tagged date : UTC 2009-05-11 18:28:07
General
Complete name : /Volumes/JODI_00Archi/mydesktop---JODI.00013/4_artwork/OSX1047b.mov_small.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 251 MiB
Duration : 12mn 44s
Overall bit rate : 2 753 Kbps
Encoded date : UTC 1904-01-01 00:00:00
Tagged date : UTC 1904-01-01 00:00:00
@finoradin
finoradin / 60s.csv
Created July 31, 2015 18:36
csv of artworks from MoMA dataset collected in 60s
We can't make this file beautiful and searchable because it's too large.
Title,Artist,ArtistBio,Date,Medium,Dimensions,CreditLine,MoMANumber,Classification,Department,DateAcquired,CuratorApproved,ObjectID,URL
"Concert Hall Project, Dresden, Germany (Interior perspective of preliminary scheme)",Hans Poelzig,"(German, 1869–1936)",1918,Color pencil and graphite on tracing paper,"14 5/8 x 16 1/8"" (37.1 x 41 cm)",Gift of Henry G. Proskauer,1087.2009,A&D Architectural Drawing,Architecture & Design,1966-01-11,Y,76,http://www.moma.org/collection/works/76
"Palais de la Découverte Project, Paris, France, Elevation","Paul Nelson, Frantz Jourdain, Oscar Nitzchke","(American, 1895–1979) (French, 1847–1935) (American, born Germany. 1900–1991)",1938,Ink and color pencil on paper mounted on board,"14 3/4 x 37 1/2 x 1/2"" (37.5 x 95.3 x 1.3 cm)",Gift of the architects,98.2013,A&D Architectural Drawing,Architecture & Design,1966-01-01,Y,151,http://www.moma.org/collection/works/151
"Palais de la Découverte Project, Paris, France, Longitudinal section","Paul Nelson, Frantz Jourdain, Oscar Nitzchke",
<?xml version="1.0" encoding="UTF-8"?>
<MediaTrace
xmlns="http://www.mediaarea.net/mediatrace"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.mediaarea.net/mediatrace http://www.mediaarea.net/mediatrace/mediatrace.xsd"
version="0.7.76"
ref="/Users/bfino/Downloads/mengbo right test2.mov">
<block offset="0" name="File Type" size="32">
<block offset="0" name="Header" size="8">
<data offset="0" name="Size">32</data>
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<MediaTrace
xmlns="http://www.mediaarea.net/mediatrace"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.mediaarea.net/mediatrace http://www.mediaarea.net/mediatrace/mediatrace.xsd"
version="0.7.76"
ref="/Users/bfino/Downloads/right.mov">
<block offset="0" name="File Type" size="20">
<block offset="0" name="Header" size="8">
<data offset="0" name="Size">20</data>
@finoradin
finoradin / browser_history.py
Created September 3, 2012 05:42
Analyzing a CSV of browsing data, where row[0]=timestamp and row[1]=url. Counts first five unique hostnames per day, counts results.
import csv
from collections import defaultdict, Counter
from datetime import datetime
from urlparse import urlsplit
indiv = Counter()
domains = defaultdict(lambda: defaultdict(int))
with open("history.csv", "rb") as f:
for timestr, url in csv.reader(f):
@finoradin
finoradin / gist:5988481
Created July 12, 2013 22:58
Readme from a 250MB Zip DIsk
Getting the Most out of Your Zip Disks
Your Zip disks give you unlimited, high capacity, high
performance storage. With your Zip disks you can:
- Expand your computer storage quickly and easily, 250MB at
a time.
- Move your work easily to different locations and computers.