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; | |
namespace EventPractice | |
{ | |
class TestEventArgs : System.EventArgs | |
{ | |
public int Num; | |
public TestEventArgs(int num) | |
{ |
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; | |
namespace PrimeDecomposition | |
{ | |
public static class PrimeDecomposition | |
{ | |
public static List<int> DoPrimeDecomposition(int num) | |
{ | |
List<int> primaryFactors = new List<int>(); |
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
REM ##=============================================================## | |
REM ## ここに起動時のディレクトリを記述 | |
REM ##=============================================================## | |
cd %homepath% | |
REM ##=============================================================## | |
REM ## ここに起動時に処理したいコマンドを記述 | |
REM ##=============================================================## | |
C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\WDExpress.exe |
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
#!/bin/bash | |
fromHDD="/Volumes/バックアップ元HDD名/" | |
backupHDD="/Volumes/バックアップ先HDD名/" | |
logFile="/ログ出力先ディレクトリ/SyncLog"`date +%Y%m%d`".log" | |
if [ ! -e $fromHDD]; then | |
echo "No FromHDD $FromHDD" >> $logFile | |
echo "HDD Sync Error" | mail -s "HDD Sync Error" Address@gmail.com | |
return | |
fi |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>SyncFiles</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>open</string> | |
<string>/Users/UserName/DailyTasks/SyncFiles.app</string> |
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.Text; | |
namespace ClassExtension | |
{ | |
public static class StringBuilderExtension | |
{ | |
public static StringBuilder AppendFormatLoop(this StringBuilder instance, | |
string format, IEnumerable<Object> objects) |
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
rem ### 変数設定 | |
set ServerName="ServerName" | |
set RemoteUserName="Administrator" | |
set IP="192.168.0.100" | |
set SubnetMask="255.255.255.0" | |
set GateWay="192.168.0.1" | |
rem ### Hyper-V Serverインストール後に行うべき作業 | |
rem ### 参考:http://ascii.jp/elem/000/000/850/850959/ | |
rem ### 管理者として実行することが必要 |
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
static class FormMover | |
{ | |
static double Max = 8; | |
static double MaxExp = Math.Exp(Max); | |
static public void WipeUp(Form Frm, int MovingTime, int WaitTimeForMoving, bool Fade) | |
{ | |
System.Threading.Thread.Sleep(WaitTimeForMoving); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>SyncMyDNS</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>curl</string> | |
<string>-l</string> |
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
IISRESET |
OlderNewer