摘要: 最近一直在研究微服务相关内容,通过对比各大API网关,发现新起之秀 APISIX无论从开源程度上来讲还是功能上,都拥有很大的优势。 经历了几天折磨一样的学习,目前在本地环境中配置成功了一套,以供自己留存吧,实在是网上的很多文章要么太老了,要么就是乱写一通。 APISIX官方网址:https://ap 阅读全文
posted @ 2023-05-10 12:44 star丶清影 阅读(482) 评论(2) 推荐(1) 编辑
摘要: 服务器端: 引用nuget: 1、Microsoft.AspNet.SignalR.SelfHost 2、Microsoft.Owin.Cors internal class Program { static void Main(string[] args) { string uri = "http 阅读全文
posted @ 2023-04-02 23:40 star丶清影 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 最近在给某个主播开发斗鱼直播间辅助工具,为了程序的高效稳定,也搜索了大量的资料,经过大量什么百度,谷歌搜索。。。 虽然有很多Python的脚本及JS脚本实现了拉取斗鱼弹幕信息,但是这些年来的开发职业病告诉我,这满足不了对系统的控制欲望。。 后来,找啊。。。找啊。。。意外间发现这个文档。。。。废话不多 阅读全文
posted @ 2020-04-07 15:25 star丶清影 阅读(1555) 评论(0) 推荐(0) 编辑
摘要: Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (hpvDest As Any, hpvSource As Any, ByVal cbCopy As Long) Private Declare Function 阅读全文
posted @ 2016-02-24 00:15 star丶清影 阅读(466) 评论(1) 推荐(0) 编辑
摘要: 寫 ASP.NET 有時候會想要在畫面輸出前一刻進行攔截,並換掉 html 中的特定字元。例如網站中有許多頁面都有 www.google.com.tw 的超連結,我希望在測試機上可以把連結換成 www.microsoft.com.tw ,但又不希望去動到 aspx。這個時候就可以利用 Respons 阅读全文
posted @ 2016-02-24 00:14 star丶清影 阅读(290) 评论(0) 推荐(1) 编辑
摘要: SELECT 表名 = Case When A.colorder=1 Then D.name Else '' End, 表说明 = Case When A.colorder=1 Then isnull(F.value,'') Else '' End, 字段序号 = A.colorder, 字段名 = 阅读全文
posted @ 2015-07-17 13:30 star丶清影 阅读(311) 评论(0) 推荐(0) 编辑
摘要: #region 正方型裁剪并缩放 /// <summary> /// 正方型裁剪 /// 以图片中心为轴心,截取正方型,然后等比缩放 /// 用于头像处理 /// </summary> /// <param name="fromFile">原图Stream对象</param> /// <param 阅读全文
posted @ 2015-07-17 13:29 star丶清影 阅读(1552) 评论(0) 推荐(0) 编辑
摘要: #include <Windows.h> #include <Ntsecapi.h> #include <Aclapi.h> #include <tlhelp32.h> #pragma comment (lib,"Kernel32.lib") #pragma comment (lib,"Advapi 阅读全文
posted @ 2015-07-17 13:28 star丶清影 阅读(594) 评论(0) 推荐(0) 编辑
摘要: <script> // Knockout ViewModel Define function RemarkTemplateModel() { var self = this; // Current Instance self.RemarkTemplate = ko.observableArray([ 阅读全文
posted @ 2015-07-17 13:27 star丶清影 阅读(2455) 评论(0) 推荐(0) 编辑
摘要: // Examples4STL.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <stdio.h> #include <iostream> #include <string> std::string replace( const std::s 阅读全文
posted @ 2015-07-17 13:26 star丶清影 阅读(1289) 评论(0) 推荐(0) 编辑
摘要: STDAPI DllInstall(BOOL bInstall, LPCWSTR pszCmdLine) { HRESULT hr = E_FAIL; static const wchar_t szUserSwitch[] = L"user"; if(pszCmdLine != NULL) { if 阅读全文
posted @ 2015-07-17 13:24 star丶清影 阅读(614) 评论(0) 推荐(0) 编辑
摘要: 1 string signature = Request["signature"]; 2 string timestamp = Request["timestamp"]; 3 string nonce = Request["nonce"]; 4 5 List<string> list = new L 阅读全文
posted @ 2014-11-07 17:46 star丶清影 阅读(967) 评论(0) 推荐(0) 编辑
摘要: 选择器是CSS的核心,从最初的元素、class/id选择器,演进到伪元素、伪类,以及CSS3中提供的更丰富的选择器,定位页面上的任意元素开始变得愈发的简单。 1、元素选择器 这是最基本的CSS选择器,HTML文档中的元素本身就是一个选择器: p {line-height:1.5em; margin- 阅读全文
posted @ 2014-10-29 16:44 star丶清影 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 自定义函数: 1 USE [ExpenseCenter_Fibrogen] 2 GO 3 /****** Object: UserDefinedFunction [dbo].[GetSubordinateTable] Script Date: 2014/10/11 13:24:32 ******/ 阅读全文
posted @ 2014-10-11 15:11 star丶清影 阅读(1692) 评论(0) 推荐(0) 编辑
摘要: 1 USE [master] 2 GO 3 4 ALTER DATABASE 数据库名称 SET RECOVERY SIMPLE WITH NO_WAIT 5 GO 6 7 ALTER DATABASE 数据库名称 SET RECOVERY SIMPLE 8 GO 9 10 USE 数据库名称 11 阅读全文
posted @ 2014-09-28 11:20 star丶清影 阅读(568) 评论(0) 推荐(0) 编辑
摘要: WHIT XXX(列1,列2....) AS ( SELECT 列1,列2... FROM 表WHERE ID=xxxxxx UNION ALL SELECT 列1,列2.... FROM 表 WHERE ID = XXX.ParentID ) SELECT 列1,列2.... FROM XXX 阅读全文
posted @ 2014-05-27 15:49 star丶清影 阅读(162) 评论(0) 推荐(0) 编辑
摘要: // jQuery.event.swipe // 0.5 // Stephen Band // Dependencies // jQuery.event.move 1.2 // One of swipeleft, swiperight, swipeup or swipedown is trigger 阅读全文
posted @ 2014-04-14 10:37 star丶清影 阅读(15622) 评论(0) 推荐(0) 编辑
摘要: 1 #include "stdafx.h" 2 #include "CStringHelper.h" 3 #include "AFileEngine.h" 4 #include "CFilePacket.h" 5 #include 6 #pragma comment(lib,"Ws2_32.lib") 7 #include 8 9 void ExecuteCallBack(Json::Value iResponse,Json::FastWriter iWriter,VARIANT lpCallB 阅读全文
posted @ 2014-04-05 00:06 star丶清影 阅读(1689) 评论(0) 推荐(0) 编辑
摘要: #region 以下函数用于忽略大小写替换操作 public static string Replace(string Expression, string Find, string Replacement) { return Replace(Expression, Find, Replacement, StringComparison.OrdinalIgnoreCase); } public static string Replace(string Expression, string Find, s... 阅读全文
posted @ 2014-01-10 00:57 star丶清影 阅读(3477) 评论(0) 推荐(0) 编辑
摘要: 原来公司的一段代码,现在给朋友写的软件里也用上了,看样用处挺多,所以保存一下。自定义属性类:using System;using System.Collections.Generic;using System.Text;using System.Drawing.Design;using System.Windows.Forms.Design;using System.Windows.Forms;namespace MaoYoo.ChinaMobile.Core.PropertyGridUI{ public class PropertyGridFileSelector:UITypeEdit... 阅读全文
posted @ 2014-01-10 00:49 star丶清影 阅读(2184) 评论(0) 推荐(0) 编辑