Skip to content

Instantly share code, notes, and snippets.

@saish98
saish98 / .zshrc
Last active April 12, 2023 11:15
Setup New Macbook Pro
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="robbyrussell"
# Uncomment one of the following lines to change the auto-update behavior
//
// UIViewController.swift
//
//
// Created by Saish Chachad.
//
import UIKit
extension UIViewController {
@saish98
saish98 / Kingfisher+Svg.swift
Created June 24, 2022 07:39
Svg image download from url
//
// Kingfisher+Svg.swift
// Created by Saish Chachad on 23/06/22.
//
import UIKit
import Kingfisher
import PocketSVG
@saish98
saish98 / kvcDemo.md
Last active August 29, 2015 14:27 — forked from TonnyXu/kvcDemo.md
using KVC on collection objects like NSArray and NSDictionary.

KVCを使えば、このようなコードが自動的に値を計算してくれる。

KVC with special keyPath is really powerful for collection objects like NSArray and NSDictionary and NSSet

AppleのDocを見る

@max, @min, @sum, @avg

Sample 1 : One of the element in the array does not contain height property