This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby -wKU | |
require "rubygems" | |
require 'appscript' | |
require "date" | |
things = Appscript.app('Things.app') | |
tomorrow = DateTime.now.next_day | |
things.selected_to_dos.get.each { |todo| things.schedule(todo, :for => tomorrow) } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# coding: utf-8 | |
# Ian Haigh - thejoyofappscript.com | |
# Make a new To Do in Things, based on the name and URL of the currently | |
# selected item in NetNewsWire. The new To Do goes slap bang into the "Someday" | |
# category. Handy for temporary bookmarks for things that you want to check | |
# out later but aren't suitable for Instapaper, like video. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xml sel -t -m '//generatoritem[effect/effectid="Text"]' -s A:N:U start -m 'effect/parameter[name="Text"]' -v value -n FILENAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ease and Wizz 2.0.2 : inOutBack : All keyframes | |
// Ian Haigh (http://ianhaigh.com/easeandwizz/) | |
// Last built: 2012-09-26T16:53:49+10:00 | |
// some defaults | |
var p = 0.8; // period for elastic | |
var a = 50; // amplitude for elastic | |
var s = 1.70158; // overshoot amount for "back" | |
function easeandwizz_inOutBack(t, b, c, d) { | |
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; | |
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby -wKU | |
# by Ian Haigh | |
# http://ianhaigh.com/ | |
# for use with MarkerTool | |
# http://www.spherico.de/filmtools/markerTool/index.html | |
FRAME_DURATION = 0.04 | |
require "timecode" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime, sublime_plugin, subprocess | |
class RevealThisFileCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
path = self.view.file_name() | |
subprocess.call(["open", "-R", path]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function easeandwizz_inOutExpo(t, b, c, d) { | |
if (t==0) return b; | |
if (t==d) return b+c; | |
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; | |
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; | |
} | |
moveDuration = 2; | |
moveStart = inPoint; | |
moveEnd = moveStart+moveDuration; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function easeandwizz_inBack(t, b, c, d) { | |
return c*(t/=d)*t*((s+1)*t - s) + b; | |
} | |
function easeandwizz_inOutBack(t, b, c, d) { | |
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; | |
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; | |
} | |
function easeandwizz_outBack(t, b, c, d) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import vobject | |
import sys | |
for fname in sys.argv[1:]: | |
f = open(fname) | |
v = vobject.readComponents(f) | |
while True: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ease and Wizz 2.0.4 : outElastic : All keyframes | |
// Ian Haigh (http://ianhaigh.com/easeandwizz/) | |
// Last built: 2013-07-05T11:46:51+10:00 | |
// some defaults | |
var p = 0.81; // period for elastic | |
var a = 50; // amplitude for elastic | |
var s = 1.70158; // overshoot amount for "back" | |
function easeandwizz_outElastic(t, b, c, d, a, p) { | |
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; | |
if (!a || a < Math.abs(c)) { a=c; var s=p/4; } |
OlderNewer