DiamondYuan 最近的时间轴更新
DiamondYuan

DiamondYuan

V2EX 第 216901 号会员,加入于 2017-02-23 16:27:52 +08:00
根据 DiamondYuan 的设置,主题列表被隐藏
二手交易 相关的信息,包括已关闭的交易,不会被隐藏
DiamondYuan 最近回复了
我一直有一个疑问, 如果你加了上传图片的功能, 不就是开发了另一个 eagle 么。
你恶心阿里巴巴,和我蚂蚁金服有什么关系 🐶
可以考虑 windows 掌机 + iPad 。

1. 出门在外想玩游戏, 可以直接拿 win 掌机。
2. 需要大屏幕的 windows 。 可以直接拿 iPad 远程桌面到 win 掌机, 这样相当于一台 windows 的笔记本。
3. 在家需要躺着玩高性能的游戏, 可以拿 win 掌机串流到高性能的 pc 上。 把 win 掌机当成一个带屏幕,电池的手柄。



我自己的设备是

gpd win4 + ipad pro 12.9 + macbook 14 寸 + pc 台式机
你可以去阿里, 那边都是 花名 + 老师。

这个称呼应该是从 马老师发展而来的。
236 天前
回复了 beimengyeyu 创建的主题 程序员 如何对比两个 list 的差异
```

/**
* diff 函数
* @param {any} newList 新数组
* @param {any} oldList 旧数组
*/
const diff = function(newList, oldList) {
// lastIndex:即访问过元素的最右下标
let lastIndex = 0;

// 遍历新数组
for(let i = 0, len = newList.length; i < len; i++) {
// 查找当前元素在旧数组的下标
let index = getIndex(newList[i], oldList);

// 若该元素在旧数组中存在
if(index !== -1) {
// 若该元素在旧数组的下标小于最右下标 lastIndex
if(index < lastIndex) {
// 移动元素:from index to i
move(newList[i], i, index);
}

// 更新 lastIndex ,取 index 和 lastIndex 的较大者
lastIndex = Math.max(index, lastIndex);
}
// 若该元素不在旧数组,说明这是个新加入元素
else {
// 插入元素:append to i
append(newList[i], i);
}
}

// 遍历旧数组
for(let i = 0, len = oldList.length; i < len; i++) {
// 若发现当前元素在新数组中不存在,说明这个元素需要移除
if(getIndex(oldList[i], newList) === -1) {
// 移除元素:remove from i
remove(oldList[i], i);
}
}
}

/**
* 找出元素在数组的下标,找不到返回-1
* @param {T} item 要找的元素
* @param {Array<T>} list 目标数组
*/
const getIndex = function(item, list) {
// 对比 key
return list.findIndex(i => i.key === item.key);
}


```

你这个听起来很像前端的 diff

https://github.com/phenomLi/Blog/issues/24
272 天前
回复了 fyooo 创建的主题 Node.js NodeJS 通过 pkg 打包发布可行吗?
如果你想在服务器上运行,推荐使用 docker

如果你想把 nodejs 发给别人,可以试试看 pkg
可以看看国产的 ar 眼镜。

我个人买了雷鸟 air ,下面是我的体验。

戴在头上相当于 27 寸 1080P 的显示器。 可以看文档、写代码。
我在公司的时候会躺在椅子上,用 AR 眼镜看视频、刷网页。 好处是同事不知道你在看什么。



优点

1. 重量 80g, 待久了不太痛。
2. typec 连线,无需充电,即插即用。
3. 隐私性比较好。

缺点
1. 连 Mac 没办法调节音量
2. 无法直接连 iPhone
3. 需要配近视镜片,如果没配好,可能看不清字。
4. 时间长了眼睛会有点酸痛。
1. shadow-dom
2. iframe


我建议用 shadow-dom
280 天前
回复了 fuo 创建的主题 程序员 utools 中的 json 格式化插件有没有其他替代品?
文石 tab8 墨水屏版


1. 安卓系统
2. 自带手写笔记,支持录音转写。 手写笔无需充电
3. 阅读体验不错
关于   ·   帮助文档   ·   博客   ·   nftychat   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2609 人在线   最高记录 5634   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 17ms · UTC 13:05 · PVG 21:05 · LAX 06:05 · JFK 09:05
Developed with CodeLauncher
♥ Do have faith in what you're doing.