最近创建了一个网站,因为文件很大,而且,使用 vue 自身压缩,总是出错,所以,最后选择了 nginx 压缩。
jetbrains | 快捷键不可用
今天使用 IDEA 突然发现之前使用的快捷键不能用了。
python | 在 linux 上安装 python
有的库我们需要 3.7 + 版本,所以,这里给出的方案是,在不需要安装其他虚拟环境,如 anaconda 情况下,安装 3.7 版本。
spider | 爬取 twitter
这里讲一下怎么爬取 twitter。
eth | web3.js subscribe 「pending」
这里是 web3.js 订阅相关的知识。
eth | logs 解析
这是 eth 中对 logs 的解析。
eth | web3.js 部分版本在 vue 项目引用中出错
最近在 vue 项目中,引用了 web3.js ,但是,会出错。
出现
ModuleParseError: Module parse failed: C:\Path\node_modules\web3-core-helpers\lib\formatters.js Unexpected token (296:20)
You may need an appropriate loader to handle this file type.
| // If options !== undefined, don't blow out existing data
| if (options.fromBlock === undefined)
| options = { ...options, fromBlock: 'latest' };
| if (options.fromBlock || options.fromBlock === 0)
| options.fromBlock = inputBlockNumberFormatter(options.fromBlock);
at C:\Path\node_modules\webpack\lib\NormalModule.js:303:19
at C:\Path\node_modules\webpack\lib\NormalModule.js:209:11
at C:\Path\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (C:\Path\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
at C:\Path\node_modules\loader-runner\lib\LoaderRunner.js:205:4
at C:\Path\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:70:14
at processTicksAndRejections (internal/process/task_queues.js:75:11)
eth | 使用 web3.js 获取最新区块的所有信息
这个是写项目的需要,用来过滤自己需要的交易信息。