随笔分类 -  代码收藏

平时工作中或业余时编写的一些代码
摘要: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 阅读(118) 评论(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 阅读(39) 评论(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 阅读(1764) 评论(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 阅读(634) 评论(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 阅读(117) 评论(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 阅读(855) 评论(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 阅读(2375) 评论(2) 推荐(0) 编辑
摘要:leaflet有个绘图插件Leaflet.draw,但是我不想要它的控件,只想用它的绘制功能,控件我自己提供,当时不知道如何使用,就自己写了个绘制点线面圆和椭圆的工具,代码如下: /// <reference path="define.js" /> /// <reference path="icon 阅读全文
posted @ 2020-08-01 10:16 0611163 阅读(1807) 评论(1) 推荐(1) 编辑
摘要:(地图瓦片纠偏最好的方法在这:https://www.cnblogs.com/s0611163/p/15606460.html) 地图区域是一个市,偏移量可以近似认为是固定不变的,通过修改Leaflet-src.js源码中的_update方法和_addTile方法对瓦片进行偏移纠偏。 Leaflet 阅读全文
posted @ 2020-07-29 14:09 0611163 阅读(2859) 评论(0) 推荐(0) 编辑
摘要:TreeViewItem、TextBox、Button、RichTextBox、ComboBox、GroupBox、带Path的Button、ContextMenu样式: <!-- Separator模板 --> <ControlTemplate x:Key="tmplSeparator" Targ 阅读全文
posted @ 2020-01-16 19:24 0611163 阅读(270) 评论(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 阅读(1539) 评论(0) 推荐(0) 编辑
摘要:(地图瓦片纠偏最好的方法在这:https://www.cnblogs.com/s0611163/p/15606460.html) 对于地图坐标偏移,以leaflet为例,有如下解决办法 方法1、修改leaflet源码,解决地图坐标偏移问题 方法2、将点位真实的经纬度经过偏移算法,添加到加密的地图上 阅读全文
posted @ 2019-12-13 14:25 0611163 阅读(3540) 评论(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 阅读(4150) 评论(2) 推荐(3) 编辑
摘要:代码: <RichTextBox CaretBrush="#fff" Background="Transparent" BorderThickness="0"> <FlowDocument FontSize="16" Foreground="#fff"> <Paragraph LineHeight= 阅读全文
posted @ 2019-08-14 18:50 0611163 阅读(1796) 评论(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 阅读(2849) 评论(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 阅读(426) 评论(0) 推荐(0) 编辑
摘要:后期生成事件命令行代码: cd /d $(DevEnvDir)cd..cd..cd VC\bineditbin /largeaddressaware $(TargetPath) 阅读全文
posted @ 2019-06-06 17:16 0611163 阅读(1106) 评论(0) 推荐(0) 编辑
摘要:例: Install-Package CefSharp.Wpf -Version 73.1.130 Install-Package CefSharp.Common -Version 73.1.130 Install-Package CefSharp.Wpf -Source C:\Users\suxi 阅读全文
posted @ 2019-05-30 17:48 0611163 阅读(5231) 评论(0) 推荐(0) 编辑
摘要:注意权限问题 1.查看是否有被锁的表: select b.owner,b.object_name,a.session_id,a.locked_modefrom v$locked_object a,dba_objects b where b.object_id = a.object_id 2.查看是哪 阅读全文
posted @ 2019-05-30 15:06 0611163 阅读(10295) 评论(1) 推荐(0) 编辑
摘要:代码: public static void DoEvents(Dispatcher dispatcher) { DispatcherFrame frame = new DispatcherFrame(); dispatcher.BeginInvoke(new Action<object>((obj 阅读全文
posted @ 2019-05-27 15:53 0611163 阅读(445) 评论(0) 推荐(0) 编辑