Icebird

Delphi/C# - My favorite programming language

导航

02 2008 档案

LINQ to JavaScript
摘要:今天正在看The Art and Science of JavaScript,突然想到javascript里也应该有关于LINQ的实现,于是Google了一下,果然发现LINQ to JavaScript这个OpenSource Project。介绍LINQ to JavaScript (JSLINQ) 是LINQ在JavaScript上的实现。其为JS的Array对象上增加了一系列扩展方法。如果... 阅读全文

posted @ 2008-02-25 15:48 Icebird 阅读(1137) 评论(1) 推荐(0)

[PowerShell] SFV生成与校验
摘要:# Author: Icebird@cnblogs# Purpose: Check-SFV (csfv) and Make-SFV (msfv)function Global:Check-SFV([string]$filename = ""){trap{ $_.InvocationInfo write-host ("{0,-17:S}{1} {2}" -f "Exception", ":", ... 阅读全文

posted @ 2008-02-14 18:56 Icebird 阅读(1571) 评论(0) 推荐(0)

[PowerShell] 将rar文件转换为zip格式
摘要:# Author: Icebird@cnblogs# Purpose: RAR2ZIPfunction Global:rar2zip($rarfile = $(throw "缺少参数"), $zipfile = ""){trap{ $_.InvocationInfo write-host ("{0,-17:S}{1} {2}" -f "Exception", ":", $_.Exception... 阅读全文

posted @ 2008-02-13 18:46 Icebird 阅读(4962) 评论(0) 推荐(0)

[PowerShell] GBK简繁转换
摘要:一个完全用PS实现的脚本,执行后会在全局函数表增加2个自定义函数chs2cht和cht2chs让这个脚本成为学习PowerShell的良好开端注释:1.这里转换的是GBK码中的繁简体,与Word中的繁简体转化功能类似,不是GB和BIG5码的转换2.转换准确度依赖于内置的对照表(CHS2CHT_Phrase & $Word),如果发现有不能正确的转换的字词,可以自行修改对照表3.代码移植于我自己写的... 阅读全文

posted @ 2008-02-13 15:35 Icebird 阅读(1471) 评论(1) 推荐(0)

[PowerShell] PowerShell学习脚印
摘要:#别名 ac = Add-Content asnp = Add-PSSnapin clc = Clear-Content cli = Clear-Item clp = Clear-ItemProperty clv = Clear-Variable cpi = Copy-Item cpp = Copy-ItemProperty cvpa = Convert-Path diff = Compare-Object epal = Export-Alias epcsv = Export-Csv fc = Format-Custom fl = Format-List foreach = ForEach-Object % = ForEach-Object ft = Format-Table fw = Format-Wide gal = Get-Alias gc = Get-Content gci = Get-ChildItem br 阅读全文

posted @ 2008-02-11 22:37 Icebird 阅读(1991) 评论(0) 推荐(0)