Skip to content

Instantly share code, notes, and snippets.

Avatar

Yunarta Kartawahyudi yunarta

  • Singtel
  • Singapore
View GitHub Profile
View EnterpriseRepository.gradle
class EnterpriseRepositoryPlugin implements Plugin<Gradle> {
void apply(Gradle gradle) {
println("EnterpriseRepositoryPlugin")
}
}
ext.applyEnterprisePlugin = { gradle ->
gradle.apply plugin: EnterpriseRepositoryPlugin
}
View publishing.gradle
import java.util.logging.Level
apply plugin: "maven"
apply plugin: "maven-publish"
def publishOpts = [
"kotlin" : false,
"android" : "false",
"androidProject" : false,
"androidApplication": false,
View gist:7ba453df7bb17dcd4474e6c0d323ed35
//: Playground - noun: a place where people can play
import UIKit
import RxSwiftTest
import RxSwift
func api1() -> Observable<String> {
return Observable.create{ (subscriber) -> Disposable in
print("api1 called")
subscriber.onNext("api1 #1")
View optional.yml
included:
- Gate-iOS/Gate-iOS
- SwiftVIPER/SwiftVIPER
disabled_rules:
- line_length
- identifier_name
- trailing_whitespace
- trailing_newline
- vertical_parameter_alignment
@yunarta
yunarta / Test.swift
Last active Jan 15, 2018
Generic and optional obj-c method
View Test.swift
import Foundation
@objc protocol One: NSObjectProtocol {
@objc optional func method()
}
class NoGenericBase: NSObject, One { }
class NoGenericImpl: NoGenericBase {
func method() { print("second method") }
View Delegate.swift
class EndPoint {
}
protocol API {
func login()
}
class APIVersionOne: API {
View Localize.podspec
Pod::Spec.new do |s|
s.authors = "Re:Build"
s.homepage = "none"
s.summary = "Re:Build of Localize"
s.name = "Localize"
s.version = "1.5.2"
s.ios.deployment_target = '8.0'
s.source = { :path => "" }