Skip to content

Instantly share code, notes, and snippets.

View DimaVartanian's full-sized avatar

Dima DimaVartanian

  • Instagram
  • New York
View GitHub Profile
//
// NestedGauge.swift
// circle
//
// Created by Dima Vartanian on 5/10/17.
// Copyright © 2017 Dima Vartanian. All rights reserved.
//
import UIKit
@DimaVartanian
DimaVartanian / XcodeBuildLogParser
Created October 8, 2015 00:05 — forked from danielpunkass/XcodeBuildLogParser
Example configuration file for Jenkins's build log parser plugin, including some rules for Xcode quirks
# don't treat any of these as errors, warnings or info
ok /setenv /
# ignore TidyXML warnings
ok /line [0-9]+ column [0-9]+ - Error:/
ok /line [0-9]+ column [0-9]+ - Warning:/
ok /[0-9]+ warning.+ error.+ found!/
# ignore weird warnings about build variables in Info.plist:
# e.g. "warning: ignoring operator ':rfc1034Identifier' on 'RSWebClientCore' for macro 'PRODUCT_NAME'"
@DimaVartanian
DimaVartanian / working_playground
Created September 24, 2015 23:07
working overload
//: Playground - noun: a place where people can play
import UIKit
enum ParseError: ErrorType
{
case MissingKey(key: String)
case TypeMismatch(expected: String, actual: String)
}
@DimaVartanian
DimaVartanian / playground.swift
Created September 24, 2015 22:53
ambiguous use of overload
//: Playground - noun: a place where people can play
import UIKit
enum ParseError: ErrorType
{
case MissingKey(key: String)
case TypeMismatch(expected: String, actual: String)
}
@DimaVartanian
DimaVartanian / CrashlyticsSwift.Swift
Last active June 8, 2019 10:16
Crashlytics CLS_LOG() in Swift
//
// Created by Dima Vartanian on 10/29/15.
//
import Foundation
import Crashlytics
// this method gives us pretty much the same functionality as the CLS_LOG macro, but written as a Swift function, the only differences are that we have to use array syntax for the argument list and that we don't get see if the method being called is a class method or an instance method. We also have to define the DEBUG compiler flag with -D DEBUG.
/// Usage:
///