Skip to content

Instantly share code, notes, and snippets.

@ear
ear / 01_README.md
Created November 2, 2015 09:26 — forked from rwjblue/01_README.md
New Twiddle
// Playground - noun: a place where people can play
import Foundation
typealias Byte = UInt8
protocol GenericIntegerType: IntegerType {
init(_ v: Int)
init(_ v: UInt)
init(_ v: Int8)
{% assign day = post.created | date: "%d" %}
{% assign positions = "4," | append: day | split: "," %}
{% assign i = positions.min | minus: 1 %}
{% assign suffixes = "st,nd,rd,th" | split: "," %}
{% assign dayth = day | append: suffixes[i] %}
{{ dayth }}