09 2013 档案
emacs 配置 clojure
摘要:安装JDK,Version>=6.0 java-version 2安装EMACS,Version>=24 在脚本~/.emacs.d/init.el中增加如下内容 (require'package) (add-to-list'package-archives '("marmalade"."http://marmalade-repo.org/packages/")t) (package-initialize) (when(notpackage-archive-contents) (package-refresh-cont 阅读全文
posted @ 2013-09-30 12:30 c3tc3tc3t 阅读(326) 评论(0) 推荐(0)
emacs窗口半透明
摘要:转自http://blog.csdn.net/dsjlzh/article/details/7804733;; transform window;; Anchor: March Liu (刘鑫) ;;;; This is a script to set emacs window's alpha value.;; It work well on windows xp and vista with EmacsWin32;; useage: add below line in your .emacs;;;; (load-file "path/alpha-window.el" 阅读全文
posted @ 2013-09-29 13:08 c3tc3tc3t 阅读(512) 评论(0) 推荐(0)
Clojure 开发环境 light table 和 Leiningen 安装指引
摘要:1 首先下载 Light table 然后 解压到到一文件夹。目录中千万不能有空格 下载地址 http://www.lighttable.com/2下载构建工具 下载地址 http://leiningen-win-installer.djpowell.net/ Leiningen 中文教程 http://wiki.fnil.net/index.php?title=Leiningen_tutorial%E4%B8%AD%E6%96%87%E7%89%883安装 Leiningen 安装教程看这里 有图 http://leiningen-win-installer.djpowell.net/4 然 阅读全文
posted @ 2013-09-28 22:50 c3tc3tc3t 阅读(1322) 评论(2) 推荐(0)
Clojure编写一个阶乘程序 使用递归
摘要:这是递归(def f (fn fb [x] (if (< x 2) 1 (* x (fb (- x 1)) ) ) ) )(def f (fn fb [x y] (if (= x 1) y (fb (- x 1) (* x y)) ) ) ) 阅读全文
posted @ 2013-09-28 12:57 c3tc3tc3t 阅读(418) 评论(0) 推荐(0)
SSH框架学习步骤
摘要:Hibernate 对象状态 关系映射 SQL语句 缓存抓取struts action的分发配置 参数传递 文件上传spring IOC AOP 阅读全文
posted @ 2013-09-26 12:55 c3tc3tc3t 阅读(153) 评论(0) 推荐(0)
js需要清楚的内存模型
摘要:原型原型重写原型继承组合方式实现继承函数作用域链 阅读全文
posted @ 2013-09-13 10:12 c3tc3tc3t 阅读(246) 评论(0) 推荐(0)
SeaJS结合javascript面向对象使用笔记(一)
摘要:Sea.JSSeajs结合javascript面向对象所需页面/app/index.html/lib/factory.js/lib/sea.js/lib/constructor.js/js/init.js代码Index.html面向对象Factory.jsdefine(function(require,exports){//工厂方式functioncreateObject(name,age){varo=newObject();o.name=name;o.age=age;o.say=function(){alert(this.name+"-"+this.age);}retur 阅读全文
posted @ 2013-09-12 12:33 c3tc3tc3t 阅读(422) 评论(0) 推荐(0)
函数副作用
摘要:转自 http://zh.wikipedia.org/zh-tw/%E5%87%BD%E6%95%B0%E5%89%AF%E4%BD%9C%E7%94%A8在計算機科學中,函數副作用指當調用函數時,除了返回函數值之外,還對主調用函數產生附加的影響。例如修改全局變數(函數外的變數)或修改參數。函數副作用會給程序設計帶來不必要的麻煩,給程序帶來十分難以查找的錯誤,並且降低程序的可讀性。嚴格的函數式語言要求函數必須無副作用。下面是函數的副作用相關的幾個概念, 純函數(Pure Function)、非純函數(Impure Function)、引用透明(Referential Transparent)。 阅读全文
posted @ 2013-09-11 19:57 c3tc3tc3t 阅读(295) 评论(0) 推荐(0)