Skip to content

Instantly share code, notes, and snippets.

View trilliwon's full-sized avatar
🎯
Focusing

WonJo trilliwon

🎯
Focusing
View GitHub Profile

I love vim

Vim Visual Mode

  • v% if the cursor is on the starting/ending parenthesis
  • vib if the cursor is inside the parenthesis block
  • vi" for double quotes
  • vi' for single quotes
  • vi{ / viB for curly block

CNAME vs A Records

Last Edited: May 14, 2019 11:06 AM

A and CNAME records are for DNS records.

Deferences

  • The A record maps a name to one or more IP addresses when the IP are known and stable.
  • The CNAME record maps a name to another name. It should only be used when there are no other records on that name.

Tree-and-Graph


Tree

What is Tree?

  • 그래프의 일종이다.

bandwidth, throughput, latency

  • bandwidth (대역폭)

    • 단위 시간 동안 한 곳에서 다른 곳으로 전달할 수 있는 데이터의 최대량
  • throughput (처리량)

    • 일정한 주기 동안 채널을 가로질러 전송될 수 있는 데이터의 양
  • latency (대기시간)

Private(Local) IP vs Public IP (내부 IP, 외부 IP, IP : Internet Protocol)


  1. Find my IP Address on macOS

  • Option +"Click Wifi Menu Bar", then you can see below

정규표현식으로 한글을 확인하는 방법

const re = /[가-힣]+/g
const sample =
  "Pomodoro, 안녕하세요. Hello World! 아닌데요. Really 저 아니에요."
const result = re.exec(sample)
const result01 = sample.match(re)

console.log(result)

리팩터링

리팩터링이란 겉으로 드러나는 코드의 기능(겉보기 동작)은 바꾸지 않으면서 내부 구조를 개선하는 방식으로 소프트웨어 시스템을 수정하는 과정이다. 버그가 생길 가능성을 최소로 줄이면서 코드를 정리하는 정제된 방법이다. 요컨대, 리팩터링한다는 것은 코드를 작성하고 난 뒤에 설계를 개선하는 일이다.

  • duc typing: js 는 구조를 기준으로 타입을 구분한다. "만약 어떤 새가 오리(duck)처럼 걷고, 헤엄치고, 꽥꽥거린다면 나는 그 새를 오리라고 부를 것이다."

Core Spotlight를 이용해 앱 접근성을 향상시키기 위한 전략

Core Spotlight는 OS 레벨에서 앱 컨텐츠를 검색하고 인터렉션 할 수 있는 인터페이스를 제공합니다. Core Spotlight에 인덱싱 하는 방법은 3가지가 존재 합니다.

  • SiriKit
    • 유저가 추가한 Siri Shortcuts 을 검색하거나 Siri에 의해 적절한 타이밍에 유저에게 제안될 수 있습니다.
  • CoreSpotlight
    • 앱의 컨텐츠를 Spotlight DB에 인덱싱 하고 검색결과에서 컨텐츠로 랜딩할 수 있는 기능을 제공합니다.
  • NSUserActivity