首页 软件开发 代码片段 ( Page 633 )

代码片段 8064

#SQL
SQL设置SQL Server最大连接数

exec sp_configure 'show advanced options', 1 exec sp_configure 'user connections', 100 第一句…

sql
2014-12-21 168

#SQL
SQL Server枚举数据库中的空表

WITH EmptyRows AS ( SELECT SUM(row_count) AS [TotalRows], OBJECT_NAME(OBJECT_ID) AS TableN…

sql
2014-12-21 732

#Shell
使用enscript命令将程序代码转换成HTML

基本用法: enscript --color --language=html -E语言 Source文件 -o 输出文件 其中-E后面指定语言。 比如:enscript --col…

2014-12-21 248

#Shell
检查网段剩余IP

#!/bin/bash read -p "Please keyin the network segment: (e.g. 10.88.1) " farm for i in `seq…

2014-12-21 467

#Shell
PowerShell获取文件的MD5值

function Get-MD5([System.IO.FileInfo] $file = $(throw 'Usage: Get-MD5 [System.IO.FileInfo]…

2014-12-21 490

#Objective-C
时间加减比较

NSDate *update = [[NSUserDefaults standardUserDefaults] objectForKey:APP_UPDATE_TIME]; CGF…

2014-12-21 268

#Python
利用新闻情感数据炒股 python程序

from CAL.PyCAL import Date start = '2010-01-01' # 回测起始时间 end = '2015-05-05' # 回测结束时间 bench…

2014-12-20 894

#Python
随机生成激活码并保存到Mysql数据库

#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: mllyn # @Date: 2014-12-31 15:26:5…

2014-12-20 848