在日常工作总写的一些小之又小的代码片段,为方便以后使用在这里记录一下。
go read text file into string array
摘要:http://stackoverflow.com/questions/5884154/golang-read-text-file-into-string-array-and-write方法一 1 package main 2 3 import ( 4 "bufio" 5 "fmt" 6 ...
阅读全文
posted @
2015-08-15 16:57
π三毛
阅读(486)
推荐(0)
T-SQL:CTE实现递归
摘要:USE AdventureWorks ;GOWITH DirectReports(LoginID, ManagerID, EmployeeID) AS ( SELECT LoginID, ManagerID, EmployeeID FROM HumanResources.Employee WHERE ManagerID IS NULL UNION ALL SELECT e.LoginID, e.M...
阅读全文
posted @
2009-12-10 14:29
π三毛
阅读(308)
推荐(0)
.net 2.0 串口通讯一小例
摘要:前一段时间给别人弄串口通讯程序时写的一个小小程序,今天整理硬盘时发现了。放在这里以方便以后查找. public partial class Form1 : Form { public Form1() { InitializeComponent(); } static char[] hexDigits = {...
阅读全文
posted @
2006-03-06 08:43
π三毛
阅读(807)
推荐(0)