Skip to content

Instantly share code, notes, and snippets.

View winslowdibona's full-sized avatar

Winslow DiBona winslowdibona

  • BetterWorks
  • Charleston, SC
View GitHub Profile
@winslowdibona
winslowdibona / config.yaml
Last active December 18, 2020 00:38
csv-etl example
rules:
-
target: OrderId
type: Calculation
input_type: Integer
output_type: Integer
source: Order Number
-
target: OrderDate
type: Calculation
@winslowdibona
winslowdibona / UIImageView+AsyncExtension.swift
Last active January 14, 2016 20:40
Basic Async UIImageView
import Foundation
import UIKit
extension UIImageView {
func setImageWithUrlString(urlString : String, placeholderImageFileName : String?){
if let placeholderImageFileName = placeholderImageFileName {
self.setImageOnMainThread(UIImage(named: placeholderImageFileName))
}
let url = NSURL(string: urlString)!
let request = NSMutableURLRequest(URL: url, cachePolicy: .ReturnCacheDataElseLoad, timeoutInterval: 30.0)