- 博客(54)
- 资源 (4)
- 收藏
- 关注
原创 初识GCC
初识GCC环境准备方案1Mingw-w64、MingW-W64-buildsVisual Studio Code、System Installer、x64方案2CLion快速测试main.c#include <stdio.h>int main() { printf("Hello, World!\n"); return 0;}在当前目录打开命令行窗口# 编译gcc main.c -o main.exe# 运行main.exeH
2023-04-25 22:49:30
141
原创 关于CMake
PRIVATE : 填充属性 COMPILE_DEFINITIONS# PUBLIC : 填充属性 COMPILE_DEFINITIONS 和 INTERFACE_COMPILE_DEFINITIONS# INTERFACE: 填充属性 INTERFACE_COMPILE_DEFINITIONS。
2023-03-24 23:34:11
452
原创 在QMake中自定义方法
defineTest定义的方法返回true或false,多用于检查某一条件是否成立。在调用时,使用defineTest定义的方法使用来调用。
2023-02-08 20:48:31
225
原创 Termux
软件源pushd $PREFIX/etc/apt# deb https://termux.librehat.com/apt/termux-main/ stable mainorgUrl=$(awk '{print $2}' sources.list)newUrl="https://mirrors.tuna.tsinghua.edu.cn/termux/termux-packages-24"sed -i "s/${orgUrl//\//\\\/}/${newUrl//\//\\\/}/g" sour
2022-06-18 05:17:04
3823
原创 常用CPU架构汇总
Arch指令集寄存器位数兼容IA-32研发公司具体版本/说明x86/IA-32CISC32√Inteli386、i586、i686IA-64CISC64×Intelx64/x86_64/amd64/intel64CISC64√AMDarm32/aarch32RISC32×ARMarm-v7arm64/aarch64RISC64×ARMarm-v8armelRISCN/A×ARM浮点数计算不用...
2022-04-04 17:45:38
501
1
原创 markdown-it
# 准备工作mkdir demo-mditcd demo-mditnpm init -yyarn add markdown-it// 初始化对象Hello
2022-02-19 17:36:27
1292
1
原创 Windows10家庭版安装远程桌面服务
下载RDPWrap.zip运行install.bat启动Service:REM Remote Desktop Servicessc start UmRdpServicesc start TermServicesc query TermService运行RDPConf.exeqe运行RDPCheck.exeC:\Program Files\RDP Wrapper
2022-01-21 21:09:58
2433
原创 基于Docker部署禅道(Zentao)
https://hub.docker.com/r/easysoft/zentaodocker run --name [容器名] -p [主机端口]:80 -v [主机禅道目录]:/www/zentaopms \ -v [主机mysql目录]:/var/lib/mysql \ -e MYSQL_ROOT_PASSWORD=[数据库密码] -d easysoft/zentao:[镜像标签]...
2022-01-17 23:10:31
430
原创 基于Docker部署NextCloud
sudo su -NAME_NET=nc_netNAME_MAIN=nc_mainNAME_DB=nc_dbPWD_DB=my-secret-pwEXPOSE_PORT=8081# 创建Docker网络docker network create \ --gateway 192.168.0.1 \ --subnet 192.168.0.0/16 \ $NAME_NETdocker network ls# 拉取镜像docker pull nextclouddocker pull
2022-01-16 15:44:50
1321
原创 Attention
import numpy as npBATCH_SIZE = 32TIME_STEP = 8X_DIM = 3Y_DIM = 1NUM_HEADS = 2def softmax(x: np.ndarray, axis): """ softmax function """ return np.exp(x) / np.sum(np.exp(x), axis=axis, keepdims=True)def scale_dot_product_attention(
2022-01-11 21:54:22
1499
原创 微信登录Demo
from flask import Flask, requestimport jsonimport requestsapp = Flask(__name__)@app.route("/", methods=["GET", "POST"])def index(): return """<script> window.onload = function() { const wechatA = document.createElement('A');
2021-12-24 01:51:14
522
原创 Jupyter远程配置
# 安装Jupyterpip install jupyter# 生成默认配置文件jupyter notebook --generate-config# 生成密钥python>>>from notebook.auth import passwd>>>passwd()Enter password: Verify password: '<密钥内容>'>>>quit()~/.jupyter/jupyter_noteboo
2021-12-17 21:30:05
199
原创 遍历存储树节点
import jsondef unit(node: dict, dump: dict): # 记录节点 dump['val'] = node['val'] # 遍历节点 for sub_node in node['sub_nodes']: temp = {'val': -1, 'sub_nodes': []} dump['sub_nodes'].append(temp) unit(sub_node, temp)if
2021-05-14 15:56:18
113
原创 DBeaver驱动下载加速
窗口 --> 首选项 --> 连接--> 驱动--> Maven# maven.aliyun.comhttps://maven.aliyun.com/repository/public/# mirrors.huaweicloud.comhttps://mirrors.huaweicloud.com/repository/maven/# 核心仓库https://repo1.maven.org/maven2/
2021-04-23 09:36:23
1873
原创 JS/TS格式化日期
interface Date { format: (this: Date, fmt: string) => string}Date.prototype.format = function (fmt) { const ss = new Map([ [/(M+)/, this.getMonth() + 1], [/(d+)/, this.getDate()], [/(H+)/, this.getHours()], [/(h
2021-04-07 18:14:14
752
原创 Chrome内核浏览器实验室开关
# 深色模式chrome://flags/#enable-force-darkedge://flags/#enable-force-dark# 第三方Cookiechrome://flags/#cookies-without-same-site-must-be-secureedge://flags/#cookies-without-same-site-must-be-secure
2021-04-04 21:16:51
484
原创 通过Python2.7访问Oracle
环境Python 2.7cx_Oracle 7.3.0instantclient-basic-linux.x64-{version}.zipunzip instantclient-basic-*.zipunzip -d cx_Oracle cx_Oracle-*.whl运行run.sh#!/usr/bin/bashexport ORACLE_HOME=`pwd`/instantclient_21_1export LD_LIBRARY_PATH=$ORACLE_HOMEexport
2021-03-08 12:47:55
456
原创 JS设置剪切板内容
function setClipboardText(text) { const input = document.createElement('input'); input.type = 'text'; input.value = text; document.body.appendChild(input); input.select(); document.execCommand("Copy"); input.remove();}
2021-03-03 10:20:28
1331
原创 Windows10 OpenSSH-Server
下载OpenSSH-Win64.zipREM 安装powershell install-sshd.ps1REM 启动服务sc start sshd
2021-01-20 20:36:49
146
原创 Windows10 创建系统还原点
# 设置允许Check的频率(分钟)$frequency = 60Set-ItemProperty -Path "Registry::HKLM\Software\Microsoft\Windows NT\CurrentVersion\SystemRestore" -Name "SystemRestorePointCreationFrequency" -Type "DWord" -Value $frequency$key = Get-ItemProperty -Path "Registry::HKLM\
2021-01-13 23:34:01
291
原创 启用Powershell脚本(因为在此系统上禁止运行脚本)
get-executionpolicy# Restrictedset-executionpolicy remotesigned# Yget-executionpolicy# RemoteSigned
2021-01-13 23:11:56
268
原创 Jquery serializeObject
/** * 获取Form表单数据 * @param {string} form * @param {Array<string>} [include] * @param {Array<string>} [exclude] */function serializeObject(form, include, exclude) { var obj = $(form).serializeArray(); include = include || []; ex
2021-01-12 11:29:37
379
原创 OJDBC在Linux系统下Connection速度慢解决方案
# 性能问题命令java -cp .:ojdbc8.jar Main# 优化后命令java -Djava.security.egd=file:/dev/urandom -cp .:ojdbc8.jar Main
2021-01-04 14:05:33
333
原创 安装Oracle数据库
安装Oracle数据库参考链接Prerequisite ChecksHard Limit: maximum open file descriptorsThis is a prerequisite condition to test whether the hard limit for "maximum open file descriptors" is set correctly. (more details)Expected Value : 65536Actual Value : 4096
2020-12-29 16:15:49
426
RDPWrap(Windows家庭版远程桌面服务启动插件)
2022-01-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人