Skip to content

Instantly share code, notes, and snippets.

Lucas Vidal LucasVidal

  • Twilio
  • Bogotá
Block or report user

Report or block LucasVidal

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
View MobileDayTalk.swift
import UIKit
import XCTest
// Wasteful and Helpful tests
class SomeViewController {
let model: Model
let statusLabel: UILabel
let buttonColor: UIColor
init(_ model: Model) {
View String-Replacements.swift
var tempText = ":a/b?c,d=e&f"
var replacements = [
View collections with love
//Smalltalk's "collect", haskell's "map"
- (NSArray *) arrayByEvaluatingBlock:(id(^)(id object))block {
NSMutableArray *array = [[NSMutableArray alloc] initWithCapacity:[self count]];
for (id object in self) {
[array addObject:block(object)];
return [array copy];
//Smalltalk's and haskell's "filter"
LucasVidal / gist:8522914
Created Jan 20, 2014
[NSTimezone abbreviationDictionary]
View gist:8522914
timezones: {
ADT = "America/Halifax";
AKDT = "America/Juneau";
AKST = "America/Juneau";
ART = "America/Argentina/Buenos_Aires";
AST = "America/Halifax";
BDT = "Asia/Dhaka";
BRST = "America/Sao_Paulo";
BRT = "America/Sao_Paulo";
BST = "Europe/London";
You can’t perform that action at this time.