Skip to content

Instantly share code, notes, and snippets.

View harmittaa's full-sized avatar
💻
📲

Matti Mäki-Kihniä harmittaa

💻
📲
View GitHub Profile
@zachrank
zachrank / wsl2-zsh-powerlevel10k.md
Created August 8, 2022 01:43
WSL 2 + Windows Terminal + Oh My Zsh + Powerlevel10k

WSL 2 + Windows Terminal + Oh My Zsh + Powerlevel10k

wsl2-zsh-powerlevel10k

This gist takes heavy inspiration from kevin-smets / iterm2-solarized.md gist for iTerm2.

Windows Subsystem for Linux 2 (WSL 2)

The first thing that you will want to do is install WSL 2 and a Linux distro.

* https://tech.just-eat.com/2019/12/18/modular-ios-architecture-just-eat/
* https://medium.com/flawless-app-stories/a-modular-architecture-in-swift-aafd9026aa99
* https://blog.prototypr.io/architecting-ios-development-at-zomato-cf894a7fa5e3
* https://tech.olx.com/modular-architecture-in-ios-c1a1e3bff8e9
* https://benoitpasquier.com/how-build-modular-architecture-ios/
* https://github.com/kudoleh/iOS-Modular-Architecture
* https://medium.com/freelancer-engineering/modular-architecture-on-ios-and-how-i-decreased-build-time-by-50-23c7666c6d2f
* https://engineering.depop.com/scaling-up-an-ios-app-with-modularisation-8cd280d6b2b8
* https://academy.realm.io/posts/modular-ios-apps/
* https://eng.uber.com/uber-freight-app-architecture-design/
@ankushg
ankushg / BaseRobolectricUnitTest.kt
Created April 6, 2018 23:26
ShadowResourcesCompat
import com.ankushg.example.BuildConfig
import com.ankushg.example.shadows.ShadowResourcesCompat
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
import org.robolectric.RuntimeEnvironment
import org.robolectric.Shadows
import org.robolectric.annotation.Config
@IanKeen
IanKeen / ControlEventBindable.swift
Last active June 4, 2022 23:18
Easy closure based access to UIControl events (instead of target/action)
protocol ControlEventBindable: class { }
extension UIControl: ControlEventBindable { }
extension UIBarButtonItem: ControlEventBindable { }
private struct Keys {
static var EventHandlers = "_EventHandlers"
}
// MARK: - Implementation
@AdamIsrael
AdamIsrael / README.md
Last active May 20, 2019 02:44
Installing Juju 2.0 on Centos7

Juju 2.0 on Centos7

Configure epel repository

yum -y install epel-release
yum repolist

Install LXD

@jkereako
jkereako / PrintDataAsString.swift
Last active July 27, 2024 06:53
LLDB commands to print a Data object as a String. It only works if the underlying data is actually a String.
// See: http://stackoverflow.com/questions/11531353/viewing-nsdata-contents-in-xcode#25097265
po String(data: data, encoding: .utf8)
// Objective-C equivalent.
// See: http://stackoverflow.com/questions/11531353/viewing-nsdata-contents-in-xcode#19626815
// p (char *)[buffer bytes]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@swankjesse
swankjesse / HostSelectionInterceptor.java
Last active May 17, 2024 19:11
This OkHttp application interceptor will replace the destination hostname in the request URL.
import java.io.IOException;
import okhttp3.HttpUrl;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
import okhttp3.Request;
/** An interceptor that allows runtime changes to the URL hostname. */
public final class HostSelectionInterceptor implements Interceptor {
private volatile String host;