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
System.setProperty("http.proxyHost", "localhost"); System.setProperty("http.proxyPort", "8888"); | |
System.setProperty("https.proxyHost", "localhost"); System.setProperty("https.proxyPort", "8888"); |
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
ServicePointManager.Expect100Continue = false; |
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
<Slider Name="slider1" Minimum="100" Maximum="100" Value="500" /> |
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
$WshShell = New-Object -ComObject Wscript.Shell | |
$items = Get-ChildItem | |
foreach($file in $items) | |
{ | |
$shortcut = $WshShell.CreateShortcut($file.FullName) | |
#::--AHK::D:\Tools\AutoHotKey | |
"::" + "--" + $file.Name.Replace($file.Extension,"") + "::" + $shortcut.TargetPath | |
} |
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
;Auto type Master Password by sending AutoType command to KeePass | |
;Call method CheckPassword every 2 second | |
SetTimer, CheckPassword, 2000 | |
CheckPassword: | |
{ | |
IfWinExist, Password Required | |
{ | |
IfWinExist Open Database - Senthil.kdbx |
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
Capslock:: | |
{ | |
Gui, 93:+Owner ; prevent display of taskbar button | |
Gui, 93:Show, y-99999 NA, Enable nav-hotkeys | |
KeyWait, Capslock ; wait until the Capslock button is released | |
Gui, 93:Cancel | |
Return | |
} | |
#IfWinExist, Enable nav-hotkeys |
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 void Main(string[] args) | |
{ | |
try | |
{ | |
ParseIntGood(); | |
//ParseIntBad(); | |
} | |
catch (Exception ex) | |
{ | |
Console.WriteLine(ex); |
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
//Error | |
const string MessageTrailer = UTF8Encoding.UTF8.GetString(new byte[] { 0x1c, 0x0d }); | |
//No error | |
readonly string MessageTrailer = UTF8Encoding.UTF8.GetString(new byte[] { 0x1c, 0x0d }); |
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
void LoadGrid(List<ViewModel> viewModels) | |
{ | |
bindingSource.Clear(); | |
foreach (var model in viewModels) | |
bindingSource.Add(model); | |
} | |
void LoadGrid(List<ViewModel> viewModels) | |
{ | |
bindingSource.Clear(); |
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 void Main(string[] args) | |
{ | |
//Thread has separate call stack | |
Thread newThread = new Thread(()=> Print(5)); | |
newThread.Start(); | |
Print(3); | |
Console.ReadLine(); | |
} |
OlderNewer