Skip to content

Instantly share code, notes, and snippets.

default_platform :ios
platform :ios do
before_all do
#reset git
setup_jenkins()
reset_git_repo(force: true)
end
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>REMINDER_PREVIEW_FORMAT</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>Take %1$#@lu_pills@ at %2$@</string>
<key>lu_total_runs</key>
<dict>
@dodikk
dodikk / Localisable.stringsdict
Last active April 1, 2016 16:39
[localization] Plurals and strings
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>REMINDER_PREVIEW_FORMAT</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>Take %1$#@lu_pills@ at %2$@</string>
<key>lu_pills</key>
@dodikk
dodikk / ClientCode.mm
Last active April 6, 2016 17:23
NSError polymorphism approach example
#import <NSError+UserFriendly.h>
-(void)onMyNewsLoadingCompleted:(id)maybeResult
error:(NSError*)maybeError
{
[error presentAlertToTheUser];
}
@dodikk
dodikk / MobileToolsComparison.md
Last active April 8, 2016 11:25
Xamarin vs. PhoneGap vs. Titanium
Tool Programming Language Build approach UI approach Unit testing
PhoneGap HTML/CSS/JavaScript Runs in UIWebView UI looks the same on all platforms [?] Unit testing
Xamarin (vanilla) C# Generates native code Separate UI with native controls [x] Unit testing
Xamarin.Forms C# Generates native code Attempts to follow guidelines [x] Unit testing
Titanium HTML/CSS/JavaScript Generates native code UI looks the same on all platforms
@dodikk
dodikk / build-log.txt
Last active April 20, 2016 15:26
Fastlane scan buitd output
fastlane unit_tests
[18:26:01]: -------------------------------------------------
[18:26:01]: --- Step: Verifying required fastlane version ---
[18:26:01]: -------------------------------------------------
[18:26:01]: fastlane version valid
[18:26:01]: ------------------------------
[18:26:01]: --- Step: default_platform ---
[18:26:01]: ------------------------------
[18:26:01]: Driving the lane 'ios unit_tests' 🚀
[18:26:01]: -------------------------------------
@dodikk
dodikk / chart-requirements.md
Last active September 7, 2016 15:44
Requirements for charting lib discussion
  1. Series
    • line
    • dash line
    • dot (circle)
  2. Logarythmic scale [50; 100; 1K; 10K; 100K; 1M+]
  3. Date axis
  4. Number acronyms for scale
  5. axis names
  6. background grid
@dodikk
dodikk / ProtocolTest.swift
Last active December 1, 2016 15:40
protocol and associated type test
//: Playground - noun: a place where people can play
import UIKit
protocol A
{
associatedtype SomeType
var a : SomeType { get }
}
@dodikk
dodikk / about_swift.txt
Created December 1, 2016 16:47
about swift language
“под try мы подразумеваем не то, что вы думаете, а совсем другую хуйню. И похуй, что называется одинаково”
associatedtype - не generic, хотя похоже. Сорян пацаны, не конфузьтесь
protocol - только отчасти интерфейс, мы не виноваты.
@dodikk
dodikk / HPQuizRouter.h
Last active December 13, 2016 11:19
MVVM router example
@interface HPQuizRouter
- (void)navigateToSelectedQuiz:(id<HPQuizState>)quizState from:(UIViewController*)screen;
- (void)prepareForSegue:(UIStoryboardSegue*)segue sender:(id)sender;
@end