Skip to content

Instantly share code, notes, and snippets.

View lukeredpath's full-sized avatar
🏠
Working from home

Luke Redpath lukeredpath

🏠
Working from home
View GitHub Profile
Date: 24.09.2014
Dear Mr Redpath
Thank you for contacting us on 10 September 2014 suggesting improvements for Bow roundabout.
I am sorry you have experienced motorist jumping the red lights at Bow roundabout.
@lukeredpath
lukeredpath / gist:41c3f3c50534602213ad
Created September 30, 2014 15:13
travis-postgres-error
$ sudo service postgresql start 9.3
* Starting PostgreSQL 9.3 database server  * Error: /var/ramfs/postgresql/9.3/main is not accessible or does not exist
@lukeredpath
lukeredpath / Email to TFL re: Bow RLJs
Last active August 29, 2015 14:07
Red light jumping at Bow roundabout - below is TFLs response to my email about trying to make this better and a small selection of examples from YouTube.
My original email:
Hi there,
I'm emailing you to share my experience of cycling over Bow roundabout, particularly with reference to the early start system in place.
http://www.tfl.gov.uk/travel-information/improvements-and-projects/bow-roundabout
The above article claims that the early start system makes the roundabout safer - and I can see the logic behind it - but in reality, the junction is still very dangerous as cyclists are exposed to dangers from traffic already on the roundabout jumping the red lights.
[self.window makeKeyAndVisible];
//[self presentMyNormalModalViewController];
UIViewController *testVC = [[UIViewController alloc] init];
testVC.view.backgroundColor = [UIColor redColor];
[self.window.rootViewController presentViewController:testVC animated:NO completion:nil];
Thank you for contacting us again on 15 January 2015 regarding red light jumping at Bow Roundabout. I am sorry the problem persists at this location.
We are currently investigating this matter and will contact you again when we have information for you.
@lukeredpath
lukeredpath / gist:acf6010e0d453f72e6ce
Last active August 29, 2015 14:14
Stuff I've got to get rid of
Stuff for sale:
* Mac Mini 2007 (http://www.everymac.com/systems/apple/mac_mini/specs/mac-mini-core-2-duo-1.83-specs.html) - £40 (TAKEN)
* Onkyo TR-605 (http://www.onkyousa.com/Products/model.php?m=TX-SR605&class=Receiver) - £TBC
Stuff I'm giving away:
* Logitech Squeezebox 2 (TAKEN)
* Logitech Squeezebox Boom (TAKEN)
* Behringer V-Amp (http://www.behringer.com/EN/Products/V-AMP.aspx)
@lukeredpath
lukeredpath / ReactiveLocation.m
Last active August 29, 2015 14:14
Display location on map when authorised
if ([CLLocationManager locationServicesEnabled]) {
self.locationManager = [[CLLocationManager alloc] init];
self.locationManager.delegate = self;
RACSignal *locationAuthorizationStatus = [[RACSignal
concat:@[
[RACSignal return:@([CLLocationManager authorizationStatus])],
[[self rac_signalForSelector:@selector(locationManager:didChangeAuthorizationStatus:) fromProtocol:@protocol(CLLocationManagerDelegate)] map:^id(RACTuple *arguments) {
return arguments.second;
}]
def show
if @project = @user.projects.find_by_name(params[:project_name])
# congrats, it exists
elsif project = @user.projects.find_by_old_name(params[:project_name])
redirect_to project_url(project), :status => :moved_permanently
end
end
def show
if @project = @user.projects.find_by_name(params[:project_name])
# congrats, it exists
elsif project = @user.projects.find_by_old_name(params[:project_name])
redirect_to project_url(project), :status => :moved_permanently
end
end
[NSTimer scheduledTimerWithTimeInterval:self.pollInterval target:self selector:@selector(checkForStatusUpdate) userInfo:nil repeats:YES];