This file contains 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
#!/bin/sh | |
mkdir packaged_air_files | |
for f in *.swf | |
do | |
echo "Processing $f" | |
mkdir packaged_air_files/dir$f | |
mkdir packaged_air_files/dir$f/META-INF | |
mkdir packaged_air_files/dir$f/META-INF/AIR |
This file contains 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
svn st | grep "^?" | awk -F " " '{print $2}' | xargs svn add |
This file contains 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
require 'rexml/document' | |
require 'net/http' | |
include REXML | |
@location = 'http://cloud.tfl.gov.uk/TrackerNet/LineStatus' | |
@file = Net::HTTP.get_response(URI.parse(@location)) | |
@xml = REXML::Document.new(@file.body) | |
@xml.elements.each("ArrayOfLineStatus/LineStatus") do |element| | |
puts "#{element[3].attribute("Name")} - #{element[5].attribute("Description")}" | |
end |
This file contains 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/ruby | |
# script to compare and see what lines are in file1 but not file2 | |
f1 = File.open('file1.txt') | |
f2 = File.open('file2.txt') | |
file1lines = f1.readlines | |
file2lines = f2.readlines |
This file contains 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
tell application "Mail" | |
set theSelectedMessages to selection | |
repeat with theMessage in theSelectedMessages | |
repeat with theAttachment in theMessage's mail attachments | |
set thePath to "/Users/user/Dropbox/Photos/CheekyMonkey/" | |
set posixPath to POSIX file thePath as string | |
set theSubject to theMessage's subject | |
set theAttachmentFileName to posixPath & theSubject & theAttachment's id & theAttachment's name | |
try | |
save theAttachment in theAttachmentFileName |
This file contains 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
require 'rubygems' | |
require 'prowly' | |
require 'rexml/document' | |
require 'net/http' | |
include REXML | |
@location = 'http://cloud.tfl.gov.uk/TrackerNet/LineStatus' | |
@file = Net::HTTP.get_response(URI.parse(@location)) | |
@xml = REXML::Document.new(@file.body) |
This file contains 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
cd `brew --prefix` | |
git remote add origin https://github.com/mxcl/homebrew.git | |
git fetch origin | |
git reset --hard origin/master |
This file contains 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 flash.system.Capabilities; | |
trace("Capabilities.avHardwareDisable: "+Capabilities.avHardwareDisable); | |
trace("Capabilities.hasAccessibility: "+Capabilities.hasAccessibility); | |
trace("Capabilities.hasAudio: "+Capabilities.hasAudio); | |
trace("Capabilities.hasAudioEncoder: "+Capabilities.hasAudioEncoder); | |
trace("Capabilities.hasEmbeddedVideo: "+Capabilities.hasEmbeddedVideo); | |
trace("Capabilities.hasMP3: "+Capabilities.hasMP3); | |
trace("Capabilities.hasPrinting: "+Capabilities.hasPrinting); | |
trace("Capabilities.hasScreenBroadcast: "+Capabilities.hasScreenBroadcast); |
This file contains 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
mp4box -raw <track-id> <path-to.mp4> |
This file contains 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
mp4box -info <path-to.mp4> |
OlderNewer