Skip to content

Instantly share code, notes, and snippets.

View ngn999's full-sized avatar
💭
I may be slow to respond.

ngn999 ngn999

💭
I may be slow to respond.
View GitHub Profile
@ngn999
ngn999 / go.el
Created May 22, 2011 17:51
test.el
(defun squar (x)
"return x * x"
(* x x))
;; scroll-ahead
;; scroll-behind
;;switch-to-buffer
;;other-buffer
p = reinterpret_cast<const unsigned char *>(szKey);
while (*p) {
res = (res << 7) + (res >> 25) + *p++;
}
// 相当于,res这个int32将前面8位移到后面去了, eg. 1101001xxxxxxxxxxxxx,就成了,xxxxxxxxxxxxx110100
@ngn999
ngn999 / gist:842358
Created February 24, 2011 16:12
quote and backquote
`(a list have (+ 2 3) elements) => (a list have (+ 2 3) elements)
'(a list have (+ 2 3) elements) => (a list have (+ 2 3) elements)
`(a list have ,(+ 2 3) elements) => (a list have 5 elements)