Skip to content

Instantly share code, notes, and snippets.

(ns bbcode-obfuscator)
(defn opening-tag [tag-name]
(format "[%s]" tag-name))
(defn closing-tag [tag-name]
(format "[/%s]" tag-name))
(defn tag-info [tag-name]
{:name tag-name
@Odie
Odie / gist:e26bc299bfc1f020e636
Created October 9, 2014 12:10
Parse user friendly time duration string in Swift
import UIKit
extension NSDateComponents {
subscript(unit: String) -> Int {
get {
switch unit{
case "month":
return self.month
case "day":
return self.day
@Odie
Odie / SHSwipeEvent.h
Created June 21, 2011 16:14 — forked from Shilo/SHSwipeEvent.h
A simple swipe event extension for Sparrow
//
// SHSwipeEvent.h
// Sparrow
//
// Created by Shilo White on 3/10/11.
// Copyright 2011 Shilocity Productions. All rights reserved.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the Simplified BSD License.
//