This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'---------------------------- | |
' .Net 4版。 | |
' 以下の参照設定が必要 | |
' VBReport7.Document.4 | |
' VBReport7.Xlsx.IO.4 | |
' VBReport7.Xlsx.Web.Report.4 | |
'---------------------------- | |
Imports AdvanceSoftware.VBReport7 | |
Class ExcelWebDonwloadSample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#.NETのSyndicationFeedクラスを使ってやってみました。 | |
[System.Reflection.Assembly]::LoadWithPartialName("System.ServiceModel.dll") | |
$url = "http://winscript.jp/powershell/rss2/" | |
$xml = [System.Xml.XmlReader]::Create($url) | |
$feed = [System.ServiceModel.Syndication.SyndicationFeed]::Load($xml) | |
foreach($item in $feed.Items) | |
{ | |
$item.title.Text | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-Process |?{$_.workingset -ge 100MB} | Export-Csv -Path C:\aaa.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$logs = Get-EventLog Application | | |
?{($_.TimeWritten -ge (get-date).AddDays(-1)) -and ($_.EntryType -eq "Error" -or $_.EntryType -eq "Warning" -or $_.EntryType -eq "Information")} | |
$err_count=0 | |
$warn_count = 0 | |
$info_count = 0 | |
foreach($d in $logs){ | |
if($d.EntryType -eq 'Error'){ | |
$err_count++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$client = New-Object System.Net.WebClient | |
$client.Encoding =[System.Text.Encoding]::UTF8 | |
$string = $client.downloadstring("http://winscript.jp/powershell/rss2/") | |
$xml=[xml]$string | |
$items = $xml.rss.channel.item | |
foreach($item in $items) | |
{ | |
$item.title | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net; | |
using System.IO; | |
using System.Diagnostics; | |
namespace TinyWebDav | |
{ | |
/// <summary> | |
/// 簡易WebDAVクライアントクラス | |
/// </summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Microsoft.Build.Utilities; | |
using Microsoft.Build.Framework; | |
using Microsoft.TeamFoundation.Client; | |
using Microsoft.TeamFoundation.VersionControl.Client; | |
namespace Build.Utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- プロジェクトがチェックアウトされていないか確認するタスク --> | |
<UsingTask TaskName="CheckedInDoneTask" | |
TaskFactory="CodeTaskFactory" | |
AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll"> | |
<ParameterGroup> | |
<TfsCollectionUrl ParameterType="System.String" Required="true" /> | |
<TfsTargetSourceFolder ParameterType="System.String" Required="true" /> | |
</ParameterGroup> | |
<Task> | |
<Reference Include="Microsoft.TeamFoundation.Client" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TFSのAPIを使って、ソースコードの最新をローカルに取得するサンプル | |
// 参考: | |
// MSDN | |
// http://msdn.microsoft.com/ja-jp/library/microsoft.teamfoundation.versioncontrol.client.workspace%28v=vs.100%29.aspx | |
// StacK Overflow | |
// http://stackoverflow.com/questions/8341419/get-latest-using-tfs-api | |
// http://stackoverflow.com/questions/1827651/how-do-you-get-the-latest-version-of-source-code-using-the-team-foundation-serve | |
using System; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace WebRole1 | |
{ | |
[HubName("hello")] | |
public class HelloHub : Hub | |
{ | |
public void Hello( string name) | |
{ | |
Clients.All.SayHello( "hello , " + name); | |
} | |
} |
OlderNewer