Skip to content

Instantly share code, notes, and snippets.

Jason Brennan jbrennan

Block or report user

Report or block jbrennan

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
jbrennan / nearthespeedoflight.css
Created Apr 3, 2016
Style for from Feb 2013 to April 2016
View nearthespeedoflight.css
/* ============================== */
/* ! */
/* ! Speed of Light style ver 2.6 */
/* ! Copyright 2011 Jason Brennan */
/* ! */
/* ! February 20 2013 */
/* ! */
/* ============================== */
jbrennan / nearthespeedoflight-2016.css
Created Apr 3, 2016
Style for April 2 2016
View nearthespeedoflight-2016.css
/* ============================== */
/* ! */
/* ! Speed of Light style ver 3 */
/* ! Copyright 2016 Jason Brennan */
/* ! */
/* ! April 2 2016 */
/* ! */
/* ============================== */
View Swift

Hello Everyone,

The Swift 3 release is nearing completion, so it is time to look back on the release, learn from what happened, and use it to shape what we (the Swift community) do in the year ahead. Overall, Swift 3 is going to be an absolutely amazing release, and it is impressive how much got done. Thank you to everyone who contributed to making it happen. Instead of diving into a flurry of new proposals immediately, it is important to take stock of where we are, and look at the bigger picture.

Metapoint: this email is ridiculously long and covers multiple topics. Instead of replying to it directly, it is best to start new threads on individual topics that you’d like to discuss. Just tag them with “[Swift 4]” in the subject line.

Swift 3 Retrospective

Every year of Swift’s development has been completely different from the previous one, and I expect Swift 4 to continue this trend. With a goal of learning and improving year over year, here are some observations & retrospective about Swi

jbrennan / LineScaling.swift
Created Aug 3, 2016
The math behind a “drag to scale this line” operation.
View LineScaling.swift
extension Line {
/** Returns a scaled line according to the projection of `scalingPoint` onto the receiver.
- parameter scalingPoint: A point interpreted as a vector used for scaling this line. This point should be something like the location of a touch or cursor during a "drag to scale" operation, but the point doesn't have to lie along the line itself. The point **must** be in the same coordinate space as the line.
func lineByScalingToTouchPoint(scalingPoint: Point) -> Line {
// This algorithm works by
// - treating the incoming point as a vector,
jbrennan / ViewController.swift
Created Aug 31, 2018
Simple file for converting Localizable.strings key=values back into a codebase
View ViewController.swift
class ViewController: NSViewController {
override func viewDidLoad() {
let translations = translationsFor(stringsFilePath: "/Users/jasonbrennan/peloton/Argon/Argon/Supporting Files/Localizable.strings")
for translation in translations {
replace(translation: translation, inProjectDirectory: "/Users/jasonbrennan/peloton/Argon/Argon")
jbrennan / wwdc2014
Created Jul 16, 2019 — forked from phnessu4/wwdc2014
wwdc 2014 sessions and pdf
View wwdc2014
You can’t perform that action at this time.