Skip to content

Instantly share code, notes, and snippets.

View devmjun's full-sized avatar
🤔
 ( ͡°⁄ ⁄ ͜⁄ ⁄ʖ⁄ ⁄ ͡°) 

Minjun Ju(Leo) devmjun

🤔
 ( ͡°⁄ ⁄ ͜⁄ ⁄ʖ⁄ ⁄ ͡°) 
View GitHub Profile
@devmjun
devmjun / resetXcode.sh
Created January 22, 2021 02:13 — forked from maciekish/resetXcode.sh
Reset Xcode. Clean, clear module cache, Derived Data and Xcode Caches. You can thank me later.
#!/bin/bash
killall Xcode
xcrun -k
xcodebuild -alltargets clean
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache"
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf ~/Library/Caches/com.apple.dt.Xcode/*
open /Applications/Xcode.app
@devmjun
devmjun / I'm an early 🐤
Last active October 29, 2020 00:15
I'm an early
🌞 Morning 1023 commits █████████▉░░░░░░░░░░░ 47.5%
🌆 Daytime 657 commits ██████▍░░░░░░░░░░░░░░ 30.5%
🌃 Evening 102 commits ▉░░░░░░░░░░░░░░░░░░░░ 4.7%
🌙 Night 371 commits ███▌░░░░░░░░░░░░░░░░░ 17.2%
@devmjun
devmjun / Xcode 10 Dark.xccolortheme
Created March 7, 2020 16:02
Xcode 10 dark theme(~/Library/Developer/Xcode/UserData/FontAndColorThemes/)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0.999999 0.999974 0.999991 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>SFMono-Bold - 12.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>0.999999 0.999974 0.999991 1</string>
@devmjun
devmjun / iterable_enum_case.swift
Created December 6, 2019 02:20
iterable enum case
public protocol EnumCollection: Hashable {
static func cases() -> AnySequence<Self>
static var allValues: [Self] { get }
}
public extension EnumCollection {
public static func cases() -> AnySequence<Self> {
return AnySequence { () -> AnyIterator<Self> in
var raw = 0
@devmjun
devmjun / AllFont.swift
Created August 7, 2019 07:22
print All Font list
for family in UIFont.familyNames {
let sName: String = family as String
print("family: \(sName)")
for name in UIFont.fontNames(forFamilyName: sName) {
print("name: \(name as String)")
let customFont = UIFont(name: name, size: 11)
print("font is nil?: \(customFont)")
}
//
// MinusKeyPadTextField.swift
// DecimalMinusDemo
//
// Created by MinjunJu on 06/08/2019.
// Copyright © 2019 Jonathan Engelsma. All rights reserved.
//
import UIKit
/
// ViewController.swift
// WebView-Optimization
//
// Created by Kent Winder on 06/01/2018.
//
import UIKit
import WebKit
class ViewController: UIViewController {