vscode config for elixir , emmet with eex
摘要:"emmet.triggerExpansionOnTab": true, "files.associations": { "*.js": "javascript", "*.ex": "elixir", "*.exs": "elixir", "*.eex": "html", "*.html.eex":
阅读全文
posted @
2022-03-02 13:30
c3tc3tc3t
阅读(54)
推荐(0)
test String.split
摘要:test "map.mergd" do s = :crypto.strong_rand_bytes(32) # <<116, 101, 115, 116, 58, 0>> # = "test:" <> <<0>> # IO.inspect(String.slice(b, 0, 4)) c = "te
阅读全文
posted @
2019-08-15 13:22
c3tc3tc3t
阅读(197)
推荐(0)
Lyrics of the song 99 Bottles of Beer
摘要:99 bottles of beer on the wall, 99 bottles of beer.Take one down and pass it around, 98 bottles of beer on the wall. 98 bottles of beer on the wall, 9
阅读全文
posted @
2019-07-07 12:27
c3tc3tc3t
阅读(284)
推荐(0)
Bcrypt.check_pass/3 用法
摘要:defmodule My do defstruct password: "", apassword_hash: "", aencrypted_password: "" end m = %My{ :password => "123", :apassword_hash => Bcrypt.hash_pwd_salt("111111"), :aencrypt...
阅读全文
posted @
2019-06-30 16:57
c3tc3tc3t
阅读(220)
推荐(0)
What does -> do in clojure?
摘要:https://stackoverflow.com/questions/4579226/what-does-do-in-clojure
阅读全文
posted @
2019-01-15 22:22
c3tc3tc3t
阅读(126)
推荐(0)
clojure中符号symbols 和变量vars的正确理解
摘要:原地址 http://stackoverflow.com/questions/11662084/why-does-clojure-distinguish-between-symbols-and-vars?rq=1Symbols are namesUnlike most programming languages, Clojure makes a distinction betweenthingsand thenamesof things. In most languages, if I say something likevar x = 1, then it is correct and co
阅读全文
posted @
2014-03-04 09:52
c3tc3tc3t
阅读(884)
推荐(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
阅读(284)
推荐(0)