Skip to content

Instantly share code, notes, and snippets.

View cojoj's full-sized avatar

Mateusz Zając cojoj

View GitHub Profile
@cojoj
cojoj / cloudSettings
Created December 5, 2016 11:40 — forked from orta/cloudSettings
Visual Studio code settings
{"lastUpload":"2016-12-05T11:30:54.693Z"}
@cojoj
cojoj / list.md
Last active November 19, 2020 08:04
Number of people working on iOS apps

Purpose of this list is to gather a source of information on how many people are working on iOS application.
I often wonder how many people are behind Facebook's app or Twitter's. If you're as curious as me, please share and please add apps 😉.

* - it's a rumoured value only. Needs confirmation from someone inside the company.

  1. Fishbrain - 3
  2. Artsy - 5
  3. Truecaller - 5
  4. Lifesum - 4 or 5
  5. Spotify - 50*
@cojoj
cojoj / 1.swift
Last active April 15, 2017 20:24
func viewDidLoad() {
super.viewDidLoad()
configureBasicStuff()
prepareSomeFood()
if production {
configureSomeFancyProperties()
} else {
showMeSomeMemes()
func viewDidLoad() -> Void {
super.viewDidLoad()
configureBasicStuff() -> Void
prepareSomeFood() -> Void
if production {
configureSomeFancyProperties() -> Void
} else {
showMeSomeMemes() -> Void
func configureBasicStuff() {
doSomeMagic()
networkingManager = SuperDuperNetworking.sharedInstance()
for constraint in textConstraints {
constraints.append(LayoutConstraint(constraint))
}
label.text = "This is wrong!".uppercaseString
label.font = UIFont(name: "CirceBold", size: 11)
// This gist is to show you how I was able to _finally_ marry MVVM-C with Storyboards.
// There are quite some tutorials on this architecture, but majority of devs choose Xibs instaed of Storyboards.
// I get their point, but... Xibs to me feel like 1984 😜
//
// I started working on this new app, and I've decided to go with coordinators + MVVM as it's seems like a fair
// compromise between modularity, extendability and simplicity, so I started laying out everything in code + Storyboards.
// I've done it before, so I knew that Storyboards in this case will serve as a **containers** for app modules like:
// + Main
// + Auth
// + Camera
@cojoj
cojoj / testArchitecture.swift
Last active January 10, 2019 11:56
This is a test MVVHP architecture. It's just a proof of concept.
import UIKit
// We need a definition of a Presenter.
// It'll have associated type for handler, propety of this type and a possibility to
// bind a View Handler.
protocol Presenter {
associatedtype ViewHandler: BaseViewHandler
var viewHandler: ViewHandler? { get set }
mutating func bind(handler: ViewHandler)
}
@cojoj
cojoj / xmas.py
Created December 30, 2022 12:28
Christmas Tree (with ornaments, star and gifts) written in Python Turtle
import random
import turtle
def initialize_screen():
screen = turtle.Screen()
screen.title = "Xmas Tree by Tomasz Kita"
screen.bgcolor("sky blue")
screen.colormode(255)