`
cookoo
  • 浏览: 647357 次
  • 性别: Icon_minigender_1
  • 来自: Shanghai
社区版块
存档分类
最新评论
文章列表

猪年啦

    博客分类:
  • Life
今年俺的运势该旺点了吧?
在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( ...
最近脚丫子发炎了,不良于行,医生说用双氧水泡着。 偶然在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),不難理解它曾被用到軍 ...
Adblock
...
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, ...
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 ...

Flat pen

Definitely save space, yet not sure if it's still comfortable to use. manufacturer

美味U盘

更多口水
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 ...

美丽的火柴

...
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
我以前总以为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 ...
Global site tag (gtag.js) - Google Analytics