using System; using System.Drawing; using ZXing.QrCode; using ZXing; using ZXing.Common; namespace NKO_Printer_Core { public class BarcodeHelper { /// ...
分类:
其他好文 时间:
2017-09-03 12:21:54
阅读次数:
139
/** * 提供了百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换 */ //定义一些常量 var x_PI = 3.14159265358979324 * 3000.0 / 180.0; var PI = 3.1415926535897932384626; v... ...
分类:
Web程序 时间:
2017-09-01 14:36:44
阅读次数:
281
package ratelimitimport "io"type reader struct { r io.Reader bucket *Bucket}// Reader returns a reader that is rate limited by// the given token bucke... ...
分类:
其他好文 时间:
2017-09-01 10:50:10
阅读次数:
176
Given a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any built-in library functio ...
分类:
其他好文 时间:
2017-08-30 18:35:21
阅读次数:
121
CREATE FUNCTION [dbo].[fn_SplitStringToTable] ( @p_Input VARCHAR(MAX), @p_Delimeter CHAR(1) = ',' ) RETURNS @l_Table TABLE ( Id INT IDENTITY(1, 1), Va... ...
分类:
数据库 时间:
2017-08-29 13:01:40
阅读次数:
204
做网站后台管理系统的时候,有时我们需要根据用户的录入配置动态生成一些频道,这些频道需要用到独立的Controller,这时就需要用到运行时动态编译了。代码如下: 流程如下: mvc启动的时候,只有HomeController,访问TestController会提示404错误 然后点击动态编译Test ...
分类:
Web程序 时间:
2017-08-27 15:25:34
阅读次数:
177
Create a function named divisors/Divisors that takes an integer and returns an array with all of the integer's divisors(except for 1 and the number it ...
分类:
其他好文 时间:
2017-08-26 13:47:01
阅读次数:
194
Create a new resource by POSTing the given object to the URI template, and returns the representation found in the response. Create a new resource by ...
分类:
其他好文 时间:
2017-08-25 15:51:50
阅读次数:
154
通过应用程序名称创建Mutex实现跨程序标识. program中的调用方法: SingleProcessFixer singleProcessFixer = new SingleProcessFixer(); if (!singleProcessFixer.CreateMutex()) //程序正在 ...
/* 转换为100-5 0100-000051-998 0001-0099812-1589 0012-01589*/IF EXISTS(SELECT * FROM sys.objects WHERE name='Fun_CombineTransfer')DROP FUNCTION dbo.Fun_C ...
分类:
数据库 时间:
2017-08-25 01:15:43
阅读次数:
174