Skip to content

Instantly share code, notes, and snippets.

View ElonPark's full-sized avatar
๐Ÿ“ฑ
๏ฃฟ iOS Software Engineer

Elon Park ElonPark

๐Ÿ“ฑ
๏ฃฟ iOS Software Engineer
View GitHub Profile
@ElonPark
ElonPark / GitCommitEmoji.md
Created February 11, 2019 18:32 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji

Inspired by dannyfritz/commit-message-emoji

See also gitmoji.

Commit type Emoji
Initial commit ๐ŸŽ‰ :tada:
Version tag ๐Ÿ”– :bookmark:
New feature โœจ :sparkles:
Bugfix ๐Ÿ› :bug:
@ElonPark
ElonPark / Logger.swift
Last active August 21, 2019 07:53
๊ฐ„๋‹จํ•œ ๋กœ๊ทธ ํ”„๋ฆฐํŠธ์šฉ
//
// Logger.swift
//
//
// Created by Elon on 23/01/2019.
// Copyright ยฉ 2019 Elon. All rights reserved.
//
import Foundation
func euckrEncoding(_ query: String) -> String { //EUC-KR ์ธ์ฝ”๋”ฉ
let rawEncoding = CFStringConvertEncodingToNSStringEncoding(CFStringEncoding(CFStringEncodings.EUC_KR.rawValue))
let encoding = String.Encoding(rawValue: rawEncoding)
let eucKRStringData = query.data(using: encoding) ?? Data()
let outputQuery = eucKRStringData.map {byte->String in
if byte >= UInt8(ascii: "A") && byte <= UInt8(ascii: "Z")
|| byte >= UInt8(ascii: "a") && byte <= UInt8(ascii: "z")
|| byte >= UInt8(ascii: "0") && byte <= UInt8(ascii: "9")
@ElonPark
ElonPark / gist:4040787393fd16db2d2c5d576e6177e1
Created March 21, 2018 09:25 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue:
@ElonPark
ElonPark / duplicate_xcode_project_target.rb
Last active February 6, 2018 09:28 — forked from ratazzi/duplicate_xcode_project_target.rb
Duplicate Xcode Project Target with Ruby
#!/usr/bin/env ruby
require 'rubygems'
require 'xcodeproj'
name = 'test_copy'
proj_path = 'test.xcodeproj'
proj = Xcodeproj::Project.open(proj_path)
src_target = proj.targets.last #find { |item| item.to_s == 'test' }
@ElonPark
ElonPark / createWebViewWith.swift
Last active November 20, 2023 09:28
WKWebView์—์„œ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋กœ window.open(), window.close() ํ•˜๋Š” ๊ฒฝ์šฐ ์ฒ˜๋ฆฌ
/** - ์ƒˆ์ฐฝ ์—ด๊ธฐ, ๋‹ซ๊ธฐ ์˜ˆ์ œ **/
///๋ฉ”์ธ์œผ๋กœ ์‚ฌ์šฉ์ค‘์ธ ์›น๋ทฐ
lazy var webView = WKWebView()
///window.open()์œผ๋กœ ์—ด๋ฆฌ๋Š” ์ƒˆ์ฐฝ
var createWebView: WKWebView?
func webView(_ webView: WKWebView, createWebViewWith configuration: WKWebViewConfiguration, for navigationAction: WKNavigationAction, windowFeatures: WKWindowFeatures) -> WKWebView? {
@ElonPark
ElonPark / reject.md
Last active May 31, 2017 07:25
์• ํ”Œ ๋ฆฌ์  ์‚ฌํ•ญ

PLA 1.2 ๋ฆฌ์ ์— ๊ด€ํ•˜์—ฌ

Apple์˜ ๋ฉ”์‹œ์ง€

  1. 10.0 Before You Submit: Program License Agreement (iOS) >