摘要:
引用https://github.com/Toblerity/Shapely/issues/190 snorfalorpagus commented on 18 Oct 2014 The point returned is the nearest point on the line to the o 阅读全文
摘要:
作为其他值的容器,也都可以解引用。 deref不会阻塞。 add-watch 可以定义引用值发生改变时的回调,fn是4个参数 :key (atom/var/agent) 旧状态 新状态 watcher在每次修改时都会被调用,但是不保证真的有改变。因此可能需要自己比较新旧值 key用于给1个ref上添 阅读全文
摘要:
《Clojure编程》第4章笔记。 总的感觉,Clojure毕竟是基于JVM的在人间的工程化语言。不是纯的无状态纯函数的在神间的lisp。 作为后端语言,不可避免要处理计算中和代码执行时序、线程等方面的事情。 这方面Clojure有大量的概念和模式,让这些问题尽量地简化。和其他语言有类似的地方,但是 阅读全文
摘要:
语法糖很多, 就是奔这个“懒” 来用clj的. 但是,在常见的书里(《Clojure编程》《Clojure编程乐趣2》)都对很多基本语法,用法都介绍不全, 不细。看书看得很累。 比如《Clojure编程》里 第1章介绍了各种基本语法,但是没有介绍for :when,然后在P138 直接用了 也没有详 阅读全文
摘要:
参考: https://stackoverflow.com/questions/27415706/postgresql-select-top-three-in-each-group http://charlesnagy.info/it/postgresql/group-by-limit-per-gr 阅读全文
摘要:
主要关注访问pg。不关心其他db 1 clojure.java.jdbc https://github.com/clojure/java.jdbc http://clojure-doc.org/articles/ecosystem/java_jdbc/reusing_connections.html 阅读全文
摘要:
万事开头难,全是犄角旮旯的细节。 1 安装lein 参见 https://www.cnblogs.com/xuanmanstein/p/10504401.html 2 创建工程 lein 参考https://github.com/technomancy/leiningen/blob/stable/d 阅读全文
摘要:
参考官网https://qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu 但是官网写的太繁琐分散,没有按每个OS集中写cli安装完整过程,自己整理一遍: 1修改软件源 sudo xed /etc/apt/sources.list mi 阅读全文
摘要:
# Pycharm 0.0.0.0 account.jetbrains.com0.0.0.0 www.jetbrains.com #sublime text3 127.0.0.1 www.sublimetext.com127.0.0.1 license.sublimehq.com127.0.0.1 阅读全文