首页
网络资源
技术分享
云资源
分享你我
行动起来,活在当下
累计撰写
117
篇文章
累计创建
13
个标签
累计收到
0
条评论
栏目
首页
网络资源
技术分享
云资源
目 录
CONTENT
最新文章
expo在安卓端设置徽标问题
expo在安卓端设置徽标是可以的但是清除、获取当前徽标数均有问题。下面通过注册插件方式加载原生代码解决 import { ConfigPlugin, withAndroidManifest, AndroidConfig } from '@expo/config-plugins'; import {
2025-03-24
9
0
0
expo apns令牌映射fcm令牌原生注册插件
使用expo-notifications获取原生推送ID时在IOS端得到的是apns令牌,需要自己转换 import { ConfigPlugin, withDangerousMod, withInfoPlist } from '@expo/config-plugins'; import { mer
2025-03-24
10
0
0
APNS令牌注册给FCM
const {JWT} = require('google-auth-library'); const axios = require('axios'); function getAccessToken() { return new Promise(function(resolve, rej
2025-03-20
11
0
0
使用docker打包expo项目apk
下面的配置是打包EXPO 51SDK配置 从git拉取打包 # docker build -t build-app-expo -f Dockerfile_git . # docker run -it -e GIT_REPO_URL=gitee.com/retur0/expo.git -e GIT_
2025-03-11
14
0
0
js解析sh文件
class ShellParser { constructor() { this.variables = {}; // 普通变量 this.exports = {}; // 导出变量 this.sections = []; // 所
2025-03-09
14
0
0
golang使用koanf读取yaml文件并监听文件更新
监听文件更新时更新指定值 支持通过结构体指定标签过滤更新 var mu sync.RWMutex // Cfg 是全局配置 var Cfg atomic.Value // 使用 atomic.Value 来存储配置 func InitConfig() { newCfg := &models.C
2024-12-24
36
0
0
golang使用koanf读取yaml文件支持读取默认值
// Cfg 是全局配置 var Cfg *models.Config func InitConfig() { // 创建 Koanf 实例 k := koanf.New(".") proxy := file.Provider("conf/proxy.yaml") // 加载第一个配置文件
2024-12-23
36
0
0
nginx或caddy反代套了cf的域名
Nginx配置 在Nginx配置文件中添加以下段内容(将www.example.com更换为目标地址) # 反向代理配置 location / { # 将所有请求转发到后端服务器 https://www.example.com:443 proxy_pass ht
2024-12-23
16
0
0
nodejs 实现一个插件式框架,支持热插热拔
目录结构 project/ ├── plugins/ │ ├── shopSignIn.js // 示例插件 ├── PluginFramework.js // 插件框架 ├── HotReloadPluginFramework.js // 插件框架 ├── PluginParser.js // 规
2024-12-16
33
0
0
golang实现http代理服务
package main import ( "crypto/tls" "fmt" "io" "log" "net" "net/http" "net/http/httputil" "net/url" "strings" "time" ) // 默认目标连接超时时间 const
2024-11-30
41
0
0
1
2
3
4
5
...
12