Skip to content

Instantly share code, notes, and snippets.

View scowalt's full-sized avatar

Scott Walters scowalt

View GitHub Profile
[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
@scowalt
scowalt / error.txt
Created March 13, 2016 01:11
Chocolatey error
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'|
@scowalt
scowalt / msg.js
Last active August 29, 2015 14:16
tonal-starfield outgoing data
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
};
@scowalt
scowalt / sketch.pde
Created October 11, 2013 01:57
Processing "glowing" mandelbrot fractal example SIGMusic
// 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;
@scowalt
scowalt / twitter-js-datagram.js
Created May 2, 2012 17:50
TwitterSentiment Datagram JS
{
'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
},