Idempotent scripts I use to set up my machines.
iwr -useb https://scripts.scowalt.com/setup/win.ps1 | iex
[Reflection.Assembly]::LoadWithPartialName( "System.IO.Compression.FileSystem" ) | |
$urlPrefix = "http://www.pumpproplus.com/downloads/simfiles/pe00/pe" | |
$urlExtension = ".zip" | |
For ($songNumber = 0; $songNumber -lt 100; $songNumber++) | |
{ | |
$formattedSongNumberString = "{0:D2}" -f $songNumber | |
$localFileName = $formattedSongNumberString + $urlExtension | |
$localFilePath = Join-Path $pwd $localFileName |
Chocolatey is running on Windows v 10.0.14286.0 | |
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old". | |
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old". | |
Command line: "C:\ProgramData\chocolatey\choco.exe" install -y eraser --debug --verbose | |
Received arguments: install -y eraser --debug --verbose | |
NOTE: Hiding sensitive configuration data! Please double and triple | |
check to be sure no sensitive data is shown, especially if copying | |
output to a gist for review. | |
Configuration: CommandName='install'| |
var message = { | |
'event': 'comet', // comet spawning | |
'color': comet.getLight().color, // r g b from 0 to 1 | |
'colorHSL': comet.getLight().color.getHSL(), // h s l from 0 to 1 | |
'lifespan': Comet.lifespan, // lifespan in seconds | |
'position': pos // {x,y,z} with (0,0,z) at center of screen | |
}; |
// http://processing.org/examples/mandelbrot.html | |
// Establish a range of values on the complex plane | |
// A different range will allow us to "zoom" in or out on the fractal | |
// float xmin = -1.5; float ymin = -.1; float wh = 0.15; | |
float xmin = -3; | |
float ymin = -1.25; | |
float w = 5; | |
float h = 2.5; |
{ | |
'tweet' : { | |
//preserved from stream API | |
//details here: https://dev.twitter.com/docs/api/1/get/statuses/user_timeline | |
}, | |
'weights': { | |
'happiness': -10,10, /* sum of all scores, face weight added in, etc. */ | |
'excitement': -10,10, /* exclamation points, absolute value of scores, etc. */ | |
'randomness': -10,10 | |
}, |