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 <UIKit/UIKit.h> | |
@interface RoundedCornerTestAppDelegate : NSObject <UIApplicationDelegate> { | |
UIWindow *window_; | |
} | |
@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
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}")) |
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 '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}")) | |
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
-- 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 |
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
// 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 |
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 'tweetstream' | |
require 'open-uri' | |
require 'json' | |
tweetstream = TweetStream::Client.new("user", "pass") | |
tweetstream.track('♫') do |tweet| | |
q = tweet.text.gsub(/[^a-z\s]/i, '') | |
NewerOlder