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
public int Add(int a, int b) | |
{ | |
Contract.Requires<ArgumentOutOfRangeException>(a >= 0); | |
Contract.Requires<ArgumentOutOfRangeException>(b >= 0); | |
// ... | |
} |
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
public class NestedInitializerExample | |
{ | |
public void Init() | |
{ | |
Rectangle rectangle = new Rectangle | |
{ | |
P1 = { X = 0, Y = 1 }, | |
P2 = { X = 2, Y = 3 } | |
}; | |
} |
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
; en dash | |
!NumpadSub:: | |
Send, {ASC 0150} | |
return | |
; em dash | |
!NumpadAdd:: | |
Send, {ASC 0151} | |
return |
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
function Git-ShowRemoteBranches($filter) | |
{ | |
if ($filter) | |
{ | |
git remote show origin | sls $filter | |
} | |
else | |
{ | |
git remote show origin | |
} |
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
Run, %USERPROFILE%\AppData\Local\slack\Update.exe --processStart "slack.exe", , Normal | |
WinWait, ahk_exe slack.exe | |
Loop, 50 | |
{ | |
WinHide, ahk_exe slack.exe | |
Sleep, 200 | |
} |
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
C:\Windows\Prey\current\bin\prey config gui -f |
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
setx DOTNET_CLI_TELEMETRY_OPTOUT 1 |
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
1..10 | foreach { [Guid]::newguid() } |
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
#SPACE:: Winset, Alwaysontop, , A |
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
// IIFE: | |
let app = (function() { | |
console.log("weheh"); | |
let carId = 123; | |
let getId = function() { | |
return carId * 2; | |
}; | |
return { |
OlderNewer