Skip to content

Instantly share code, notes, and snippets.

#import <UIKit/UIKit.h>
@interface RoundedCornerTestAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window_;
}
@end
require 'nokogiri'
require 'open-uri'
require 'pp'
products = []
macs = %w{imac macbook macbook_pro macbook_air mac_mini mac_pro xserve displays mac_accessories}
macs.each do |mac|
doc = Nokogiri::HTML(open("http://store.apple.com/us/browse/home/specialdeals/mac/#{mac}"))
require 'nokogiri'
require 'open-uri'
station_id = 'ea1cf660a072089e6d1a8c963c4de754ce73ab3d53acab5f'
songs = []
['track', 'thumb_up'].each do |s|
doc = Nokogiri::HTML(open("http://www.pandora.com/favorites/station_tablerows_#{s}.vm?token=#{station_id}"))
-- get properties of the playing track
tell application "PandoraBoy"
set trackArtist to artist of current track
set trackName to name of current track
end tell
-- change the status message to your liking here:
set tweet to "♫ " & trackArtist & " - " & trackName
-- let the user edit
// What I'm going after: http://img515.yfrog.com/img515/3872/90335114.png
[TTShapeStyle styleWithShape:[TTRoundedRectangleShape shapeWithTopLeft:-1 topRight:-1 bottomRight:-1 bottomLeft:-1]
next:[TTSolidFillStyle styleWithColor:[UIColor lightGrayColor]
next:[TTBoxStyle styleWithMargin:UIEdgeInsetsZero padding:UIEdgeInsetsMake(0, 8, 0, 8)
next:[TTTextStyle styleWithFont:[UIFont boldSystemFontOfSize:15]
color:[UIColor whiteColor]
minimumFontSize:15
shadowColor:nil
shadowOffset:CGSizeZero
textAlignment:UITextAlignmentCenter
require 'rubygems'
require 'tweetstream'
require 'open-uri'
require 'json'
tweetstream = TweetStream::Client.new("user", "pass")
tweetstream.track('♫') do |tweet|
q = tweet.text.gsub(/[^a-z\s]/i, '')