'잡동사니'에 해당되는 글 13181건

  1. 2012.12.31 lisp 반복문
  2. 2012.12.31 2013년 할일 2
  3. 2012.12.30 서울 남산 한옥 마을 2
  4. 2012.12.30 해를 마무리 하며
  5. 2012.12.29 clisp
  6. 2012.12.29 lisp 기본함수
  7. 2012.12.29 xlisp-plus 3.05
  8. 2012.12.28 꺄아아아아아!! 아이러브 커피 귀여워!!!
  9. 2012.12.27 이것도 음모론이라고 하려나?
  10. 2012.12.27 TinyMCE mediawiki extionsion 1
Programming/lisp2012. 12. 31. 21:35
c의 for나 while과 비슷한 반복문 키워드로
loop, dotimes, dolist 등이 있다.

(let ((<var1> <init1>) (<var2> <init2>) …)
<body> )

– Declares local variables.  It is best to declare variables before using them.

(dotimes (<counter> <limit> <result>)
<body>)
(let ((sum 0))
    (dotimes (i 10 sum) (setq sum (+ sum i))) ) => 45
 
[링크 : http://logic.stanford.edu/classes/cs157/2004/programming/lisp.pdf

xlisp 설명서 발췌
Looping Constructs

basic looping form
(loop <expr>...)

fsubr

<expr> the body of the loop
returns never returns (must use non-local exit, such as return)



general looping form
(do (<binding>...) (<texpr> <rexpr>...) <expr>...)
(do* (<binding>...) (<texpr> <rexpr>...) <expr>...)

fsubr. do binds simultaneously, do* binds sequentially

<binding> the variable bindings each of which is either:

1) a symbol (which is initialized to NIL)
2) a list of the form: (<sym> <init> [<step>])

where:
<sym> is the symbol to bind
<init> the initial value of the symbol
<step> a step expression

<texpr> the termination test expression
<rexpr> result expressions (the default is NIL)
<expr> the body of the loop (treated like an implicit prog)
returns the value of the last result expression



loop through a list
(dolist (<sym> <expr> [<rexpr>]) <expr>...)

fsubr

<sym> the symbol to bind to each list element
<expr> the list expression
<rexpr> the result expression (the default is NIL)
<expr> the body of the loop (treated like an implicit prog)
returns the result expression



loop from zero to n-1
(dotimes (<sym> <expr> [<rexpr>]) <expr>...)

fsubr

<sym> the symbol to bind to each value from 0 to n-1
<expr> the number of times to loop (a fixnum)
<rexpr> the result expression (the default is NIL)
<expr> the body of the loop (treated like an implicit prog)
returns the result expression 

'Programming > lisp' 카테고리의 다른 글

lisp 전역변수 / 지역변수  (0) 2013.01.09
lisp car / cdr  (0) 2013.01.03
clisp  (0) 2012.12.29
lisp 기본함수  (0) 2012.12.29
xlisp-plus 3.05  (0) 2012.12.29
Posted by 구차니
프로그래밍 언어
openCV (웹캠 하나 지를까? ㅋㅋ 있는거 좀 써!!!)
openGL (아오 정말 애증의 openGL이다)
python (openGL과 합쳐서 하나 프로젝트 진행)
cuda (컴퓨터 하나 사야 하려나.. openCV와 합쳐서 프로젝트 하나 진행)
lisp (이걸 배워서 머하는데 써먹을까..)
php + mysql (가계부 만들기 공부)
c++ (c만 하니 안되겠어 ㅠ.ㅠ)
java (c만 하니 안되겠어 ㅠ.ㅠ)

스터디
c언어 강좌 및 wiki 내용정리

운동
78kg 만들기(-12kg)
봄/여름/가을에는 자전거 꼭 주말에 한번이상 타기(60km 거리 이상으로)
봄/여름/가을에는 자전거 주중에도 한번이상 타기(40km 거리-여의도)
남산 정복하기(로드로!!)
  
직장
이직준비(9월 이후 +- 3개월)
연봉 3500 이상 노려보기? 

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

일하기 싫어 2012년 한해정리 주저리  (4) 2013.01.18
2013년 새해가 밝았구나  (4) 2013.01.01
해를 마무리 하며  (0) 2012.12.30
난 모하는 걸까  (0) 2012.12.26
얼마나 시간이 흘러야  (4) 2012.12.21
Posted by 구차니
부모님이 가고 싶으신지 아들을 자꾸 팔아서
아들이 운전해서 고고싱~

입구가 조금 난해해서 엉뚱한데서 헤매고 ㅋㅋ


머 전체는 이렇게 생겼다고 되어 있는데
뒷쪽에는 1994년에 완공한 1000년 타임캡슐이 있다.


구름이 잔뜩끼어서 아쉬운 하늘 ㅠ.ㅠ


그나저나 웬 국악당?


원래 이게 목적 ㅋㅋ


언제봐도 처마는 시원하면서 부드러운 느낌을 준다.


간만에 보는 장독대에 금줄 둘룬녀석


부모님의 걸어가는 뒷모습


통합기준점이라는데 2~3km 간격으로 있다는데 왜 본적이 없는거 같지?



타임캡슐사업 내용들


타임캡슐! 1000년뒤에 연다는데 1994년에서 부터 이제 겨우 20년 조금 안되게 지났구나


'개소리 왈왈 > 사진과 수다' 카테고리의 다른 글

올림픽공원 청둥오리  (0) 2013.01.12
올림픽 공원 스케이트 장  (8) 2013.01.05
어제의 지름  (0) 2012.12.20
사진기의 추억 - bulb 모드  (0) 2012.12.18
지름신 도착!  (0) 2012.12.14
Posted by 구차니
아직 출근 하루 남았어!!!!!
시발!!!!! ㅠㅠ



아는 지인과 조촐한 송년회
둘이서 파인트 2그릇 ㅋㅋㅋ

 

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

2013년 새해가 밝았구나  (4) 2013.01.01
2013년 할일  (2) 2012.12.31
난 모하는 걸까  (0) 2012.12.26
얼마나 시간이 흘러야  (4) 2012.12.21
오랫만에 하루늦은 퇴근일기 - 20121219  (0) 2012.12.19
Posted by 구차니
Programming/lisp2012. 12. 29. 13:19
윈도우용은 cygwin으로 써야하는군하 -_-

[링크 : http://www.clisp.org/]

'Programming > lisp' 카테고리의 다른 글

lisp car / cdr  (0) 2013.01.03
lisp 반복문  (0) 2012.12.31
lisp 기본함수  (0) 2012.12.29
xlisp-plus 3.05  (0) 2012.12.29
lisp vector  (0) 2012.12.14
Posted by 구차니
Programming/lisp2012. 12. 29. 13:02
xlisp 도움말 발췌

Symbol Functions


set the global value of a symbol
(set <sym> <expr>)
You can also use (setf (symbol-value <sym>) <expr>)
<sym> the symbol being set
<expr> the new value
returns the new value


set the value of a symbol
(setq [<sym> <expr>]...)
fsubr. You can also use (setf <sym> <expr>)
<sym> the symbol being set (quoted)
<expr> the new value
returns the last new value or NIL if no arguments
 

define a function
(defun <sym> <fargs> <expr>...)
define a macro
(defmacro <sym> <fargs> <expr>...)
fsubr
<sym> symbol being defined (quoted)
<fargs> formal argument list (lambda list) (quoted)
<expr> expressions constituting the body of the function (quoted)
returns the function symbol


---
> (defun prt () '(be))                    
prt                                       
> prt                                     
error: unbound variable - prt             
if continued: try evaluating symbol again 
1> (prt)                                  
(be)                                      
 
1> (defun add (a b) (+ a b))             
add                                      
1> ( add 2 4)                            
6                                        
1> add                                   
error: unbound variable - add            
if continued: try evaluating symbol again
2> (add)                                 
error: too few arguments                 

'Programming > lisp' 카테고리의 다른 글

lisp 반복문  (0) 2012.12.31
clisp  (0) 2012.12.29
xlisp-plus 3.05  (0) 2012.12.29
lisp vector  (0) 2012.12.14
lisp atom  (0) 2012.12.11
Posted by 구차니
Programming/lisp2012. 12. 29. 00:07
1999년 이후로 업뎃안하다가 macosx와 64bit 지원으로 인해
3.04에서 3.05로 업그레이드 된 듯.

xlisp의 문서(함수목록)


[링크 : http://www.almy.us/xlisp.html]
[링크 : http://en.wikipedia.org/wiki/XLISP]

'Programming > lisp' 카테고리의 다른 글

clisp  (0) 2012.12.29
lisp 기본함수  (0) 2012.12.29
lisp vector  (0) 2012.12.14
lisp atom  (0) 2012.12.11
lisp tutorial  (0) 2012.12.06
Posted by 구차니
으아아아 녹는다 ㅠ.ㅠ
일러스터가 덕후인가 내가 더쿠인가!!! OTL


'개소리 왈왈 > 모바일 생활' 카테고리의 다른 글

아 문자.. 쫄았자나 ㅠ.ㅠ  (0) 2013.01.23
우분투 폰?  (2) 2013.01.13
아이퐁5 WPA2-PSK 안되?  (0) 2012.12.12
베가 LTE M + BK-82M  (6) 2012.12.12
베가 LTE M 업데이트  (0) 2012.11.29
Posted by 구차니
로지스틱 함수 어쩌구..
간단하게 말하면 너무나 수학적인 계산에 딱딱들어맞는 현실상의 투표곡선

그러니까 이론은 이론이고 현실은 현실인데
현실의 개표가 이론의 수치와 거의 완벽하게 맞아들어간다면?!




그나저나 나 공대인데 먼소린지 모르겠으니
존나 가만있어야겠다 ㅠ.ㅠ

[링크 : http://bbs1.agora.media.daum.net/gaia/do/debate/read?bbsId=D115&articleId=2235846&pageIndex=1]
Posted by 구차니
프로그램 사용/wiki2012. 12. 27. 14:02
회사 홈피 갈아 엎는데 신기한 에디터를 쓰길래 찾아봤더니 LGPL 이라서 괜찮은듯 
아무튼 이녀석도 mediawiki의 확장기능으로 제공하는데 아직 stable은 아닌것 같다.

[링크 : http://www.tinymce.com/
[링크 : http://www.mediawiki.org/wiki/Extension:TinyMCE_MW

Posted by 구차니