Skip to content

Instantly share code, notes, and snippets.

View weakish's full-sized avatar

weakish weakish

View GitHub Profile
@weakish
weakish / README.md
Last active August 20, 2017 08:37
#跋 貴妃的紅汗 #訓詁

I believe I have omitted mentioning that, in my first voyage from Boston, being becalm'd off Block Island, our people set about catching cod, and hauled up a great many. Hitherto I had stuck to my resolution of not eating animal food, and on this occasion consider'd, with my master Tryon, the taking every fish as a kind of unprovoked murder, since none of them had, or ever could do us any injury that might justify the slaughter. All this seemed very reasonable. But I had formerly been a great lover of fish, and, when this came hot out of the frying-pan, it smelt admirably well. I balanc'd some time between principle and inclination, till I recollected that, when the fish were

@weakish
weakish / 跋史記十二本紀疑詁.md
Created January 2, 2015 10:49
#跋 #史記 十二本紀疑詁

張家英. 史記十二本紀疑詁[M]. 哈爾濱:黑龍江教育出版社,1997年9月. ISBN7-5316-3207-1.

封面「紀」誤印爲「記」。

粗翻一過,發現許多條目沒有必要寫,如《五帝本紀》中的「親戚」(p. 24)、「用事」(p. 28)、「百家」(p. 30)、「古文」(p. 31),《夏本紀》開頭的兩條「奸」(p. 44)、「小子」(p. 45),類似這樣的條目觸目皆是,茲不盡舉。

有些條目不過是重複前人的結論,茲舉二條爲例:「話言」(p. 27),《說文》云「話,會合善言也」,此「話」即用此義,《疑詁》大抄段注,實無必要。「砥屬」,《疑詁》不過抄《經義述聞》,亦無必要。

當然還是有一些條目是可取的,但是總體而言這些條目我們也嫌其羅嗦了。例如《秦本紀》之「容車」,《疑詁》引《後漢書・銚期王霸祭遵列傳》注:「容車,容飾之車,象生時也。」(p. 98)這是對的。但是卻花了大半頁的篇幅,其實一兩行就夠了。

@weakish
weakish / triple-your-reading-speed.md
Last active July 18, 2021 10:57
#afterwords triple your reading speed

Wade E. Cutler. Triple Your Reading Speed[M]. (3rd Edition) ARCO,1993. ISBN 9780671846442.

Reading effectively at a faster rate will enable the individual reader to see the "whole" more quickly, thereby improving overall understanding.

The normal individual's thinking rate far exceeds his speech rate of approximately 150 words-per-minute.

Eye movements

Reading speed depends on eye movements. When you move your eyes, text gets blur, and you need to refocus.

@weakish
weakish / debconf14_video_webm_download_links.txt
Created October 22, 2014 13:40
debconf14 video webm download links
@weakish
weakish / audit-deb.sh
Last active August 29, 2015 14:07
Fetch and apply all #security updates for #Debian in #sh
#!/bin/sh
# by Jakukyo Friel <[email protected]> (http://weakish.github.io)
# under Apache-2.0
# Fetch and apply all security updates for #Debian.
sudo apt-get install $(debsecan --suite $(lsb_release -a | grep -o -P '(?<=Codename:[\s]).*') --format packages)
@weakish
weakish / .vromerc
Last active August 29, 2015 14:07
Vrome configure
" Disable Vrome in those sites, Multiple URLs can be separated with `,`.
set disablesites=mail.google.com, www.wunderlist.com,digg.com
" Unmap Ctrl+Enter in insert mode since some sites use it to submit text.
iunmap <C-Enter>
" Close current tab is a frequent operation, thus map it to `d`.
map Dc D
map Dm dm
@weakish
weakish / heart.coffee
Last active February 18, 2016 17:04
Matrix digital rain http://jsbin.com/ORIpOxi/
# Preview: http://jsbin.com/bijag
c = document.getElementById('c')
ctx = c.getContext('2d')
# full screen
c.height = window.innerHeight
c.width = window.innerWidth
@weakish
weakish / 跋只需倾听.md
Created January 8, 2014 13:40
#跋 只需倾听

Mark Goulston. 只需倾听:与所有人都能沟通的秘密[M]. 重庆:重庆出版社,2010-11. ISBN 9787229029715

书名是《Just Listen: Discover the Secret to Getting Through to Absolutely Anyone》,但是书里说了好几种无法沟通要远离的人,自语相违了。

书里有很多心理的分析,以及沟通和建立、维护、发展关系的技巧,不过我看了却记不住,就像Java的各种设计模式,或者C++的各种窍门,看了只能让我感叹「这么复杂啊」,却生不起学习的兴趣。脑袋不灵光,只能接受简单的东西。

唯一有印象的是其中提到的一个研究:

加州大学洛杉矶分校(UCLA)的馬修·李柏曼(Matthaw Lieberman)的研究显示,当人们把情绪的名称说出来的时候(比如“害怕”、“生气”),杏仁核,这个能把大脑转入动物模式的、小小的恐惧探测器,几乎在顷刻间会冷静下来。与此同时,大脑的另一个部分——前额叶的某个部分,也就是大脑的“聪明区”开始工作。(p. 39)

@weakish
weakish / 跋CoffeeScript程序设计.md
Created January 5, 2014 09:11
跋 CoffeeScript 程序设计

Mark Bates. CoffeeScript程序设计[M]. Goddy Zhao,译. 北京:人民邮电出版社,2013-1. ISBN 9787115301932.

第一部分 核心CoffeeScript

第一章 从这里开始

1.1 CoffeeScript的REPL