Skip to content

Instantly share code, notes, and snippets.


Stephan Burlot sburlot

View GitHub Profile
sburlot / gist:5287657
Created Apr 1, 2013
Allow paste when it's disabled by a web page (iTunesConnect, I'm looking at you)
View gist:5287657
sburlot / send_sms.php
Created Dec 30, 2012
PHP script to send SMS via the Infomaniak website. You need to have an account ( and add some credits to send SMS. This script was used to send sms alerts automatically, but you can use to send any sms you want (happy new year, birthday wishes, etc...)
View send_sms.php
# Send SMS messages via
# You need an account and have some credits to send SMS
# Stephan Burlot, Dec, 30 2012
// Username (your email address)
define('USER', '');
sburlot / gist:3046784
Created Jul 4, 2012
How the get the 512x512 icon for any iPhone app.
View gist:3046784
How the get the 512x512 icon for an app.
Look for this app on the website (Google is your friend)
For example, this excellent app.
Look for the URL of the icon in the page (it's a 175x175 picture).
I use Safari, so right click on the icon and choose "Inspect Element"
sburlot /
Created Mar 17, 2011
Add a list of users to a twitter list
use Net::Twitter;
use Data::Dumper;
$owner = "sburlot"; # <= you should put your name here
$list_name = "NSConf 2011"; # <= name of the twitter list
# put your own values below:
$consumer_key = "";
View Arbitrary rotation of a CGImage
- (CGImageRef)CGImageRotatedByAngle:(CGImageRef)imgRef angle:(CGFloat)angle
CGFloat angleInRadians = angle * (M_PI / 180);
CGFloat width = CGImageGetWidth(imgRef);
CGFloat height = CGImageGetHeight(imgRef);
CGRect imgRect = CGRectMake(0, 0, width, height);
CGAffineTransform transform = CGAffineTransformMakeRotation(angleInRadians);
CGRect rotatedRect = CGRectApplyAffineTransform(imgRect, transform);