Skip to content

Instantly share code, notes, and snippets.

Ben Taylor taybenlor

Block or report user

Report or block taybenlor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@taybenlor
taybenlor / NicerDates.swift
Created Jul 20, 2015
Make dates nicer, very quick hack
View NicerDates.swift
//
// NicerDates.swift
//
// Created by Ben Taylor on 20/07/2015.
//
import Foundation
extension Int {
View gist:f00e24501f1820d24dfd
RAC(self, property) = RACObserve(self.model, property);
@taybenlor
taybenlor / Form Letter.md
Last active Apr 23, 2017
Form letter that I email to companies offering unpaid internships.
View Form Letter.md

Subject: Unpaid Internships & Fair Work

Hi there,

I'm Ben Taylor, I don't represent anyone or anything, I'm simply a concerned Australian. Our country has long been known as a paradise for the working class. We give fair holidays and fair pay. We're a country that doesn't tip because we know the waitstaff are earning enough to support themselves.

I'm emailing you because your company is offering an unpaid internship. Under Australian law it's illegal to have an employee that works for free. In many cases unpaid internships are illegal.

It's absolutely in your right to offer an internship, you can pay them minimum wage if you like, but not paying is exploitative and discriminatory. Should a young person who is independent be forced to take a second job or live under severe financial stress just to get a chance in an industry? What about those who can't afford to do even that?

@taybenlor
taybenlor / CustomCollectionFlowLayout.h
Last active Jan 1, 2016 — forked from toblerpwn/CustomCollectionFlowLayout.h
Adds support for sections with no header.
View CustomCollectionFlowLayout.h
//
// CustomCollectionFlowLayout.h
// evilapples
//
// http://stackoverflow.com/questions/13511733/how-to-make-supplementary-view-float-in-uicollectionview-as-section-headers-do-i
//
//
#import <UIKit/UIKit.h>
View gist:6408293

Autolayout lessons:

@taybenlor
taybenlor / colour.js
Created Oct 15, 2012
Colour Helpers in JS
View colour.js
/**
* A class to parse colour values. Updated by Ben to support colour conversions.
* @author Stoyan Stefanov <sstoo@gmail.com>
* @author Ben Taylor <taybenlor@gmail.com>
* @link http://www.phpied.com/rgb-color-parser-in-javascript/
* @license Use it if you like it
*/
function Colour(colour_string)
{
this.ok = false;
View gist:3684133

Pros

  • Very low effort to get running
  • Easily extensible to add very powerful features eg. I added memcache and caching to one of our apps and had it live within 30mins
  • Less downtime stress (if shit fails, you know heroku is dealing with it and you don't have to do much other than respond to customers)
  • Very little platform lockin (unlike Google App Engine)
  • Standing on shoulders of giants
  • Strong app segmentation = stability
  • Easy to price for clients
@taybenlor
taybenlor / gist:3486381
Created Aug 27, 2012
Top Aussie Designers on Dribbble
View gist:3486381
http://dribbble.com/jessedodds
http://dribbble.com/snootyfox
http://dribbble.com/bjango
http://dribbble.com/MelDraws
http://dribbble.com/zane_david
http://dribbble.com/charlessantoso
http://dribbble.com/envato
http://dribbble.com/tomricci
http://dribbble.com/VERG
http://dribbble.com/alanvanroemburg
@taybenlor
taybenlor / gist:3212275
Created Jul 31, 2012
Explaining this within JS
View gist:3212275
/*
* In JavaScript "this" is very finicky. Mostly it tends to get lost whenever
* you use a callback. When you assign a function you're literally creating
* a function object and then putting it into an object. Whenever the function
* is called it works out what it's this is based on how it was called.
*
* There are several ways to make sure your this stays around.
*
*/
View gist:3000612
var widths = $("elements").map(function(i, el){
$(el).width();
});
var max_width = Math.max.apply(Math, widths);
You can’t perform that action at this time.