Skip to content

Instantly share code, notes, and snippets.

View riophae's full-sized avatar

Fangzhou Li riophae

  • Beijing
View GitHub Profile
@riophae
riophae / stripiT.rb
Created June 16, 2017 09:49 — forked from torque/stripiT.rb
Script to strip various iTunes atoms from purchased AAC files via AtomicParsley.
#!/usr/bin/env ruby
# usage: stripiT.rb
# the original files will be OVERWRITTEN.
# Script to remove extraneous/unwanted atoms from iTunes purchased files by way of AtomicParsley.
# Output should be comparable to the atoms left over after reencoding the file in iTunes itself.
# I only care about songs, so I have no clue how well this applies to video files
# Some information taken from: https://code.google.com/p/mp4v2/wiki/iTunesMetadata
@riophae
riophae / bling.js
Last active August 29, 2015 14:22 — forked from paulirish/bling.js
/* bling.js */
window.$ = document.querySelector.bind(document);
Node.prototype.on = Node.prototype.addEventListener;
Node.prototype.find = Element.prototype.querySelectorAll;
NodeList.prototype.__proto__ = Array.prototype;