Skip to content

Instantly share code, notes, and snippets.

Avatar

Jay Bazuzi JayBazuzi

View GitHub Profile
@JayBazuzi
JayBazuzi / Boxstarter.ps1
Last active Feb 4, 2017 — forked from szul/Boxstarter.ps1
Boxstarter Script
View Boxstarter.ps1
Set-CornerNavigationOptions -EnableUpperRightCornerShowCharms -EnableUpperLeftCornerSwitchApps -EnableUsePowerShellOnWinX
Update-ExecutionPolicy RemoteSigned
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions
Enable-RemoteDesktop
Install-WindowsUpdate -acceptEula
#cinst sublimetext3 sublimetext3.packagecontrol
#cinst 7zip
cinst googlechrome
@JayBazuzi
JayBazuzi / ifstructure.cs
Last active Jul 30, 2016 — forked from isidore/ifstructure.cs
If structure
View ifstructure.cs
string result = null;
if (result == null)
result = Win();
if (result == null)
result = Advantage();
if (result == null)
result = ScoreNormal();
if (result == null)
result = ScorePerson1();
if (result == null)
View doifnull.cs
return Win()
.DoIfNull(Advantage)
.DoIfNull(ScoreNormal)
.DoIfNull(ScorePerson1)
.DoIfNull(ScorePerson2)
.DoIfNull(ScoreTie);