public class GisHelper { /// <summary> /// 批量地理位置解析 /// </summary> /// <param name="lonlat"></param> /// <returns>index-->loc</returns> public static ...
分类:
其他好文 时间:
2017-11-10 18:33:20
阅读次数:
143
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). For example, the 32-bit ...
分类:
其他好文 时间:
2017-11-09 21:02:31
阅读次数:
98
public static class ValidateHelper { /// <summary> /// 验证是否为Email /// </summary> /// <param name="strEmail">验证字符串</param> /// <returns>true-是,false-否< ...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE FUNCTION [dbo].[F_SYS_getPY] ( @str NVARCHAR(4000) ) RETURNS NVARCHAR(4000) AS BEGIN DECLARE @... ...
分类:
数据库 时间:
2017-11-08 16:01:20
阅读次数:
197
也是今天sql群里有人问,看起来这个问题挺简单,但是我不知道具体该怎么实现。百度了一把,找到一个高手贡献的答案,记一下。 参考链接 sql中转换中文日期 配合相关函数 create function convertNumToChinese (@instr varchar(2)) returns va ...
分类:
数据库 时间:
2017-11-08 14:59:24
阅读次数:
256
简单的序列化,网上很多,但是突然想到一个问题,如果一个类里用到了另一个,那么怎么办,今天试了试,只需要加上序列号标签就可以了 ...
match pmatch intersect %in% setdiff match package:base R Documentation Value Matching Description: 'match' returns a vector of the positions of (first ...
分类:
其他好文 时间:
2017-11-08 11:47:46
阅读次数:
283
1.probablePrime(6,Random) Random是scala.util._中的包 probablePrime是scala.math.BigInt._伴生对象中的方法: probablePrime(a,Random) 官方文档这么说的:Returns a positive BigInt ...
分类:
其他好文 时间:
2017-11-08 00:00:39
阅读次数:
208
老生常谈,还是那三句话: 学历代表你的过去,能力代表你的现在,学习代表你的将来 十年河东,十年河西,莫欺少年穷 学无止境,精益求精 问题描述:很多时候我们可能需要在极短的时间内生成大量的随机数,但是你可能会发现生成了很多重复的随机数。并不是你所希望生成大量不同的数,或者说相同的数极少。 分析原因:R ...
分类:
其他好文 时间:
2017-11-07 14:22:31
阅读次数:
169
--网上的方法-- /** * 字符串转Date(YYYY-MM-DD HH:MM:SS) * @param dateString * @returns {Date} */ function convertDateFromString(dateString) { if (dateString) { ...
分类:
其他好文 时间:
2017-11-07 12:15:18
阅读次数:
134