#js #lib #performance #gui https://editor.datatables.net/generator/
🤔 想起了 #Qt Model/View 的 delegate 和 createEditor 什么的... 但其实从 row 建立可搜索、可排序、可编辑的 table 并不需要那么多名词吧
https://github.com/fiduswriter/Simple-DataTables
嘛,虽说是 lightweight ,其实连 Date format 都支持...
http://fooplugins.github.io/FooTable/ 感觉还是这个最好看
https://github.com/frappe/datatable 这个也支持 inline editing
https://github.com/future-architect/cheetah-grid 有创意,内带比率可视化支持
https://github.com/mleibman/SlickGrid/wiki/Examples 感觉最糟糕的一个
https://github.com/bvaughn/react-virtualized 第二糟糕的
https://github.com/ratiw/vue-table 最像 Qt 的一个... 不对,这不像 Qt
https://github.com/jiren/StreamTable.js 支持 #stream 但只能用 templating 的一个
http://swimlane.github.io/ngx-datatable/#filter Angluar 的一个
https://github.com/daniel-nagy/md-data-table#demo Material #Design 的一个,作者眼力是不是不好... README.md 那么多示例 table 放着呢
https://clusterize.js.org/ #performance #web 🤔给 <tr> 甚至 <il> <div> tag 做 chunking 的简易 js 优化
🤔 想起了 #Qt Model/View 的 delegate 和 createEditor 什么的... 但其实从 row 建立可搜索、可排序、可编辑的 table 并不需要那么多名词吧
https://github.com/fiduswriter/Simple-DataTables
嘛,虽说是 lightweight ,其实连 Date format 都支持...
http://fooplugins.github.io/FooTable/ 感觉还是这个最好看
https://github.com/frappe/datatable 这个也支持 inline editing
https://github.com/future-architect/cheetah-grid 有创意,内带比率可视化支持
https://github.com/mleibman/SlickGrid/wiki/Examples 感觉最糟糕的一个
https://github.com/bvaughn/react-virtualized 第二糟糕的
https://github.com/ratiw/vue-table 最像 Qt 的一个... 不对,这不像 Qt
https://github.com/jiren/StreamTable.js 支持 #stream 但只能用 templating 的一个
http://swimlane.github.io/ngx-datatable/#filter Angluar 的一个
https://github.com/daniel-nagy/md-data-table#demo Material #Design 的一个,作者眼力是不是不好... README.md 那么多示例 table 放着呢
https://clusterize.js.org/ #performance #web 🤔给 <tr> 甚至 <il> <div> tag 做 chunking 的简易 js 优化
GitHub
GitHub - fiduswriter/simple-datatables: DataTables but in TypeScript transpiled to Vanilla JS
DataTables but in TypeScript transpiled to Vanilla JS - fiduswriter/simple-datatables
duangsuse::Echo
#js #lib #performance #gui https://editor.datatables.net/generator/ 🤔 想起了 #Qt Model/View 的 delegate 和 createEditor 什么的... 但其实从 row 建立可搜索、可排序、可编辑的 table 并不需要那么多名词吧 https://github.com/fiduswriter/Simple-DataTables 嘛,虽说是 lightweight ,其实连 Date format 都支持... …
Clusterize 那个真的不能再小了,才 300 行,大部分精力在做 interactive doc 上吧(这个 doc 也算是很有效了
当然 search, keep <thead> 什么的 还有固定大小 table-layout:fixed 要特殊处理
然后 #CSS counter (内部文本: 数数) 总结下咋支持的:
https://cdn.jsdelivr.net/npm/clusterize.js@0.18.1/clusterize.js
https://cdn.jsdelivr.net/npm/clusterize.js@0.18.1/clusterize.css 只有几条规则而已 魔改者最多只需覆盖1条
#js #ce 还支持 https://developers.google.com/closure/compiler 🤔 不知道这玩意会不会 inline constexpr (肯定不会
https://cdn.jsdelivr.net/npm/clusterize.js@0.18.1/externs.js 如果连 API 都要库作者手写的话,首先设计就有问题, Proguard 不需要
#DontKnow event delegation... scroller 覆盖了控件树,还是需要 delegate 才能听见吗
JQuery 也是比较成功, DOM 都封装好了而且支持 IE
当然 search, keep <thead> 什么的 还有固定大小 table-layout:fixed 要特殊处理
然后 #CSS counter (内部文本: 数数) 总结下咋支持的:
content_elem.style['counter-increment'] = 'clusterize-counter ' + (data.rows_above-1); 这么说 rows_above 始终不为 [] 了..? 应该 把索引0映射到&chunk[0]这样https://cdn.jsdelivr.net/npm/clusterize.js@0.18.1/clusterize.js
https://cdn.jsdelivr.net/npm/clusterize.js@0.18.1/clusterize.css 只有几条规则而已 魔改者最多只需覆盖1条
#js #ce 还支持 https://developers.google.com/closure/compiler 🤔 不知道这玩意会不会 inline constexpr (肯定不会
https://cdn.jsdelivr.net/npm/clusterize.js@0.18.1/externs.js 如果连 API 都要库作者手写的话,首先设计就有问题, Proguard 不需要
#DontKnow event delegation... scroller 覆盖了控件树,还是需要 delegate 才能听见吗
document.getElementById('contentElemId').onclick = function(e) {
e = e || event;
var target = e.target || e.srcElement;
if(target.nodeName != 'TR') return;
// do stuff with row
} $('#contentElemId').on('click', 'tr', function() {}) JQuery 也是比较成功, DOM 都封装好了而且支持 IE
GitHub
Added support of CSS counters. Relates to #126 · NeXTs/Clusterize.js@0db86da
Tiny vanilla JS plugin to display large data sets easily - NeXTs/Clusterize.js
duangsuse::Echo
呃… 昨天晚上半天没睡着,想了一下,记得当时的优化是解决尾递归(当然是 js 层的啦)问题,避免用递归实现(REDO 的)循环,这算是必须的基础算法的优化了。 也就是说,计算器目前的性能应该还有问题,每执行一个操作都要操纵 DOM 两次(单击、读写...)。 本来还想 #TypeScript 重写,突然发觉好像已经是 TS 了…… 我要写的绘图暂时还不打算支持自定义表达式或关系式(特指我亲自编写解析器的版本,本来是早有设计打算的),只能线性 evaluate(x) 来求值 如果现在要实现 evaluator(no)…
安静... 大概是弄错了,看来不需要 data table ,只用好好设计界面就行了 🌚
行吧,先写渲染
行吧,先写渲染
#build https://github.com/stevenjoezhang/fractal-tree/ #bash fix instruction
git clone https://github.com/stevenjoezhang/fractal-tree &&cd fractal-tree
npm install
sed 's/script src="js\/bundle.js"/\0 type="module"/' -i public/index.html
pushd src/js/ &&sed "s/'Three/'three/g" -i environment.js -i index.js -i tree.js
popd
npm start # 会自动 npm run build-dev 输出 public/js/bundle.jsForwarded from 羽毛的小白板
看了看生成的 asm 感觉是因为有两份累加操作使得 CPU 并行执行。归根到底还是目前 RyuJIT 缺 loop opt
https://twitter.com/badamczewski01/status/1357603334706909185
https://twitter.com/badamczewski01/status/1357603334706909185
Twitter
Bartosz Adamczewski
Loop Optimizations can be surprising: #csharp #dotnet #programming
#js #cg #tool #drawing http://paperjs.org/ #doc https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API 草 https://ptsjs.org/ 、 http://scrawl.rikweb.org.uk/ 、 https://zimjs.com/art.html ; https://www.createjs.com/demos/easeljs/filters #game #tools http://fabricjs.com/ 、 https://konvajs.org/
https://apvarun.github.io/graphize/
https://jsoncanvas.org/
https://apvarun.github.io/graphize/
https://jsoncanvas.org/
草 #art #tools #recommended #drawing #learn 这个 Zim 居然是包含一个大 UI 库,各种 CG 示例和控件工具巨多,而且是基于这个看起来独立的 https://createjs.com/ ... 贵圈真牛
NIO 什么的居然都是猫名,看着主页那么杂乱 Logo 有点糊我还以为不是资深弄的呢,没想到是真・大牛
https://zimjs.com/about.html, https://zimjs.com/examples.html
一个 canvas 整得想 ppt 一样,但非常吼玩 还有 https://createjs.com/tools
NIO 什么的居然都是猫名,看着主页那么杂乱 Logo 有点糊我还以为不是资深弄的呢,没想到是真・大牛
https://zimjs.com/about.html, https://zimjs.com/examples.html
一个 canvas 整得想 ppt 一样,但非常吼玩 还有 https://createjs.com/tools
Createjs
CreateJS | A suite of JavaScript libraries and tools designed for working with HTML5
A suite of modular libraries and tools which work together or independently to enable rich interactive content on open web technologies via HTML5.
duangsuse::Echo
补充几个给想吃瓜的链接: #opensource #security #censored https://github.com/net4people/bbs/issues/60 https://github.com/signalapp/Signal-TLS-Proxy/issues/3 频道主觉得,有问题就要改,不要低估伊朗政府的封锁能力吧。 PoC(理念验证) 是用 #golang 写的,送信流是 net.Dial("tcp",s) +二层 tls.Clent(c0,{serverName:server/sni…
后续 #freedom #opensource #github #low Signal 已经把提问的两个人 block 了🌚
https://t.me/anticensorship_epics/123
可以看看这个人的评论 🌝
Detecting MTProxy is no big deal, not “advanced” at all. Their bad design made it so easy to be detected. The difference is that Telegram doesn’t try to hide the facts by disabling issues or shutting people up.
https://github.com/TelegramMessenger/MTProxy/issues/200
They(censoring ISPs) haven’t blocked Signal only because it is new enough and/or they haven’t got the news, not because it is technically impossible.
—订户补充
block的主因是ducksoft往proxy的repo里发pr传自己的poc
signal把这个pr删了,他又传了一次,就被repo block了
https://community.signalusers.org/t/why-signal-blocked-me-from-their-github-orgs/27404/16
但是 Signal 还是没有回应
我觉得吧回复一句「现在正在做更重要的特性,安全性的提升可以到时候再弄」然后安慰一下觉得不安全的终端用户就可以了
https://t.me/anticensorship_epics/123
可以看看这个人的评论 🌝
Detecting MTProxy is no big deal, not “advanced” at all. Their bad design made it so easy to be detected. The difference is that Telegram doesn’t try to hide the facts by disabling issues or shutting people up.
https://github.com/TelegramMessenger/MTProxy/issues/200
They(censoring ISPs) haven’t blocked Signal only because it is new enough and/or they haven’t got the news, not because it is technically impossible.
—订户补充
block的主因是ducksoft往proxy的repo里发pr传自己的poc
signal把这个pr删了,他又传了一次,就被repo block了
https://community.signalusers.org/t/why-signal-blocked-me-from-their-github-orgs/27404/16
但是 Signal 还是没有回应
我觉得吧回复一句「现在正在做更重要的特性,安全性的提升可以到时候再弄」然后安慰一下觉得不安全的终端用户就可以了
Telegram
Epics of Anti-Censorship
更新:Signal 在 GitHub 上 block 了 DuckSoft 和 studentmain~
很荣幸以这种方式被 Signal block~
解决不了问题,就解决提出问题的人!牛逼!
—————
https://github.com/signalapp/Signal-TLS-Proxy/pull/15
欢迎墙下留言,今天大家一起享受 Signal 专属 block 套餐~
很荣幸以这种方式被 Signal block~
解决不了问题,就解决提出问题的人!牛逼!
—————
https://github.com/signalapp/Signal-TLS-Proxy/pull/15
欢迎墙下留言,今天大家一起享受 Signal 专属 block 套餐~
duangsuse::Echo
呃… 昨天晚上半天没睡着,想了一下,记得当时的优化是解决尾递归(当然是 js 层的啦)问题,避免用递归实现(REDO 的)循环,这算是必须的基础算法的优化了。 也就是说,计算器目前的性能应该还有问题,每执行一个操作都要操纵 DOM 两次(单击、读写...)。 本来还想 #TypeScript 重写,突然发觉好像已经是 TS 了…… 我要写的绘图暂时还不打算支持自定义表达式或关系式(特指我亲自编写解析器的版本,本来是早有设计打算的),只能线性 evaluate(x) 来求值 如果现在要实现 evaluator(no)…
目前的状态: 🌝 UI 写了一天,那个硬核自动机的指令序列优化我不敢写了, 鸽子 吧。 目前看来这个量就足够大……
http://nwoodthorpe.com/mathgif/ 这个 拿函数图做动画 挺有意思 🤔 #math
https://www.c-sharpcorner.com/UploadFile/18ddf7/graphing-equation-in-html5-using-canvas/
https://stackoverflow.com/questions/10076307/how-to-draw-a-graph-of-a-mathematical-function-on-an-android-canvas
https://www.c-sharpcorner.com/UploadFile/18ddf7/graphing-equation-in-html5-using-canvas/
https://stackoverflow.com/questions/10076307/how-to-draw-a-graph-of-a-mathematical-function-on-an-android-canvas
Nwoodthorpe
Math Gifs - Nathaniel Woodthorpe
Create animations of transforming math functions.
duangsuse::Echo
晚安熬夜人。
https://duangsuse-valid-projects.github.io/Share/HTMLs/dim2/
愿意给我提供 #math 帮助的朋友可以私信联系我,不论是之前有没有交流的。
项目还有 x 轴的 legend 和 y 轴、 y legend 没实现,整体绘制用的是 h-h*(y/yBounds),效果好一点。
我真的累了,这个弄完了可能又要休息两天吧,积压的两个重写 两个既有 估计又要搁着了。
愿意给我提供 #math 帮助的朋友可以私信联系我,不论是之前有没有交流的。
项目还有 x 轴的 legend 和 y 轴、 y legend 没实现,整体绘制用的是 h-h*(y/yBounds),效果好一点。
我真的累了,这个弄完了可能又要休息两天吧,积压的两个重写 两个既有 估计又要搁着了。
http://www.gifsmos.com/
https://github.com/njchensl/Desmos/blob/master/src/me/nanjingchj/desmos/Window.kt #kotlin
https://github.com/galbar07/Desmos #java #plt #math
https://github.com/ihatecsv/betterthandesmos
https://github.com/njchensl/Desmos/blob/master/src/me/nanjingchj/desmos/Window.kt #kotlin
https://github.com/galbar07/Desmos #java #plt #math
https://github.com/ihatecsv/betterthandesmos
GitHub
njchensl/Desmos
Desmos clone (graphing calculator). Contribute to njchensl/Desmos development by creating an account on GitHub.
duangsuse:
不知道 JS 在 ES6 之前是怎么解决这个问题的,JS 也没有隐式上下文
没有隐含的 this 对象就不能靠设计模式解决这类问题
依云:
js 有 with 啊
duangsuse:
是语法?这么说有人用了?
依云:
是。没见过有人用。
#DontKnow #JS https://blog.csdn.net/zwkkkk1/article/details/79725934
不知道 JS 在 ES6 之前是怎么解决这个问题的,JS 也没有隐式上下文
没有隐含的 this 对象就不能靠设计模式解决这类问题
依云:
js 有 with 啊
duangsuse:
是语法?这么说有人用了?
依云:
是。没见过有人用。
#DontKnow #JS https://blog.csdn.net/zwkkkk1/article/details/79725934
blog.csdn.net
JavaScript中 with的用法_zwkkkk1的博客-CSDN博客_js with
说起js中的with关键字,很多小伙伴们的第一印象可能就是with关键字的作用在于改变作用域,然后最关键的一点是不推荐使用with关键字。听到不推荐with关键字后,我们很多人都会忽略掉with关键字,认为不要去管它用它就可以了。但是有时候,我们在看一些代码或者面试题的时候,其中会有with关键字的相关问题,很多坑是你没接触过的,所以还是有必要说说with这一个关键字。 with的基本用...
Forwarded from dnaugsuz
对了,昨天折腾的一个 TS 项目,你们有人 初中数学 比较好吗
有没有兴趣帮我想想 y 轴怎么画之类的(草
有没有兴趣帮我想想 y 轴怎么画之类的(草
Forwarded from dnaugsuz
你们真没有做过绘制的人嘛
噢对,这里是 Python 群…… 基本都是后端或者框架使用者
能不能问一下绘制算法是
x 轴(y=0) 的绘制点 y 如何定义
y 轴的又如何定义……
就连化 x 轴(y=y_func(vy+yzero) 其中 vy是y offset yzero 是y=0时z ,的方法都是我试出来的
而且中途还修了一个低级数据语义bug
哭死了
噢对,这里是 Python 群…… 基本都是后端或者框架使用者
能不能问一下绘制算法是
ys.forEach((y,x) => g.lineTo(x, h-h* y/yBounds )) 的情况下x 轴(y=0) 的绘制点 y 如何定义
y 轴的又如何定义……
就连化 x 轴(y=y_func(vy+yzero) 其中 vy是y offset yzero 是y=0时z ,的方法都是我试出来的
而且中途还修了一个低级数据语义bug
哭死了