muyunyun / flow Goto Github PK
View Code? Open in Web Editor NEWEfficiency tools. Don't repeat yourself(DRY).
Efficiency tools. Don't repeat yourself(DRY).
需要配置什么环境吗 node 我已经有了
到公司自动连上公司 wifi.
掘金的接口换成 web-api.juejin.im/search 了,post请求。。。
const options = {
/* 省略 */
'juejin': {
hostname: 'web-api.juejin.im',
method: 'post',
path: '/query',
headers: {
'Content-Type': 'application/json',
'X-Agent': 'Juejin/Web',
},
},
}[item]
function getJueJin(handleDataFn) {
const req = https.request(options, (res) => {
res.setEncoding('utf8');
res.on('data', (chunk) => {
content += chunk;
}).on('end', () => {
const jsonContent = JSON.parse(content);
handleDataFn(jsonContent);
});
});
req.write(JSON.stringify({
extensions: {
query: { id: 'a53db5867466eddc50d16a38cfeb0890' },
},
operationName: '',
query: '',
variables: {
after: '',
first: 100,
period: 'ALL',
query: keyword,
type: 'ARTICLE',
order: 'POPULAR',
},
}));
req.end();
}
// 对应的掘金结果
getJueJin((jsonContent) => {
const result = jsonContent.data.search.edges;
for (let i = 0; i < result.length; i++) {
const item = result[i].node.entity;
const author = item.user;
result_array.push({
title: item.title,
subtitle: `点赞数${item.collectionCount} 作者: ${author.username}${author.jobTitle ? `(${author.jobTitle})` : ''}`,
arg: item.originalUrl,
icon: {
path: join(__dirname, '/17C80585-EC4F-498F-AB91-DBA6EBEA4C9D.png'),
},
mods: {
cmd: {
arg: item.originalUrl,
subtitle: item.content,
},
},
});
}
showItem(result_array);
});
出现原因:
我的macbook中是使用nvm安装node的,导致这里node无法找到,
解决方案:
是否能通过shell命令获取相关的node的路径,然后动态修改的node代码中的路径
使用 gold 无法在掘金内搜索
It can be based chatgpt-api.
大佬求更新
将某一个文件移动到目标文件夹中每次手动移动调整目录位置重复繁琐。
比如需要:
a. 将技术 PPT 一键移动到技术分享文件中;
b. 收到的简历文件一键移动到简历文件夹中;
c. 等等
概括:当前有以下两方案可以满足该 issue 场景,经验证方案一提供的社区 alfred 插件可以满足可以满足该 issue 场景,此外 Alfred Actions 内置的 action 存在 Copy To、Move To 等指令,后续如果有必要也可以基于其进一步封装;
【待定】
调研
有可能添加京东搜索吗, 就像淘宝一样的
是否可参考 YoudaoTranslator,使用 txiki 移除 node.js?
您好,现在比如我输入zh,会出来知乎的图标,但当我再输入空格和后续内容时,就显示使用google搜索了。而且没有出现您图上说的智能联想,所以是跟我没安装node环境有关系么,还是因为我用的是Alfred 4?
——自己解决了,确实就是安一下node就好了,打扰了,嘿嘿
一般会存在公司项目文件夹,个人项目文件夹。需要支持使用 code 打开访问这些文件夹项目。
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.