Skip to content

Instantly share code, notes, and snippets.

View Zeta611's full-sized avatar
🎯
Focusing

Jay Lee Zeta611

🎯
Focusing
View GitHub Profile
@Zeta611
Zeta611 / CGPoint+offsetBy.swift
Last active January 18, 2021 13:36
[CGPoint+offsetBy] Extends `offsetBy` method to `CGPoint`. #extension #iOS
//
// CGPoint+offsetBy.swift
//
// Created by Jay Lee on 29/01/2019.
// Copyright © 2019 Jay Lee <jaeho.lee@snu.ac.kr>
// This work is free. You can redistribute it and/or modify it under the
// terms of the Do What The Fuck You Want To Public License, Version 2,
// as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
//
@Zeta611
Zeta611 / String+disjointedHangul.swift
Last active July 11, 2022 12:45
[String+disjointedHangul] Extends `disjointedHangul` method to `String` #extension #iOS
//
// String+disjointedHangul.swift
//
// Created by Jay Lee on 08/03/2019.
// Copyright © 2019 Jay Lee <jaeho.lee@snu.ac.kr>
// This work is free. You can redistribute it and/or modify it under the
// terms of the Do What The Fuck You Want To Public License, Version 2,
// as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
//
@Zeta611
Zeta611 / Array+removeRandom.swift
Last active April 8, 2019 15:16
[Array+removeRandom] #extension #iOS
//
// Array+removeRandom.swift
//
// Created by Jay Lee on 31/01/2019.
// Copyright © 2019 Jay Lee <jaeho.lee@snu.ac.kr>
// This work is free. You can redistribute it and/or modify it under the
// terms of the Do What The Fuck You Want To Public License, Version 2,
// as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
//
@Zeta611
Zeta611 / Collection+subscript.swift
Last active April 8, 2019 13:46
[Collection+subscript] Returns the element at the index if it is within range, otherwise `nil` #extension #iOS
//
// Collection+subscript.swift
//
// Created by Jay Lee on 08/04/2019.
// Copyright © 2019 Jay Lee <jaeho.lee@snu.ac.kr>
// This work is free. You can redistribute it and/or modify it under the
// terms of the Do What The Fuck You Want To Public License, Version 2,
// as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
//
@Zeta611
Zeta611 / UIViewController+hideKeyboardWhenTappedAround.swift
Last active April 9, 2019 06:37
[UIViewController+hideKeyboardWhenTappedAround] #extension #iOS
//
// UIViewController+hideKeyboardWhenTappedAround.swift
//
// Created by Jay Lee on 18/02/2019.
// Copyright © 2019 Jay Lee <jaeho.lee@snu.ac.kr>
// This work is free. You can redistribute it and/or modify it under the
// terms of the Do What The Fuck You Want To Public License, Version 2,
// as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
//
@Zeta611
Zeta611 / CustomViewTemplate.swift
Last active August 30, 2019 11:55
[CustomViewTemplate] #iOS #template
//
// CustomView.swift
//
// Created by Jay Lee on 05/05/2019.
// Copyright © 2019 Jay Lee <jaeho.lee@snu.ac.kr>
// This work is free. You can redistribute it and/or modify it under the
// terms of the Do What The Fuck You Want To Public License, Version 2,
// as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
//
@Zeta611
Zeta611 / setup.sh
Last active March 13, 2020 14:27
[setup.sh] #automation
#!/bin/bash
# tput variables
highlight=$(tput setaf 3; tput bold)
alert=$(tput setaf 1)
reset=$(tput sgr0)
# Install Xcode Command Line Tools
echo "${highlight}Installing Xcode Command Line Tools...${reset}"
xcode-select -p > /dev/null
@Zeta611
Zeta611 / GPG and git on macOS.md
Created June 27, 2019 16:26 — forked from danieleggert/GPG and git on macOS.md
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys
@Zeta611
Zeta611 / UIColor+Extensions.swift
Last active August 3, 2019 20:59
[UIColor+Extensions] UIColor extensions #extension #iOS
//
// UIColor+Extensions.swift
//
// Created by Jay Lee on 05/05/2019.
// Copyright © 2019 Jay Lee <jaeho.lee@snu.ac.kr>
// This work is free. You can redistribute it and/or modify it under the
// terms of the Do What The Fuck You Want To Public License, Version 2,
// as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
//
@Zeta611
Zeta611 / KeyboardAvoiding.swift
Created August 14, 2019 06:20
[KeyboardAvoiding] #protocol #iOS
//
// KeyboardAvoiding.swift
//
// Created by Jay Lee on 08/14/2019.
// Copyright © 2019 Jay Lee <jaeho.lee@snu.ac.kr>
// This work is free. You can redistribute it and/or modify it under the
// terms of the Do What The Fuck You Want To Public License, Version 2,
// as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
//