随笔分类 -  代码收藏

平时工作中或业余时编写的一些代码
摘要:Python开发环境准备 先安装python和miniconda conda create -n ocr-test python=3.12.8 conda env list conda activate ocr-test pip install paddlepaddle==3.1.0 pip ins 阅读全文
posted @ 2025-08-23 10:45 0611163 阅读(170) 评论(0) 推荐(0)
摘要:创建一个文件EnableHyperV.cmd,内容如下: pushd "%~dp0" dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt for /f %%i in ('findstr /i . hyper-v.txt 阅读全文
posted @ 2025-03-12 08:34 0611163 阅读(260) 评论(0) 推荐(0)
摘要:配置如下: server { listen 8161; server_name localhost; location / { root D:/地图瓦片/合肥电子地图高德瓦片; index index.html index.htm; # 关键CORS配置 add_header 'Access-Con 阅读全文
posted @ 2025-02-25 08:45 0611163 阅读(280) 评论(0) 推荐(0)
摘要:C# WebSocket 后端代码: using Newtonsoft.Json; using SuperSocket.WebSocket; using System; using System.Collections.Concurrent; using System.Collections.Gen 阅读全文
posted @ 2022-04-27 14:47 0611163 阅读(144) 评论(0) 推荐(0)
摘要:server { listen 8000; server_name localhost; location / { root D:/Project/guns/dist; index index.html index.htm; } location /api/ { proxy_pass http:// 阅读全文
posted @ 2022-04-26 12:10 0611163 阅读(50) 评论(0) 推荐(0)
摘要:实现地图瓦片纠偏的leaflet.mapCorrection.js代码: //坐标转换 L.CoordConvertor = function () { /**百度转84*/ this.bd09_To_gps84 = function (lng, lat) { var gcj02 = this.bd 阅读全文
posted @ 2021-11-26 10:29 0611163 阅读(2259) 评论(0) 推荐(1)
摘要:使用的是 Python 3 代码: #!/usr/bin/python # -*- coding: gbk -*- # JSON数据导出到csv文件 import json import pandas file = open("data//001.txt", "r", encoding="utf-8 阅读全文
posted @ 2021-03-24 17:01 0611163 阅读(663) 评论(0) 推荐(0)
摘要:docker run hellp-worlddocker run it -p 7777:8080 atguigu/mytomcat:1.2 docker imagesdocker images -a 列出所有docker images -q 只显示镜像IDdocker images --digest 阅读全文
posted @ 2021-03-06 21:11 0611163 阅读(132) 评论(0) 推荐(0)
摘要:代码: # coding=gbk # 从HostWrites.csv读取数据并分组统计 import pandas import datetime print "\r\n从 HostWrites.csv 读取数据并分组统计\r\n" excel = pandas.read_csv("D:\Progr 阅读全文
posted @ 2021-03-04 16:10 0611163 阅读(902) 评论(0) 推荐(0)
摘要:WPF通过WindowChrome实现Window无边框窗体阴影效果 代码: <Window x:Class="SunCreate.PACP.Client.UI.GIS.CameraDetailsWin" xmlns="http://schemas.microsoft.com/winfx/2006/ 阅读全文
posted @ 2020-09-18 15:58 0611163 阅读(2446) 评论(2) 推荐(0)
摘要:leaflet有个绘图插件Leaflet.draw,但是我不想要它的控件,只想用它的绘制功能,控件我自己提供,当时不知道如何使用,就自己写了个绘制点线面圆和椭圆的工具,代码如下: /// <reference path="define.js" /> /// <reference path="icon 阅读全文
posted @ 2020-08-01 10:16 0611163 阅读(1975) 评论(1) 推荐(1)
摘要:(地图瓦片纠偏最好的方法在这:https://www.cnblogs.com/s0611163/p/15606460.html) 地图区域是一个市,偏移量可以近似认为是固定不变的,通过修改Leaflet-src.js源码中的_update方法和_addTile方法对瓦片进行偏移纠偏。 Leaflet 阅读全文
posted @ 2020-07-29 14:09 0611163 阅读(3150) 评论(0) 推荐(0)
摘要:TreeViewItem、TextBox、Button、RichTextBox、ComboBox、GroupBox、带Path的Button、ContextMenu样式: <!-- Separator模板 --> <ControlTemplate x:Key="tmplSeparator" Targ 阅读全文
posted @ 2020-01-16 19:24 0611163 阅读(284) 评论(0) 推荐(0)
摘要:HTML代码: <!DOCTYPE html> <html> <head> <title>Vue Demo</title> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta nam 阅读全文
posted @ 2020-01-15 17:26 0611163 阅读(1549) 评论(0) 推荐(0)
摘要:(地图瓦片纠偏最好的方法在这:https://www.cnblogs.com/s0611163/p/15606460.html) 对于地图坐标偏移,以leaflet为例,有如下解决办法 方法1、修改leaflet源码,解决地图坐标偏移问题 方法2、将点位真实的经纬度经过偏移算法,添加到加密的地图上 阅读全文
posted @ 2019-12-13 14:25 0611163 阅读(3842) 评论(0) 推荐(2)
摘要:说明:在同一窗口打开链接,只要稍加改造就可以实现,这里实现的是在新Tab页打开链接,并且支持带type="POST" target="_blank"的链接 github和bitbucket上相关问题: 1、WPF empty POST data when using custom popup htt 阅读全文
posted @ 2019-12-13 12:13 0611163 阅读(4460) 评论(2) 推荐(3)
摘要:代码: <RichTextBox CaretBrush="#fff" Background="Transparent" BorderThickness="0"> <FlowDocument FontSize="16" Foreground="#fff"> <Paragraph LineHeight= 阅读全文
posted @ 2019-08-14 18:50 0611163 阅读(1833) 评论(0) 推荐(1)
摘要:TestModel类定义: public class TestModel{ public int Id { get; set; } public string Name { get; set; } public string Code { get; set; } } Dictionary与List定 阅读全文
posted @ 2019-08-02 16:06 0611163 阅读(2881) 评论(2) 推荐(3)
摘要:Install.bat: @echo off "%~dp0InstallUtil\InstallUtil.exe" "%~dp0DataSyncService.exe" %SystemRoot%\system32\sc config DataSyncService start= auto %Syst 阅读全文
posted @ 2019-06-12 08:52 0611163 阅读(440) 评论(0) 推荐(0)
摘要:后期生成事件命令行代码: cd /d $(DevEnvDir)cd..cd..cd VC\bineditbin /largeaddressaware $(TargetPath) 阅读全文
posted @ 2019-06-06 17:16 0611163 阅读(1126) 评论(0) 推荐(0)