Skip to content

Instantly share code, notes, and snippets.

import Amplitude_iOS
import Foundation
import ReactiveSwift
import UIKit
public final class AmplitudeUserPropertiesUpdater {
private enum Constants {
static let keyPrefix = "remoteSettings"
static let applicationStateKey = "applicationState"
import Foundation
import StoreKit
final class ProductPriceConverter {
func convertPrice(
_ price: NSDecimalNumber,
from fromUnit: SKProduct.PeriodUnit,
fromNumberOfUnits: Int,
to toUnit: SKProduct.PeriodUnit,
@larryonoff
larryonoff / vs-code-settings
Created August 15, 2019 04:55
VS Code Settings
1
//
// ReadinessSummaryReducerFactory.swift
// RocketHealthKitUI
//
// Created by Ilya Laryionau on 24/07/2019.
// Copyright © 2019 RocketBody. All rights reserved.
//
enum ReadinessSummaryAction: ActionProtocol {
import Foundation
import ReactiveSwift
public protocol ActionProtocol {}
public protocol ViewStateProtocol {}
public typealias Reducer<ViewState: ViewStateProtocol> = SignalProducer<ViewState, Never>
open class ReducerFactory<Action: ActionProtocol, ViewState: ViewStateProtocol> {
@larryonoff
larryonoff / fix-cocoapods.rb
Last active September 16, 2018 11:27
CocoaPods sample to fix compilation
post_install do |installer|
targetsMap = {
'4.0': [
'BetterSegmentedControl',
'Dwifft',
'JTAppleCalendar',
'MessageKit',
'PKHUD',
'RxCocoa',
@larryonoff
larryonoff / wwdc15.md
Created September 23, 2016 08:42 — forked from mackuba/wwdc15.md
New stuff from WWDC 2015

Here's my own list of the interesting stuff announced during this year's WWDC, collected from the keynotes, various Apple docs, blog posts and tweets.

If you're planning to watch the videos, I really recommend this Mac app that helps you download and watch them: https://github.com/insidegui/WWDC.

OS X El Capitan

http://www.apple.com/osx/elcapitan-preview/

  • split view - two apps side by side on full screen
@larryonoff
larryonoff / Breakpoints_v2.xcbkptlist
Created August 22, 2016 09:43 — forked from Ashton-W/Breakpoints_v2.xcbkptlist
My User Breakpoints_v2.xcbkptlist
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "2"
version = "2.0">
<Breakpoints>
<!-- All Exceptions -->
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint">
<BreakpointContent
@larryonoff
larryonoff / wwdc16.md
Created July 15, 2016 20:00 — forked from mackuba/wwdc16.md
New stuff from WWDC 2016

Following the tradition from last year, here's my complete list of all interesting features and updates I could find in Apple's OSes, SDKs and developer tools that were announced at this year's WWDC. This is based on the keynotes, the "What's New In ..." presentations and some others, Apple's release notes, and blog posts and tweets that I came across in the last few weeks.

If for some reason you haven't watched the talks yet, I really recommend watching at least the "State of the Union" and the "What's New In" intros for the platforms you're interested in. The unofficial WWDC Mac app is great way to download the videos and keep track of what you've already watched.

If you're interested, here are my WWDC 2015 notes (might be useful if you're planning to drop support for iOS 8 now and start using some iOS 9 APIs).


OSX → macOS 10.12 Sierra

lane :changelog do
last_build_commit = sh("git log -g --pretty='%h' --grep='Version Bump' -1")
changelog = changelog_from_git_commits(
between: ['#{last_build_commit}', 'HEAD']
)
end