nomango / blog Goto Github PK
View Code? Open in Web Editor NEWMy blog website
Home Page: https://nomango.dev
License: MIT License
My blog website
Home Page: https://nomango.dev
License: MIT License
https://nomango.dev/posts/publish-your-site-on-netlify-app/
什么是NetlifyNetlify 是美国的一家云计算公司,它的官网 Netlify 为用户提供静态网页托管功能。简单来说,只要你准备好网页代码,不需要购买服务器甚至域名,就可以把你的页面发布到互联网上。所以从定位上来说,它非常适合个人网站搭建,因为它零经济成本、零学习成本、甚至零风险。
https://www.notion.so/test-258cfb14776b4414a05aa555127dc1f6
┆summary: hello
https://nomango.dev/posts/elastic-function-query/
什么是function scorefunction_score查询用于控制查询文档的评分,可以把它看做一个套子,套在你的任何查询之上,专门用来修改结果的分值。 这个查询常见的使用场景有两个,一个是简单的modify每个文档的评分,另一个是为了方便自定义排序,比如用来实现一个归一化评分的结果排序。在第二种场景下,直接使用sort排序会过于绝对,因为它会忽略文档本身的相关度。比如按日期排序,得到的结果
https://nomango.dev/posts/streaming-configor/
最近有一个重构 configor 的想法,那就是把它的序列化操作改为流式调用。 之前,序列化一个对象的代码是这样的: 12User u{"John", 18}; // 用户自定义对象 ustd::cout << json::wrap(u); // 序列化到 std::cout 输出 它实际的执行流程大概如下 12configor
https://nomango.dev/posts/jsonxx/
话不多说,先上code! 12345678910// 最简单的方式创建一个json对象json obj = { { "null", nullptr }, { "number", 1 }, { "float", 1.3 }, { &quo
https://nomango.dev/posts/cpp-passing-array-to-functions/
今天看STL源码的时候注意到一个有意思的地方,获取定长数组的长度 std::size 函数的简单实现如下: 1234template <class _Ty, size_t _Size>constexpr size_t size(const _Ty (&)[_Size]) noexcept { return _Size;} 如果阅读这个代码有些困难,它
https://nomango.dev/posts/go-for-range-loop-issue/
在Go 1.13和1.14版本现存一个很玄学的BUG,在for循环中的一个常数会导致无法退出循环,一个简单的示例: 1234567891011package mainfunc main() { nums := []int64{1, 2} for i, _ := range nums { if i + 1 < 1 {
一篇自我介绍
https://nomango.cn/2020/08/31/hello/
Title1 Kiwano xx ff Title1.1中文中文Kiwano中文 Title1.2换行测试换行换行 Title1.2.1很长的文本很长的文本很长的文本很长的文本很长的文本很长的文本很长的文本很长的文本很长的文本很长的文本很长的文本很长的文本很长的文本很长的文本很长的文本很长的文本很长的文本很长的文本很长的文本很长的文本很长的文本很长的文本 Title2很长的文本很长的文本
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.