Skip to content

Instantly share code, notes, and snippets.

View GUIEEN's full-sized avatar
💭
美しい未来に

Seung Kwak GUIEEN

💭
美しい未来に
  • tokyo
View GitHub Profile
@GUIEEN
GUIEEN / README.md
Created January 2, 2020 11:51 — forked from kasperpeulen/README.md
How to pretty-print JSON using Dart.
ACTION = build
AD_HOC_CODE_SIGNING_ALLOWED = NO
ALTERNATE_GROUP = staff
ALTERNATE_MODE = u+w,go-w,a+rX
ALTERNATE_OWNER = grantdavis
ALWAYS_SEARCH_USER_PATHS = NO
ALWAYS_USE_SEPARATE_HEADERMAPS = YES
APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer
APPLE_INTERNAL_DIR = /AppleInternal
APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation
@GUIEEN
GUIEEN / base64.js
Created May 7, 2020 17:02 — forked from chrisveness/base64.js
Encode/decode ASCII string to/from base64
/**
* Encode string into Base64, as defined by RFC 4648 [http://tools.ietf.org/html/rfc4648].
* As per RFC 4648, no newlines are added.
*
* Characters in str must be within ISO-8859-1 with Unicode code point <= 256.
*
* Can be achieved JavaScript with btoa(), but this approach may be useful in other languages.
*
* @param {string} str ASCII/ISO-8859-1 string to be encoded as base-64.
* @returns {string} Base64-encoded string.
@GUIEEN
GUIEEN / memoryAddress.swift
Created March 16, 2021 06:07 — forked from matsuda/memoryAddress.swift
Get memory address in Swift
///
/// https://stackoverflow.com/a/29741007
///
let s = Struct() // Struct
withUnsafePointer(to: s) {
print(String(format: "%p", $0)
}
///
/// http://stackoverflow.com/a/36539213/226791
func performUsingGroup() {
let dq1 = DispatchQueue.global(qos: .default)
let dq2 = DispatchQueue.global(qos: .default)
let group = DispatchGroup()
for i in 1...3 {
dq1.async(group: group) {
print("\(#function) DispatchQueue 1: \(i)")
}
}
@GUIEEN
GUIEEN / AVPlayer+Scrubbing.swift
Created August 4, 2021 18:43 — forked from shaps80/AVPlayer+Scrubbing.swift
Enables smooth frame-by-frame scrubbing (in both directions) – similar to Apple's applications.
public enum Direction {
case forward
case backward
}
internal var player: AVPlayer?
private var isSeekInProgress = false
private var chaseTime = kCMTimeZero
private var preferredFrameRate: Float = 23.98
@GUIEEN
GUIEEN / ogl_osx.md
Created June 8, 2022 06:55 — forked from v3n/ogl_osx.md
GLFW on OS X starting guide

OpenGL Development on OS X

While it's possible to download packages and install them manually, it's such a hassle. Fortunately for us, OS X has an unofficial package manager called http://brew.sh Let's install it. Open you Terminal and paste the following code:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Great. Homebrew will automatically install packages to /usr/local. Conveniently, that directory is already in your include and link paths.

@GUIEEN
GUIEEN / gist:35f2f3e257ab281f7c54e405e83535bb
Created November 17, 2022 08:04 — forked from iyuuya/gist:3231301
Objective-C における @Property@synthesize の簡単な説明
// ------------------------------------------------------------------------ //
#pragma mark - 定義ファイル側
@interface SomeClass : NSObject
{
// ここにメンバ変数を定義できるが、しなくてもよい
// (@synthesize 時に実体となる変数を定義できるため)
NSObject *_apple; // メンバ変数 _apple を定義しておく (後の例示の為)
}
@GUIEEN
GUIEEN / riot_esports_api.md
Created November 18, 2022 15:29 — forked from levi/riot_esports_api.md
Riot LoL eSports Unofficial API Documentation