Skip to content

Instantly share code, notes, and snippets.

💭
Make Cirru great again!

Jon jiyinyiyong

💭
Make Cirru great again!
Block or report user

Report or block jiyinyiyong

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jiyinyiyong
jiyinyiyong / 九章.cirru
Last active Dec 22, 2019
基于九章算术语言习惯的伪代码
View 九章.cirru
今有 三十三
今有 二十
今有 $
答曰 |丙为
术曰 问相加几何 ( )
$
View cirru.text
0-----JavaScript-----8832076
1-----Java-----7197962
2-----HTML-----5834604
3-----Python-----4530468
4-----Ecere Projects-----2503818
5-----PHP-----2281909
6-----CSS-----2185651
7-----C#-----1937156
8-----C++-----1839979
9-----Ruby-----1783509
@jiyinyiyong
jiyinyiyong / tricky-macro.clj
Last active Oct 26, 2019
Run with `cljs *.clj`
View tricky-macro.clj
(defn div [x])
(defn generate-component [comp-name params param-values & body]
(println "inside" (pr-str comp-name) (pr-str params) (pr-str body))
`(merge {}
{:args (list ~@param-values),
:name ~(keyword comp-name),
:render (fn [~@params]
(defn ~(symbol (str "call-" comp-name)) [~'%cursor] ~@body))}))
View error.log
/Users/chen/repo/mvc-works/map-spec/.shadow-cljs/builds/app/dev/out/cljs-runtime/cljs/core.cljs:11309
(defn ^{:jsdoc ["@constructor"]}
^
Error: TBD
at new cljs$core$ExceptionInfo (/Users/chen/repo/mvc-works/map-spec/.shadow-cljs/builds/app/dev/out/cljs-runtime/cljs/core.cljs:11309:1)
at Function.cljs$core$IFn$_invoke$arity$3 (/Users/chen/repo/mvc-works/map-spec/.shadow-cljs/builds/app/dev/out/cljs-runtime/cljs/core.cljs:11338:1)
at Function.cljs$core$IFn$_invoke$arity$2 (/Users/chen/repo/mvc-works/map-spec/.shadow-cljs/builds/app/dev/out/cljs-runtime/cljs/core.cljs:11338:1)
at Object.cljs$spec$alpha$Spec$describe_STAR_$arity$1 (/Users/chen/repo/mvc-works/map-spec/.shadow-cljs/builds/app/dev/out/cljs-runtime/map_spec/core.cljc:11:1)
at Object.cljs$spec$alpha$describe_STAR_ [as describe_STAR_] (/Users/chen/repo/mvc-works/map-spec/.shadow-cljs/builds/app/dev/out/cljs-runtime/cljs/spec/alpha.cljs:39:1)
at Object.cljs$spec$alpha$form [as form] (/Users/chen/repo/mvc-works/map-spec/.shadow-cl
@jiyinyiyong
jiyinyiyong / shadow-cljs.edn
Created Apr 22, 2019
Mirrors configs in shadow-cljs
View shadow-cljs.edn
{
:repositories {"central" {:url "https://maven.aliyun.com/nexus/content/groups/public/"}
"clojars" {:url "https://mirrors.ustc.edu.cn/clojars/"}
"maven-central" {:url "https://repo1.maven.org/maven2/"}
"clojars-default" {:url "https://clojars.org/repo"}}
}
@jiyinyiyong
jiyinyiyong / pudica-history.edn
Created Mar 28, 2019
Old history data from Pudica Viewer
View pudica-history.edn
{:states {},
:router {:name :viewer},
:content {:tasks {"S1z3WZSk7X" {:id "S1z3WZSk7X",
:text "没有尾递归的介绍",
:done? false,
:sort-id "T",
:created-time 1531035908457,
:done-time nil,
:archived-time nil},
"W6GwOL21l" {:id "W6GwOL21l",
@jiyinyiyong
jiyinyiyong / slide.md
Last active May 26, 2019
cljs intro in FCC
View slide.md

ClojureScript 的开发体验(演示)


自我介绍

View browser-file-tree.text
.
├── README.md
├── assets
│ └── index.html
├── package.json
├── shadow-cljs.edn
├── src
│ └── app
│ ├── lib.cljs
│ └── main.cljs
View cljs-slide.md

函数式语言 ClojureScript 在前端开发的体验


Me

题叶, ChenYong, 上海

Teambition, 饿了么, 积梦智能(工业大数据).

@jiyinyiyong
jiyinyiyong / orthogonality.text
Created Apr 12, 2018
Find a orthogonality vector based on two existing vectors
View orthogonality.text
line1 = a*i + b*j + c*k
line2 = d*i + e*j + f*k
line3 = x*i + y*j + z*k
line1 .* line3 = ax + by + cz = 0
line1 .* line3 = dx + ey + fz = 0
z = -(ax + by)/c
You can’t perform that action at this time.