@property (readwrite, nonatomic, retain) UIColor *color
- (void)setBackgroundImage:(UIImage *)backgroundImage forState:(UIControlState)state barMetrics:(UIBarMetrics)barMetrics
require "jwt" | |
key_file = "Path to the private key" | |
team_id = "Your Team ID" | |
client_id = "The Service ID of the service you created" | |
key_id = "The Key ID of the private key" | |
validity_period = 180 # In days. Max 180 (6 months) according to Apple docs. | |
private_key = OpenSSL::PKey::EC.new IO.read key_file |
#!/usr/bin/ruby | |
# Convert a Markdown README to HTML with Github Flavored Markdown | |
# Github and Pygments styles are included in the output | |
# | |
# Requirements: json gem (`gem install json`) | |
# | |
# Input: STDIN or filename | |
# Output: STDOUT | |
# Arguments: "-c" to copy to clipboard (or "| pbcopy"), or "> filename.html" to output to a file | |
# cat README.md | flavor > README.html |
This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues: