Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Jay Lee Zeta611

🎯
Focusing
Block or report user

Report or block Zeta611

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Zeta611
Zeta611 / UIBarButtonItem+Badge.swift
Last active Aug 30, 2019 — forked from freedom27/UIBarButtonItem+Badge.swift
[UIBarButtonItem+Badge] #iOS #extension
View UIBarButtonItem+Badge.swift
//
// UIBarButtonItem+Badge.swift
//
// Created by Jaeho Lee on 30/08/2019.
// Copyright © 2019 Jay Lee <jaeho.lee@snu.ac.kr>
//
// Original Source:
// https://gist.github.com/freedom27/c709923b163e26405f62b799437243f4
//
@Zeta611
Zeta611 / sieve.c
Last active Aug 30, 2019
[Sieve of Eratosthenes in C] #algorithm
View sieve.c
/**
* sieve.c
*
* Created by Jay Lee on 08/25/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 / ViewController.swift
Last active Aug 30, 2019
[ViewController Template] #iOS #template
View ViewController.swift
//
// ViewController.swift
//
// Created by Jay Lee on 08/23/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 Aug 14, 2019
[KeyboardAvoiding] #protocol #iOS
View KeyboardAvoiding.swift
//
// 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.
//
@Zeta611
Zeta611 / UIColor+Extensions.swift
Last active Aug 3, 2019
[UIColor+Extensions] UIColor extensions #extension #iOS
View UIColor+Extensions.swift
//
// 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 / GPG and git on macOS.md
Created Jun 27, 2019 — forked from danieleggert/GPG and git on macOS.md
How to set up git to use the GPG Suite
View GPG and git on macOS.md

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 / setup.sh
Last active Jun 15, 2019
[setup.sh] #shellscript
View setup.sh
#!/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 / CustomViewTemplate.swift
Last active Aug 30, 2019
[CustomViewTemplate] #iOS #template
View CustomViewTemplate.swift
//
// 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 / UIViewController+hideKeyboardWhenTappedAround.swift
Last active Apr 9, 2019
[UIViewController+hideKeyboardWhenTappedAround] #extension #iOS
View UIViewController+hideKeyboardWhenTappedAround.swift
//
// 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 / Collection+subscript.swift
Last active Apr 8, 2019
[Collection+subscript] Returns the element at the index if it is within range, otherwise `nil` #extension #iOS
View Collection+subscript.swift
//
// 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.
//
You can’t perform that action at this time.