Me:
“Do you know the difference between a good place to work and a bad place to work?”
Steve:
“Umm, I think so.”
Me:
“What is the difference?”
Steve:
| // | |
| // TransitionController.h | |
| // | |
| // Created by XJones on 11/25/11. | |
| // | |
| #import <UIKit/UIKit.h> | |
| @interface TransitionController : UIViewController |
| Use this kind of URL : | |
| http://maps.webnet.fr/Parcours2/GetBALXML.aspx?&lat=50,6138111&lng=3,0423599<1=40.6245285569843&lg1=0.109302520751953<2=60.66806914857679&lg2=5.1135940551757812 | |
| The website is hosted by webnet which is the society hired by La Poste to made the website showing all mailboxes in France. | |
| I'll probably made a gem and a objc library (and app) to get access to such useful datas ! |
| + (UIImage*)captureView:(UIView *)viewToCapture { | |
| if([[UIScreen mainScreen] respondsToSelector:@selector(scale)]) | |
| UIGraphicsBeginImageContextWithOptions(viewToCapture.bounds.size, NO, [UIScreen mainScreen].scale); | |
| else | |
| UIGraphicsBeginImageContext(viewToCapture.bounds.size); | |
| [viewToCapture.layer renderInContext:UIGraphicsGetCurrentContext()]; | |
| UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); | |
| UIGraphicsEndImageContext(); | |
| spotifyReg = /(https?:\/\/open.spotify.com\/(track|user|artist|album)\/[a-zA-Z0-9]+(\/playlist\/[a-zA-Z0-9]+|)|spotify:(track|user|artist|album):[a-zA-Z0-9]+(:playlist:[a-zA-Z0-9]+|))/ |
| def autolink(link, link_type) | |
| statusReg = /https?:\/\/twitter\.com\/[a-zA-Z]+\/status\/([0-9]+)/ | |
| if link_type == :url | |
| if link =~ statusReg | |
| tweet = statusReg.match(link) | |
| urlTweet = tweet[0] | |
| idTweet = tweet[1] | |
| uri = URI.parse("https://api.twitter.com/1/statuses/oembed.json?id=#{idTweet}") | |
| http = Net::HTTP.new(uri.host, uri.port) |
Me:
“Do you know the difference between a good place to work and a bad place to work?”
Steve:
“Umm, I think so.”
Me:
“What is the difference?”
Steve: