-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding poorly-named test files for a different weather console
- Loading branch information
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.