会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Ajanuw
做自己的King
博客园
首页
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
40
下一页
2021年1月15日
nodejs stream 创建读写流
摘要: const fs = require("fs"); const { Writable, Readable, Duplex, Transform } = require("stream"); // 双向流 const inoutStream = new Duplex({ // 获取写入的数据 writ
阅读全文
posted @ 2021-01-15 13:04 Ajanuw
阅读(449)
评论(0)
推荐(0)
2021年1月13日
asm FPU 寄存器
摘要: TOP-- TOP++ 顶部 ST(0) ST(1) ST(2) ST(3) ST(4) ST(5) ST(6) ST(7) 底部 指令后的注释通常是执行后的结果 push section .data f dd 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0,
阅读全文
posted @ 2021-01-13 14:50 Ajanuw
阅读(104)
评论(0)
推荐(0)
2021年1月9日
Nestjs 上传文件到七牛云
摘要: $ npm install qiniu import * as url from 'url'; import * as qiniu from 'qiniu'; @Post('upload') @UseInterceptors(FileInterceptor('file')) async upload
阅读全文
posted @ 2021-01-09 13:48 Ajanuw
阅读(546)
评论(0)
推荐(0)
Nodejs file path to url path
摘要: import * as path from 'path'; import * as url from 'url'; const savePath = path.join('public', 'images', 'a.jpg'); // => \public\images\a.jpg const ur
阅读全文
posted @ 2021-01-09 11:23 Ajanuw
阅读(175)
评论(0)
推荐(0)
2021年1月7日
Nestjs mongodb
摘要: nestjs 文档 mongoose 文档 使用"@meanie/mongoose-to-json"转换查询后返回的json数据 将"_id"转为"id",并删除"__v"字段 import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose
阅读全文
posted @ 2021-01-07 13:06 Ajanuw
阅读(724)
评论(0)
推荐(0)
2021年1月5日
宝塔部署Nestjs
摘要: 1. 在宝塔上下载pm2 2. 打包你的服务端代码 "npm run build && cp ./package.json ./dist/" 3. 在宝塔文件"/www/wwwroot/"下创建一个文件,将打包的服务器代码放进去 4. 打开pm2管理器,添加你的项目 注: 启动时,会自动执行"npm
阅读全文
posted @ 2021-01-05 19:43 Ajanuw
阅读(2191)
评论(0)
推荐(0)
2021年1月2日
c++ 设置桌面壁纸(win)
摘要: #include <iostream> #include <Windows.h> int main() { const char* path = "C:\\Users\\ajanuw\\Pictures\\Saved Pictures\\1.jpg"; SystemParametersInfoA(S
阅读全文
posted @ 2021-01-02 20:18 Ajanuw
阅读(2310)
评论(0)
推荐(1)
2020年12月30日
flutter 让app跟随系统的theme
摘要: 首先你需要在“MaterialApp”设置两套theme MaterialApp( theme: myTheme, // light darkTheme: ThemeData.dark(), // dark ); 在 widget 中这样判断当前模式 final isDark = MediaQuer
阅读全文
posted @ 2020-12-30 10:46 Ajanuw
阅读(882)
评论(0)
推荐(0)
2020年12月29日
Android 获取apk的URL Schemes
摘要: 1. 下载apk到你的PC上 2. 反向工程Android APK文件的工具 Apktool 3. 查看"AndroidManifest.xml"文件 See alse: https://developer.android.com/training/app-links/deep-linking?hl
阅读全文
posted @ 2020-12-29 19:04 Ajanuw
阅读(2536)
评论(0)
推荐(0)
2020年12月28日
nasm 函数返回一个数组 x86
摘要: getArguments.asm: extern VirtualAlloc section .text global dllmain export getArguments dllmain: mov eax,1 ret 12 getArguments: push ebp mov ebp,esp pu
阅读全文
posted @ 2020-12-28 22:10 Ajanuw
阅读(124)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
40
下一页