Skip to content

Instantly share code, notes, and snippets.

View dsdstudio's full-sized avatar
๐ŸŽน
Focusing

Bohyung kim dsdstudio

๐ŸŽน
Focusing
View GitHub Profile
@dsdstudio
dsdstudio / Apple_mobile_device_types.txt
Created December 22, 2019 14:12 — forked from adamawolf/Apple_mobile_device_types.txt
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
iPhone5,1 : iPhone 5 (GSM)
@dsdstudio
dsdstudio / ff2cv.cpp
Created February 23, 2019 15:12 — forked from yohhoy/ff2cv.cpp
Read video frame with FFmpeg and convert to OpenCV image
/*
* Read video frame with FFmpeg and convert to OpenCV image
*
* Copyright (c) 2016 yohhoy
*/
#include <iostream>
#include <vector>
// FFmpeg
extern "C" {
#include <libavformat/avformat.h>
@dsdstudio
dsdstudio / README.md
Created October 13, 2018 16:49 — forked from steve-jansen/README.md
Stop and start Symantec Endpoint Protection on OS X

This script enables you stop and start Symantec Endpoint Protection on OS X

Installation

sudo curl https://gist.githubusercontent.com/steve-jansen/61a189b6ab961a517f68/raw/sep -o /usr/local/bin/sep
sudo chmod 755 /usr/local/bin/sep
sudo chown root:staff /usr/local/bin/sep

Note

Apple will reject apps that are using private url schemes (Ugh, Apple....) if they are pretty much obvius. Some apps are rejected and others are not, so, be aware of this issue before implementing any of those URL's in your app as a feature.

Updates

  • [UPDATE 4] iOS 10 update: apparently settings now can be reached using App-Pref instead of prefs
  • [UPDATE 3] For now you just can use url schemes to open your apps's settings with Swift 3.0 (Xcode 8). I'll keep you informed when OS preferences can be reached
  • [UPDATE 2] The openURL() method of UIApplication is now deprecated. You should use application(_:open:options:) instead
  • [UPDATE 1] Not yet tested in iOS 10. It will fail because of policies changes in URL scheme handling.
@dsdstudio
dsdstudio / GLSL-Noise.md
Created June 8, 2018 06:03 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}
@dsdstudio
dsdstudio / Animation.md
Created September 25, 2017 15:33 — forked from JeOam/Animation.md
iOS Core Animation: Advanced Techniques, Part 1: The Layer Beneath

1. The Layer Tree

Core Animation's original name is Layer Kit

Core Animation is a compositing engine; its job is to compose different pieces of visual content on the screen, and to do so as fast as possible. The content in question is divided into individual layers stored in a hierarchy known as the layer tree. This tree forms the underpinning for all of UIKit, and for everything that you see on the screen in an iOS application.

In UIView, tasks such as rendering, layout and animation are all managed by a Core Animation class called CALayer. The only major feature of UIView that isnโ€™t handled by CALayer is user interaction.

There are four hierarchies, each performing a different role:

  • view hierarchy
  • layer tree
@dsdstudio
dsdstudio / introrx.md
Created November 27, 2016 11:23 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@dsdstudio
dsdstudio / ๊ธฐ์ˆ  ๋ฌธ์„œ๋ฅผ ์“ธ ๋•Œ ์ฃผ์˜ํ•ด์•ผ ํ•  ๋ช‡ ๊ฐ€์ง€.md ๊ธฐ์ˆ  ๋ฌธ์„œ๋ฅผ ์“ธ ๋•Œ ์ฃผ์˜ํ•ด์•ผ ํ•  ๋ช‡ ๊ฐ€์ง€๋ฅผ ๋‚˜์—ดํ•ฉ๋‹ˆ๋‹ค.

๊ธฐ์ˆ  ๋ฌธ์„œ๋ฅผ ์“ธ ๋•Œ ์ฃผ์˜ํ•ด์•ผ ํ•  ๋ช‡ ๊ฐ€์ง€

ํ…์ŠคํŠธ ํŒŒ์ผ์˜ ์žฅ์ 

์ž์‹ ์ด ํ•˜๋Š” ์ผ์ด ์†Œ๋ชจ์ ์ธ ์ผํšŒ์„ฑ์˜ ์ผ์ด ์•„๋‹ˆ๋ผ๊ณ  ์—ฌ๊ธด๋‹ค๋ฉด ์œ„ํ‚ค์— ๊ธ€์„ ์ž‘์„ฑํ•ด์„œ ๋ณดํŽธ์ ์ธ ๋ฐฉ์‹์œผ๋กœ ๊ณต์œ ํ•˜๋ผ. ๊ธ€์„ ์ฝ๊ณ  ์˜๋ฌธ์ด ์ƒ๊ธฐ๋Š” ๊ฒƒ์— ๋Œ€ํ•œ ํ† ๋ก ์€ ๊ธ€ ์•ˆ์—์„œ ์ด๋ฃจ์–ด์ง€๋Š” ๊ฒƒ์ด ์ข‹๋‹ค. ์ค‘์š”ํ•œ ์ •๋ณด๋ฅผ ์œ„ํ‚ค ํ˜น์€ RCS, Git ๋“ฑ์œผ๋กœ ๊ด€๋ฆฌ๋˜๋Š” ํ…์ŠคํŠธ๊ฐ€ ์•„๋‹Œ, ์›Œ๋“œ, ํŒŒ์›Œํฌ์ธํŠธ ๋“ฑ์˜ ์ด์ง„ ๋ฌธ์„œ๋กœ ์ž‘์„ฑํ•ด์„œ ์˜ฌ๋ฆด ๋•Œ๋งˆ๋‹ค ๋‹น์‹ ์˜ ๋™๋ฃŒ๋Š” ๊ทธ ์ •๋ณด์— ๋Œ€ํ•œ ์ ‘๊ทผ์„ฑ, ๊ฐ€์‹œ์„ฑ, ๋ฒ„์ „ ๊ด€๋ฆฌ ๋ฌธ์ œ๋กœ ๊ณ ํ†ต์„ ๊ฒช์„ ๊ฒƒ์ด๋‹ค.

๋ช…์ง•ํ•œ ์†Œ์žฌ

์žก๋‹คํ•œ ์†Œ์žฌ๊ฐ€ ํ•˜๋‚˜์˜ ๊ธ€์— ๋‹ค ๋“ค์–ด๊ฐ€ ์žˆ์œผ๋ฉด ์žฌํ™œ์šฉ์„ฑ, ์ ‘๊ทผ์„ฑ, ๋ฐœ์ „ ๊ฐ€๋Šฅ์„ฑ์ด ๋–จ์–ด์ง„๋‹ค. ์ž๊ธฐ์™„๊ฒฐ์ ์ธ ํ•ญ๋ชฉ๋“ค๋กœ ํŽ˜์ด์ง€๋ฅผ ๋‚˜๋ˆ”์œผ๋กœ์จ ์ •๋ณด๋กœ์„œ์˜ ๊ฐ€์น˜๊ฐ€ ๋” ์ปค์ง„๋‹ค. ๋‚˜์ค‘์— ๋‚˜๋ˆŒ ์˜ํ–ฅ์œผ๋กœ ์ผ๋‹จ ์“ฐ๊ณ  ๋ณด๋Š” ๊ฒƒ์€ ํ™˜์˜ํ•œ๋‹ค. ๊ณ ๋ฏผ ํ•˜๋ฉด์„œ ๊ธ€์“ฐ๊ธฐ๋ฅผ ๋ฏธ๋ฃจ๋Š” ๊ฒƒ๋ณด๋‹ค๋Š” ์ผ๋‹จ ์“ฐ๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•˜๋‹ค.

@dsdstudio
dsdstudio / golang-vs-clojure-async.md
Created April 30, 2016 02:41 — forked from danneu/golang-vs-clojure-async.md
Google I/O 2012 - Go Concurrency Patterns ported to Clojure Video: http://www.youtube.com/watch?v=f6kdp27TYZs
@dsdstudio
dsdstudio / Powerline.md
Last active April 19, 2016 14:24 — forked from wm/Powerline.md
Installing powerline on Mac OSX.The following was done in version Version 10.8.2

Install dependencies

brew install cmake
brew install python
sudo easy_install pip

Add powerline bin to your path. In your zshrc file (or the paths files sourced in zshrc) add the following line

PATH="/usr/local/share/python/:$PATH"

Reinstall MacVim with brew