Skip to content

Commit

Permalink
adding poorly-named test files for a different weather console
Browse files Browse the repository at this point in the history
  • Loading branch information
mhenstell committed Oct 6, 2012
1 parent bf16479 commit 8c93b78
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
9 changes: 9 additions & 0 deletions server/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import codecs
import random
import math

output = codecs.open('test.svg', 'r', encoding='utf-8').read()

output = output.replace("WIND_DEGREES", str(random.randrange(0, 360)))

codecs.open('test-output.svg', 'w', encoding='utf-8').write(output)
8 changes: 8 additions & 0 deletions server/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

cd "$(dirname "$0")"

python2 test.py
rsvg-convert --background-color=white -o test-output.png test-output.svg
pngcrush -c 0 -ow test-output.png
cp -f test-output.png /Users/max/Sites/test-output.png
8 changes: 8 additions & 0 deletions server/test.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8c93b78

Please sign in to comment.