Skip to content

Instantly share code, notes, and snippets.

View rhysforyou's full-sized avatar

Rhys Powell rhysforyou

View GitHub Profile

Self-Teaching in the Digital Age

In recent years, access to educational material on every topic under the sun has become freely available to anyone with an internet connection. Yet despite this we've not seen a massive increase in talented individuals as a result. Now this can be attributed to many things but I'd argue that it's due to a crippling lack of motivation as part of the modern human condition. In fact I'd argue this has been the case since time immemorial and has only been highlighted by the internet and the opportunity of instant global exposure it represents. In times past people have been able to divert attention from this central problem but that's a lot harder nowadays.

@rhysforyou
rhysforyou / style.css
Created November 26, 2010 00:01
newpage.html
<!doctype html>
<html>
<head>
<title>Maku | New Page</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="container">
<div id="content">
<h1 class="title">Māku</h1>
@interface RootViewController : UITableViewController {
IBOutlet UIToolbar *toolBar;
}
@rhysforyou
rhysforyou / gist:889058
Created March 27, 2011 08:47
Heroku Log output for Blinklist
2011-03-27T01:19:08-07:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.2/lib/rack/builder.rb:46:in `initialize'
2011-03-27T01:19:08-07:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.2/lib/rack/builder.rb:63:in `new'
2011-03-27T01:19:08-07:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.2/lib/rack/builder.rb:63:in `map'
2011-03-27T01:19:08-07:00 app[web.1]: from /home/heroku_rack/heroku.ru:18:in `block (2 levels) in <main>'
2011-03-27T01:19:08-07:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.2/lib/rack/builder.rb:46:in `instance_eval'
2011-03-27T01:19:08-07:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.2/lib/rack/builder.rb:46:in `initialize'
2011-03-27T01:19:08-07:00 app[web.1]: from /home/heroku_rack/heroku.ru:11:in `new'
2011-03-27T01:19:08-07:00 app[web.1]: from /home/heroku_rack/heroku.ru:11:in `block in <main>'
2011-03-27T01:19:08-07:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.2/lib/rack/builder.rb
//
// TumblrAPIRequest.h
// Tumblrocket
//
// Created by Rhys Powell on 12/06/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
@rhysforyou
rhysforyou / gist:1033672
Created June 19, 2011 02:13
Debugging info
rpowell at Marvin in ~/Documents/Code/frog.io [git:master⚡]
$ gem list
*** LOCAL GEMS ***
bundler (1.0.15)
haml (3.1.2)
maruku (0.6.0)
nesta (0.9.5)
rack (1.3.0)
>>> import pygame
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/Cellar/python26/2.6.4/lib/python2.6/site-packages/pygame/__init__.py", line 95, in <module>
from pygame.base import *
ImportError: dlopen(/usr/local/Cellar/python26/2.6.4/lib/python2.6/site-packages/pygame/base.so, 2): Symbol not found: _SDL_EnableUNICODE
Referenced from: /usr/local/Cellar/python26/2.6.4/lib/python2.6/site-packages/pygame/base.so
Expected in: dynamic lookup
def uri= uri
needs_root_domain = ((%r{^http://[^/]+/} =~ uri) == nil)
if needs_root_domain
@uri = "http://www.metafilter.com#{uri}"
else
@uri = uri
end
end
- (void)addEvent
{
CLLocation *location = [locationManager location];
if (!location) {
return;
}
Event *event = (Event *)[NSEntityDescription insertNewObjectForEntityForName:@"Event"
inManagedObjectContext:managedObjectContext];
@rhysforyou
rhysforyou / RootViewController.h
Created September 8, 2011 11:01
RootViewController.m
//
// RootViewController.h
// Locations
//
// Created by Rhys Powell on 8/09/11.
// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>