I hereby claim:
- I am sohjsolwin on github.
- I am sohjsolwin (https://keybase.io/sohjsolwin) on keybase.
- I have a public key whose fingerprint is D12F DD9D A87A F90E 2D08 BB23 A88C 13B8 01BF D356
To claim this, I am signing this object:
get-project -All | foreach-object { If ($PSItem.ProjectName.Contains("\")) { $PSItem.ProjectName.SubString($PSItem.ProjectName.LastIndexOf("\")+1)} else { $PSItem.ProjectName } } | foreach-object { Add-BindingRedirect $PSItem} |
; Step 1) Install chocolatey with the following command in Powershell: Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
; Step 2) Select from the list of packages below and append them to `choco install -y`, like: choco install -y chocolateygui 7zip googlechrome etc | |
; Step 3) Paste into a new admin powershell window and run. | |
; General tools | |
7zip | |
notepadplusplus | |
sysinternals | |
windirstat | |
wireshark |
var leadSource = LeadSource.A; | |
var union = LeadSource.A | LeadSource.B | LeadSource.C; | |
Console.WriteLine(union & leadSource); //true | |
Console.WriteLine(union & LeadSource.B); //true | |
Console.WriteLine(union & LeadSource.C); //true | |
Console.WriteLine(union & LeadSource.D); //false |
$buildVCS = "whateverTheSHAofCommitYouWant" | |
import-module posh-git | |
git show - pretty $buildVCS > $pwd\test.txt | |
$a = get-content test.txt | |
($a -split "`r`n") | ForEach-Object { | |
# the pattern is modified to check for a First Last name, or a single username, depending on how people have their git setup. | |
$email = Select-String -InputObject $_ -Pattern "Author: ([A-Za-z]{2,20} [A-Za-z]{2,20}|[A-Za-z]{2,20}) <[A-Za-z]{2,20}@YOUR_DOMAIN\.com>" | % { $_.Matches } | % { $_.Value } | |
if($email){ |
M300 S660 P100 | |
G4 P150 | |
M300 S660 P100 | |
G4 P300 | |
M300 S660 P100 | |
G4 P300 | |
M300 S510 P100 | |
G4 P100 | |
M300 S660 P100 | |
G4 P300 |
javascript:(function() {var varchar = '?'; if (location.href.indexOf("?") > 0) {varchar='&'} location.href = location.href + varchar +'rand=' + new Date().getTime().toString(16);}()) |
package main | |
import "golang.org/x/tour/pic" | |
func MakePic(val (func(int, int) uint8)) (func(int, int) [][]uint8) { | |
var pic = func(dx, dy int) ([][]uint8) { | |
var dyslice = make([][]uint8, dy) | |
for i := range dyslice { |
I hereby claim:
To claim this, I am signing this object:
javascript: (function() {var standardGlobals = ["top", "window", "location", "external", "chrome", "document", "inlineCSS", "target", "width", "height", "canvas", "data", "DOMURL", "img", "svg", "ctx", "url", "w", "a", "speechSynthesis", "webkitNotifications", "localStorage", "sessionStorage", "applicationCache", "webkitStorageInfo", "indexedDB", "webkitIndexedDB", "crypto", "CSS", "performance", "console", "devicePixelRatio", "styleMedia", "parent", "opener", "frames", "self", "defaultstatus", "defaultStatus", "status", "name", "length", "closed", "pageYOffset", "pageXOffset", "scrollY", "scrollX", "screenTop", "screenLeft", "screenY", "screenX", "innerWidth", "innerHeight", "outerWidth", "outerHeight", "offscreenBuffering", "frameElement", "clientInformation", "navigator", "toolbar", "statusbar", "scrollbars", "personalbar", "menubar", "locationbar", "history", "screen", "postMessage", "close", "blur", "focus", "ondeviceorientation", "ondevicemotion", "onunload", "onstorage", "onresize", "onpopstate", "onpa |
private enum XcryptMode | |
{ | |
Encrypt, | |
Decrypt | |
} | |
private string XcryptString(XcryptMode mode, string message) | |
{ | |
byte[] results; | |
var returnValue = string.Empty; |