Skip to content

Instantly share code, notes, and snippets.

View soffes's full-sized avatar

Sam Soffes soffes

View GitHub Profile
@font-family: Menlo;
.tree-view {
.status-ignored {
display: none;
}
}
.editor {
font-family: @font-family;
@soffes
soffes / Whiskey Smarts.markdown
Last active August 29, 2015 13:57
Just a little excerpt of a post I'm going to write on Whiskey's engine when it comes out.

Given the following Markdown:

# Some Header

This is a paragraph with a [link](http://usewhiskey.com).

iA Writer says there are 12 words. Byword says there are 11. Whiskey, a Markdown text editor I’m working on, says there are 9. Count them.

// Poof! http://www.hulu.com/watch/1201
NSShowAnimationEffect(NSAnimationEffectPoof, center, CGSizeZero, nil, nil, NULL);
class APIClient {
}
var sharedAPIClient: APIClient = {
return APIClient()
}()
extension APIClient {
class func sharedClient() -> APIClient {
return sharedAPIClient
@soffes
soffes / Array+Each.swift
Created July 17, 2014 19:08
Each on Array in Swift
extension Array {
func each(block: ((Element) -> Void)) {
for i in 0..<count {
block(self[i])
}
}
func eachWithIndex(block: ((Element, Int) -> Void)) {
for i in 0..<count {
block(self[i], i)
@soffes
soffes / 25.go
Last active August 29, 2015 14:05
Learn Go Exercises — http://tour.golang.org
// #25 — Loops and Functions
package main
import (
"fmt"
"math"
)
func Sqrt(x float64) float64 {
@soffes
soffes / Gemfile
Last active August 29, 2015 14:06
Roon's Gemfile
source 'https://rubygems.org'
ruby '2.1.2'
gem 'rails', '4.1.6'
gem 'rails-i18n', github: 'svenfuchs/rails-i18n', branch: 'master'
gem 'puma'
gem 'pg'
//
// CommandClickGestureRecognizer.swift
// Whiskey
//
// Created by Sam Soffes on 12/7/14.
// Copyright (c) 2014 Nothing Magical Inc. All rights reserved.
//
import Cocoa
@soffes
soffes / NSRange.swift
Created December 23, 2014 14:54
Swift Extensions
//
// NSRange.swift
// MarkdownKit
//
// Created by Sam Soffes on 12/23/14.
// Copyright (c) 2014 Nothing Magical Inc. All rights reserved.
//
import Foundation
@soffes
soffes / Bond.markdown
Created January 30, 2015 16:47
James Bond Movies

James Bond Movies

Sean Connery

  • Dr. No
  • From Russia with Love
  • Goldfinger
  • Thunderball
  • You Only Live Twice
  • Diamonds Are Forever