- 浏览: 647357 次
- 性别:
- 来自: Shanghai
最新评论
-
107x:
不错,谢谢!
Vim多行缩进技巧 -
can007:
EC2是不负责储存???
体验Amazon EC2 -
vanxining:
书名是什么呢?
Neural Network依然不是理想的AI -
贾懂凯:
缩进的标准是tab,linux默认tab=8。在不同的平台会出 ...
Vim多行缩进技巧 -
edison0951:
貌似他的老师是波谱尔吧,和黑天鹅讲的东西差不多
索罗斯与因果论
文章列表
在F#中内置了两个很有用的运算符 |> 和 >> ,用来串联数据和函数,有效减少括号的使用,让代码不那么lispy。这两个符号的定义很简单,在Ocaml中也一样可以方便使用。
运算符 |> 定义:
let (|>) x f = f x
val (|>) : 'a -> ('a -> 'b) -> 'b
例子:形如f(g(h(i(x))))可以写成x |> i |> h |> g |> f
依此类推(抱歉,例子抽象了点)
运算符 >> 定义:
let (>>) f g x = g(f( ...
- 2006-12-30 07:35
- 浏览 5225
- 评论(2)
最近脚丫子发炎了,不良于行,医生说用双氧水泡着。
偶然在Yahoo Knows上查了一下双氧水,哇!看见这个:
引用雙氧水 (過氧化氫,hydrogen peroxide) 的結構為:
O-H 的鍵能為468kJmol-1,O-O的鍵能為210kJmol-1。極純的H2O2 相當穩定,90%的H2O2在50oC時每小時僅分解0.001%,分解較平穩。當有雜質或金屬離子存在,如極少量Fe2+、Mn2+、Cu2+、Cr3 + 等,雙氧水的分解被催化,放出大量的熱(每摩爾的H2O2能放出195kJ的能量)。由於雙氧水體積小、放出的能量多和有助燃作用 (分解H2O2會放出 O2),不難理解它曾被用到軍 ...
- 2006-12-30 05:24
- 浏览 5253
- 评论(2)
...
Confessions of a Used Programming Language Salesman - Getting the Masses Hooked on Haskell
The author summaries that functional programming has finally reached the masses, except that it is called Visual Basic instead of Lisp, ML, or Haskell.
The study is serious, covering many cutting-edge fields, ...
- 2006-12-06 06:40
- 浏览 2915
- 评论(0)
For years, industry analysts suspected if Nintendo would be driven out of game console business by Sony and Microsoft. Today nobody will think so anymore. Wii(internal project name: revolution), Nintendo's latest game console with full of innovation and imagination, has completely change the rule of ...
- 2006-12-05 05:03
- 浏览 1881
- 评论(0)
Definitely save space, yet not sure if it's still comfortable to use.
manufacturer
- 2006-12-04 09:46
- 浏览 2765
- 评论(2)
A recent article from Economist talks about the emerging trend of mutual funds leveraging more and more financial derivatives, just like what hedge funds do, to improve returns. Especially in Europe, due to sort of deregulation on mutual funds, they are allowed to take risky positions for a small po ...
- 2006-11-28 07:00
- 浏览 1956
- 评论(1)
ctrl+o/ctrl+i 历史位置跳转
q: 命令行历史
Textmate风格多列插入:
命令状态ctrl-shift-v选择列,shift-i插入,结束后用<esc>。对html编辑非常有用
:r !xxx 把shell命令结果插入当前位置
:%s/old/new/gc 带提示的查找替换
另外今天看到一个有前途的项目:VimMate, 一个内嵌gvim,由Ruby写的简单IDE。目前只能用在linux上,还很初级,不过思路不错:
http://vimmate.rubyforge.org/VimMate-0.6.0-features.html
- 2006-11-19 06:14
- 浏览 3069
- 评论(1)
我以前总以为list comprehension这个语法糖不过就是些map,filter转换罢了,最近看到Haskell和Erlang的递归用法来实现排列,比循环方法要简洁很多:
Haskell:
java 代码
permutation [] = [[]]
permutation xs = [x:ys | x <- xs, ys <- permutation (delete x xs)]
Erlang:
java 代码
permutation([]) -> [[]];
permutation(L) -> ...
哈佛大学生物视效小组展示细胞内工作机理的三维视频:
http://aimediaserver.com/studiodaily/videoplayer/?src=harvard/harvard.swf&width=640&height=520
场景讲解:
http://www.sciencechatforum.com/bulletin/viewtopic.php?p=24688&sid=867cb0acda42fd141a14ee0a498b40e5
为了便于大家理解,我凭有限的生物知识做了一下翻译(看不懂别怪我哦):
一个白血球细胞的受体与毛细血管上皮的蛋白质即时 ...
Why I chose erlang (very, very long story)
http://www.erlang.org/ml-archive/erlang-questions/200302/msg00013.html
I've been following the discussions about OTP the past few days and found
the comments by various participants particularly enlightening. It's
always nice to observe a lively discussi ...
- 2006-11-13 03:23
- 浏览 2851
- 评论(1)