Skip to content

Instantly share code, notes, and snippets.

View sqeezy's full-sized avatar

Anton Herzog sqeezy

View GitHub Profile
choco feature enable -n=allowGlobalConfirmation
cinst `
7zip.install `
cctray `
cpu-z `
docker-desktop `
dotnet3.5 `
dotnetcore-sdk `
dotpeek `
function Set-PowershellPrompt{
if (!(Test-Path -Path $PROFILE)){ New-Item -Path $PROFILE -ItemType File } ; ise $PROFILE
}
function prompt {
$origLastExitCode = $LASTEXITCODE
Write-VcsStatus
Write-Host $ExecutionContext.SessionState.Path.CurrentLocation -ForegroundColor Green
$LASTEXITCODE = $origLastExitCode
"$('>' * ($nestedPromptLevel + 1)) "
open System
type Agent<'T> = MailboxProcessor<'T>
let maxFloat = Double.MaxValue
let ran = Random 42
let randomFloat ()=
float(ran.Next(-10000000,10000000))
type MsgType =
@sqeezy
sqeezy / README.md
Created October 10, 2018 09:17
PowerShell script to have all variables from vcvars32.bat from Visual Studio

Taken from here for prosperity.

Put this in %USERDIR%/Documents/WindowsPowerShell/profile.ps1, run a PowerShell terminal and you should see the messages "Visual Studio 2015..." pop up.

import matplotlib
import numpy as np
import matplotlib.cm as cm
import matplotlib.pyplot as plt
from matplotlib.ticker import EngFormatter
delta = 0.025
x = np.arange(-3.0, 3.0, delta)
y = np.arange(-2.0, 2.0, delta)