Skip to content

Instantly share code, notes, and snippets.

View chorr's full-sized avatar
🌚
Start Small, Stay Small

Hyuncheol Jeon chorr

🌚
Start Small, Stay Small
View GitHub Profile
@chorr
chorr / Apple_mobile_device_types.txt
Created December 20, 2021 04:17 — 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
arm64 : 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
@chorr
chorr / chapter3.sample.js
Created January 18, 2012 05:44
Secrets of the JavaScript Ninja - Chapter.3 Sample Code
/* HTML code snippet
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>JS Bin</title>
<script type="text/javascript" src="http://chorr.net/lib/js/assert.js"></script>
<style>
#results li.pass { color: green; }
#results li.fail { color: red; }
<!DOCTYPE html>
<html>
<head>
<title>Listing 3.3</title>
</head>
<body>
<ul id="results"></ul>
<script type="text/javascript">
function stealthCheck(){
assert(stealth(),
;; 데이터 정의:
(define-struct circle (center radius))
(define-struct square (nw length))
;; 도형(shape)은 다음 두 구조체 중 하나다.
;; 1. a structure: (make-circle p s)
;; p는 posn이고 s는 수다.
;; 2. a structure: (make-square p s)
;; p는 posn이고 s는 수다.
;; 계약, 목적, 헤더: