Skip to content

Instantly share code, notes, and snippets.

@dodikk
dodikk / StackTrace.txt
Created March 27, 2017 15:42 — forked from soxjke/StackTrace.txt
RaceCondition2
Thread 5Queue : com.apple.root.user-initiated-qos (concurrent)
#0 0x000000010f181d2b in objc_release ()
#1 0x000000010f1831d1 in (anonymous namespace)::AutoreleasePoolPage::pop(void*) ()
#2 0x00000001125037ce in _dispatch_root_queue_drain ()
#3 0x0000000112503059 in _dispatch_worker_thread3 ()
#4 0x00000001128cb4de in _pthread_wqthread ()
#5 0x00000001128c9341 in start_wqthread ()
@dodikk
dodikk / 1.md
Created March 13, 2017 10:56
Carthage Time Workaround

Carthage/Carthage#342

I'm not sure if this helps the discussion but I ended up creating a Run Script before Compilation phase in XCode that simply checks a few points. I also exclude the mentioned Carthage/.Cartfile.resolved file from my repo via my .gitignore file. Conditions the script checks:

If Carthage/Build directory exists
If the file Carthage/.Cartfile.resolved exists
If the files Cartfile.resolved and Carthage/.Cartfile.resolved don't differ
@dodikk
dodikk / 1.md
Created March 13, 2017 10:56
Carthage Time Workaround

Carthage/Carthage#342

I'm not sure if this helps the discussion but I ended up creating a Run Script before Compilation phase in XCode that simply checks a few points. I also exclude the mentioned Carthage/.Cartfile.resolved file from my repo via my .gitignore file. Conditions the script checks:

If Carthage/Build directory exists
If the file Carthage/.Cartfile.resolved exists
If the files Cartfile.resolved and Carthage/.Cartfile.resolved don't differ
import Foundation
infix operator +=! { associativity right precedence 90 } // Int32 or Int64
infix operator -=! { associativity right precedence 90 } // Int32 or Int64
postfix operator ++! {} // Int32 or Int64
postfix operator --! {} // Int32 or Int64
infix operator |=! { associativity right precedence 90 } // UInt32
infix operator &=! { associativity right precedence 90 } // UInt32
@dodikk
dodikk / build_log.txt
Last active March 2, 2017 11:26
fastlane lcov error
$ fastlane run_unit_tests
[13:19:04]: -------------------------------------------------
[13:19:04]: --- Step: Verifying required fastlane version ---
[13:19:04]: -------------------------------------------------
[13:19:04]: Your fastlane version 2.19.1 matches the minimum requirement of 2.19.1 ✅
[13:19:04]: ------------------------------
[13:19:04]: --- Step: default_platform ---
[13:19:04]: ------------------------------
[13:19:04]: Driving the lane 'ios run_unit_tests' 🚀
[13:19:04]: ------------------
@dodikk
dodikk / guidelines_ru.txt
Created February 15, 2017 14:16
Cocoa Chat Guidelines
1. Картинки drag&drop-ом не кидать - можно только ссылками на облако
2. код - pastebin/gist/etc. (разве что очень короткий кусок можно inline)
3. не “хантить” (limit в 1 сообщение в день)
4. название и иконку чата не менять
@dodikk
dodikk / filter_distinct_contributors.py
Last active January 4, 2017 14:31
Get the list of project contributors by parsing the manually collected SublimeText search results
#!/usr/bin/python
lineIndex = 0
result = []
with open ("contributors-raw.txt") as f:
for line in f.readlines():
@dodikk
dodikk / HPLabRepositoryRealm.h
Created December 30, 2016 12:14
Realm Wrapper Example
@interface HPLabRepositoryRealm : NSObject <HPLabModelRepository>
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype) new NS_UNAVAILABLE;
- (instancetype)initWithRealm:(RLMRealmBuilderBlock)realmBuilder
operationQueue:(dispatch_queue_t)queue
NS_REQUIRES_SUPER
NS_DESIGNATED_INITIALIZER
__attribute__((nonnull));