2020-11-25 Robin Wen
文/Robin MiFi 可能对大家是一个新词,全称叫做 Mixin DeFi,也就是 Mixin 生态的 DeFi 应用。在之前的文章中对 MiFi 做了介绍,今天本位想再聊聊这个话题。 目前活跃的 MiFi 应用,主要是我们团队开发的 ExinSwap 和 Fox.ONE 团队开发的 4swap。说一些数据对比: ExinSwap:当前资金池总量价值 448.50 万美金,24 小时总交易量 45.53 万美金,历史最高接近 80 万美金; 4swap:当前资金池总量价值 398.88 万美金,24 小时总交易量 25.40 万美金,历史最高没有展示。 ExinSwap 和 4swap 两个 DeFi 产品,加起来可能 继续阅读 »
2012-12-30 Klaus Ma
In a large cluster, some un-expected long running task hold back the job’s runtime sometimes. And those long running tasks are hard to locate in such a large cluster. Some ideas are shown here to help to locate those long running tasks. One of them will be implemented in the coming released of OGL. 继续阅读 »
2018-11-18 Xie Jingyi
Motivation Functor solves the problem of mapping regular one-parameter functions into a sub-category, but that's not easy for functions with more than one parameters. Let's consider a function with two parameters f :: a -> b -> c, which can also read as a -> (b -> c). Applying fmap on f, we will get fmap f :: m a -> 继续阅读 »
2016-06-26 ruki
Typically, you only need to execute the following command for compiling project. bash xmake xmake will probe your host environment and target platform automaticly. The default mode is release and xmake will compile all targets. You can compile only one given target which name is 'test' for executing the follo 继续阅读 »
2016-09-26 Piasy
渊源 我从 15 年 9 月份开始了解到快速打包相关的技术,此时已经饱受 Gradle 打包龟速的痛苦,一次 one line edit build 就要一分半钟。 首先了解到的是 LayoutCast,但由于它只支持 Android 5.0 以上(ART)的手机,虽然 5.0 的测试机肯定有,但还有大多数测试机不是 5.0,还是有很多时候会比较慢,所以没有采用。 继续阅读 »
2020-07-25 Robin Wen
文/Robin 由于工作的特殊性,我常年同时使用 4 台手机,2 台 iPhone,2 台 Android 机。其中一台手机是 OnePlus,也就是一加。 可能读者对 OnePlus 陌生,在此笔者做简短的介绍。 一加(全称:深圳市万普拉斯科技有限公司,英语:OnePlus)是中国一家行动通讯终端装置研制与软件开发的企业,于 2012 年 10 月 14 日由刘作虎和裴宇主导成立,其产品于全球多国市场销售。 2019 年 10 月 15 日,一加发布 OnePlus 7T。发布会刘作虎透露关键信息,目前一加手机销量海外占比已经达到 70%,而在国内的占比只占 30%。 2020 年 4 月 16 日,一加发布 One 继续阅读 »
2016-06-06 craneyuan
Question Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the linked list becomes 1->2->3->5. Note: Given n will always be valid. Try to do this in one pass. 解说 这道题的意思是,如何反向删 继续阅读 »
2016-05-06 craneyuan
Question Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution. Example: Given nums = [2, 7, 11, 15], target = 9, Because nums[0] + nums[1] = 2 + 7 = 9, return [0, 1]. UPDATE (2016/2/13): The return forma 继续阅读 »
2015-11-27 Oliver Wang
直接写 js function imgError(image) { image.onerror = null; // prevent event bubble image.src = "/images/noimage.gif"; return true; } html 使用 jQuery ```js $("img").error(function () { $(this).unbind("error").attr("src", "broken.gif"); }); //If you use this technique you can use the "one" method to av 继续阅读 »
2017-06-18 MoreFreeze
上一篇 CH31 Basic Regular Expressions /和?,前者向后找,后者向前找 CH32 Case Study: Grep Operator, Part One :nnoremap g :grep -R .可以搜索,表示光标下的单词(包括连字符,比更大),之后可以用:cwindow查看quickfix窗口 以上还有一点要修改,如果光标在一个foo;ls下,使用后实际会执行ls命令,原理和SQL注入类似,所以需要用单引号保证字面值,:nnoremap g :grep -R '' . 但上面对于光标有单引号的不启作用,用:echom shellescape(expand(""))可以显示shellescap 继续阅读 »