Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.03">
<data>
<int key="IBDocument.SystemTarget">1050</int>
<string key="IBDocument.SystemVersion">9L30</string>
<string key="IBDocument.InterfaceBuilderVersion">677</string>
<string key="IBDocument.AppKitVersion">949.54</string>
<string key="IBDocument.HIToolboxVersion">353.00</string>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.03">
<data>
<int key="IBDocument.SystemTarget">1050</int>
<string key="IBDocument.SystemVersion">9L30</string>
<string key="IBDocument.InterfaceBuilderVersion">677</string>
<string key="IBDocument.AppKitVersion">949.54</string>
<string key="IBDocument.HIToolboxVersion">353.00</string>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.03">
<data>
<int key="IBDocument.SystemTarget">1050</int>
<string key="IBDocument.SystemVersion">9L30</string>
<string key="IBDocument.InterfaceBuilderVersion">677</string>
<string key="IBDocument.AppKitVersion">949.54</string>
<string key="IBDocument.HIToolboxVersion">353.00</string>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
[
{
name:"\u5DDD\u67F3",
updated_at:"2010-05-15T19:27:44+09:00",
resource_url:"http://wedata.net/items/32784",
created_by:"ucnv",
database_resource_url:"http://wedata.net/databases/Text%20Conversion%20Services",
data:{
action:"append",
// Adds the tombloo poster for delicious private posts.
models.register({
name : 'DeliciousPrivate',
ICON : ['data:image/png;base64,',
'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ',
'bWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw%2FeHBhY2tldCBiZW',
'dpbj0i77u%2FIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8%2BIDx4OnhtcG1ldGEgeG',
'1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwID',
'YxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cm',
'RmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZX',
# color crashing effect
require 'aviglitch'
a = AviGlitch.open ARGV.shift
deltas = []
a.frames.each_with_index do |f, i|
deltas.push(i) if f.is_deltaframe?
end
q = a.frames[0, 5] # keep first frames.
# http://dl.dropbox.com/u/4316370/reversed_frames.mp4
require 'aviglitch'
a = AviGlitch.open ARGV.shift
# datamosh
a.glitch(:keyframe) do |f|
nil
end
# reverse
q = a.frames[-1, 1]
#!/usr/bin/env ruby
# Test script for yet another JPEG glitch technique.
# Rewrite YCbCr sampling factors in JPEG header.
# It's a version of http://gist.github.com/167060
require 'erb'
data = File.open(ARGV.first) {|f| f.read }
data.force_encoding Encoding::BINARY
sof0 = data.index "\xFF\xC0"
ns = data[sof0 + 9].unpack('C').first
require 'echonest'
require 'aviglitch'
audio, *videos = ARGV
apikey = "YOUR-ECHONEST-API-KEY"
beat_threshold = 0.15
fps = 30
tmp = 'tmp.avi'
outfile = "out.mp4"
path = File::expand_path ARGV.shift
scpt = <<SCPT
tell application "Finder"
activate
select POSIX file "#{path}"
end tell
tell application "System Events"
tell process "Finder"
keystroke "y" using {command down, option down}
end tell