-
AT
: 연결 테스트- 응답:
OK
- 응답:
-
AT+RMAAD
-
AT+BAUD[n]
: 보드레이드 설정, 파라메터 미입력시 현재 설정 표시- 응답:
+BAUD=[n]
입력 가능한 n Baud 1 1200 - 응답:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import XCTest | |
import PlaygroundSupport | |
extension Int { | |
func clamped(_ range: Range<Self>) -> Self { | |
if range.contains(self) { | |
return self | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension TimeInterval { | |
static func milliseconds(_ value: Self) -> Self { | |
Self(value * 1e-3) | |
} | |
static func seconds(_ value: Self) -> Self { | |
Self(value) | |
} | |
static func minutes(_ value: Self) -> Self { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir ~/Library/KeyBindings && vim ~/Library/KeyBindings/DefaultKeyBinding.dict | |
# DefaultKeyBinding.dict 에 아래의 설정을 붙여넣으세요. | |
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict | |
This file remaps the key bindings of a single user on Mac OS X 10.5 to more | |
closely match default behavior on Windows systems. This makes the Command key | |
behave like Windows Control key. To use Control instead of Command, either swap | |
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ffmpeg | |
import json | |
import subprocess | |
import os | |
import sys | |
import time | |
def loudnorm(name, ext): | |
singlePass = subprocess.Popen( | |
( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Visual Effects View in SwiftUI, AppKit | |
// cf. https://gist.github.com/edwurtle/98c33bc783eb4761c114fcdcaac8ac71#file-blur-swift | |
import SwiftUI | |
struct NSBlur: NSViewRepresentable { | |
var blendingMode: NSVisualEffectView.BlendingMode = .withinWindow | |
func makeNSView(context: Context) -> NSVisualEffectView { | |
let view = NSVisualEffectView() | |
view.blendingMode = blendingMode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Cocoa | |
/* | |
는/은, 가/이, 야/아, 와/과, 를/을, 다/이다, 으로/로 | |
*/ | |
extension String { | |
struct KoreanSound { | |
static let firsts = ["ㄱ", "ㄲ", "ㄴ", "ㄷ", "ㄸ", "ㄹ", "ㅁ", "ㅂ", "ㅃ", "ㅅ", "ㅆ", "ㅇ", "ㅈ", "ㅉ", "ㅊ", "ㅋ", "ㅌ", "ㅍ", "ㅎ"] | |
static let middles = [ "ㅏ", "ㅐ", "ㅑ", "ㅒ", "ㅓ", "ㅔ", "ㅕ", "ㅖ", "ㅗ", "ㅘ", "ㅙ", "ㅚ", "ㅛ", "ㅜ", "ㅝ", "ㅞ", "ㅟ", "ㅠ", "ㅡ", "ㅢ", "ㅣ" ] |
brew unlink python3
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/e128fa1bce3377de32cbf11bd8e46f7334dfd7a6/Formula/python.rb
brew switch python3.6.5