上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 40 下一页
  2017年9月22日
摘要: https://stackoverflow.com/questions/6040583/cant-find-the-libpq-fe-h-header-when-trying-to-install-pg-gem For Ubuntu systems: sudo apt-get install lib 阅读全文
posted @ 2017-09-22 00:18 c3tc3tc3t 阅读(343) 评论(0) 推荐(0)
  2017年9月18日
摘要: var numSides = 6; var numRolls = 3; var xhr = new XMLHttpRequest(); xhr.responseType = 'json'; xhr.open("POST", "http://localhost:4000/graphql"); xhr.setRequestHeader("Content-Type", "application/jso... 阅读全文
posted @ 2017-09-18 15:21 c3tc3tc3t 阅读(168) 评论(0) 推荐(0)
  2017年9月13日
摘要: rails 开发中 5.1版本使用binding.pry会报 ActionController::UnfilteredParameters: unable to convert unpermitted parameters to hash可以在下面文件中设置applicaiton.rbif Rail 阅读全文
posted @ 2017-09-13 16:52 c3tc3tc3t 阅读(866) 评论(0) 推荐(0)
  2017年9月9日
摘要: 在看elixir程序设计,书中讲到依赖设置,但是都是要联网,自己希望可以下载到本地电脑硬盘,然后项目要使用就用本地的,不要每次都要下载,因为天朝下载真的不稳 官方看到文档 {:deps_name,path: "/path/deps_name"} 当时不知道 这个path/deps_name指的是什么 阅读全文
posted @ 2017-09-09 11:25 c3tc3tc3t 阅读(194) 评论(0) 推荐(0)
  2017年8月31日
摘要: 参考链接 https://nodejs.org/api/modules.html#modules_loading_from_the_global_folders npm install xxx -g通常安装在全局目录 在你的bashrc或者zashrc中导出全局目录 在你的package.json中 阅读全文
posted @ 2017-08-31 22:10 c3tc3tc3t 阅读(2076) 评论(0) 推荐(0)
  2017年8月27日
摘要: # NEW UNNAMED KEYWORD ARGUMENTSdef new_way(**options)return options[:foo]end# => :new_waynew_way(foo: "bar")# => "bar"new_way# => nil 这里传递给new_way方法的m 阅读全文
posted @ 2017-08-27 11:03 c3tc3tc3t 阅读(622) 评论(0) 推荐(0)
  2017年8月22日
摘要: def check(2) , do: true def check(n) when n >2 do b = for x 2 do for x 2" IO.inspect(span2(40)) [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37] 阅读全文
posted @ 2017-08-22 09:52 c3tc3tc3t 阅读(147) 评论(0) 推荐(0)
  2017年8月21日
摘要: for << << b1::size(2), b2::size(3), b3::size(3) >> <- "hello" >>, ...> do: "0#{b1}#{b2}#{b3}" ["0150", "0145", "0154", "0154", "0157"] 1) 字母h的 ascii码的 阅读全文
posted @ 2017-08-21 20:58 c3tc3tc3t 阅读(596) 评论(0) 推荐(0)
  2017年7月27日
摘要: 1 %%计算链表长度尾递归实现 2 lez(N) -> lez(N, 0). 3 4 lez([], Acc) -> Acc; 5 lez([_ | T], Acc) -> lez(T, Acc + 1). 6 %% 将某个元素重复n次返回一个链表 dulicate(0,_) ->[]; dulic 阅读全文
posted @ 2017-07-27 14:04 c3tc3tc3t 阅读(444) 评论(0) 推荐(0)
  2017年7月26日
摘要: 在elixir中, true 就是true 或者是:true 是一个原子 atom, 在其他语言中的true,这里叫做truth, 只要你不是false,nil ,就是truth, 当然 false和nil也是原子 所以说elixir中Boolean operators 是针对true a or b 阅读全文
posted @ 2017-07-26 23:51 c3tc3tc3t 阅读(857) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 40 下一页