Skip to content

Instantly share code, notes, and snippets.

@kerin
kerin / gist:2971715
Created June 22, 2012 09:41
Windows Azure welcome message
Congratulations!
Your pending request to access the Windows Azure Web Sites preview has been approved.
The management experience for this is available in the new and improved preview portal.
You can go there now or you can go back to the previous experience where the preview features
are not available.
>>> blob_service.create_container('cinemasearchintegrationpackages')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\azure\storage\blobservice.py", line 94, in
create_container
self._perform_request(request)
File "C:\Python27\lib\site-packages\azure\storage\storageclient.py", line 115,
in _perform_request
resp = self._filter(request)
File "C:\Python27\lib\site-packages\azure\storage\storageclient.py", line 106,
<security>
<ipSecurity>
<add ipAddress="192.168.100.1" />
<add ipAddress="169.254.0.0" subnetMask="255.255.0.0" />
</ipSecurity>
</security>
My client, a healthcare company based in London are looking for an HTML 5 / Javascript developer to join the current team.
The contract is for an initial 3 months and the day rate is a maximum £160 per day
Please have a look at the job spec below and if you are interested please send your up to date CV over and I will call you immediately
3 or more years commercial experience in the following:
HTML / HTML5
- (id)makeRequestWithPath:(NSString *)path queryStringParams:(NSDictionary *)queryparams {
NSURL *url = [NSURL URLWithString:path relativeToURL:[LanternAPIClient baseURL]];
if (queryparams) {
NSMutableArray *queryparts = [[NSMutableArray alloc] init];
for (id key in queryparams) {
[queryparts addObject:[NSString stringWithFormat:@"%@=%@",
key, [queryparams objectForKey:key]]];
}
<!DOCTYPE html>
<head>
<script src="jquery.js"></script>
<link rel="stylesheet" href="main.css">
</head>
<body>
<table id="keypad">
<tr>
<td><button id="key-1">1</button></td>
render: function(){
this.$el.html(this.template({trailers: this.trailers}));
var container = this.$el.find('.thumbnails');
console.log(container.css('height'));
_.each(this.$el.find('[role=ui-selectable]'), function(film){
var film = $(film);
console.log(film.css('width'));
});
- (id)initWithStyle:(UITableViewStyle)style
{
self = [super initWithStyle:style];
if (self) {
self.genres = @{
@"": @"All",
@"004bf6c9a40003140292e97330236c53": @"Action",
@"dc1d2a4d591857f0a0dd38b4ebcf5a72": @"Adventure",
@"d6b6b668dbca9d4fe774bb654226ebe3": @"Animation",
@"64e4aca4297806247f62a7b5f8cbd3df": @"Children",
- (id)initWithStyle:(UITableViewStyle)style
{
self = [super initWithStyle:style];
if (self) {
NSString *errorDesc = nil;
NSPropertyListFormat format;
NSString *plistPath;
NSString *rootPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,
NSUserDomainMask, YES) objectAtIndex:0];
plistPath = [rootPath stringByAppendingPathComponent:@"genres.plist"];
+ (void)makeAsyncRequestForPath:(NSString *)path
withQueryParams:(NSDictionary *)queryParams
responseHandler:(void (^)(NSData*, NSError*))handler
{
NSURLRequest *req = [self getRequestForPath:path
queryStringParams:queryParams];
NSOperationQueue *queue = [[NSOperationQueue alloc] init];
[NSURLConnection sendAsynchronousRequest:req
queue:queue