A Python script that allows your terminal to snow(pypi.python.org)
pypi.python.org
A Python script that allows your terminal to snow
https://pypi.python.org/pypi/snowjob
6 comments
Can anybody post a gif demo
Here is non-stacking version:
http://asciinema.org/a/6911
Stacking version: http://asciinema.org/a/6912
Stacking version: http://asciinema.org/a/6912
If you want a bash script that does similar things: https://gist.github.com/sontek/1505483
while true ; do NUM=$(( $RANDOM % 80)) ; for i in $( seq 1 $NUM ) ; do echo -n " " ; done ; echo \* ; sleep 0.1; done
Not quite as pretty as this, but the shell version of it is here:
https://gist.github.com/sontek/1505483
The python script also supports the snowflakes piling up with the --stack command.
https://gist.github.com/sontek/1505483
The python script also supports the snowflakes piling up with the --stack command.
Finally!
Doesn't work on Mac (or maybe zsh) :(
How recent are your utilities? I tried the bash version, had unexpected results - and discovered while investigating that Apple ships older versions of many CLI utilities.
E.g., under stock Mavericks bash, the command
echo $BASH_VERSION
returns 3.2.51(1)-release, while current bash is 4.2
I'm looking into homebrew as a means of getting up-to-date CLI tools.
EDIT: Added homebrew using instructions on brew.sh, it managed all dependencies. Ran brew doctor, then brew install bash, edited /etc/shells as suggested, updated Terminal startup preferences (could just as easily have used chsh, 6 of one...), all was well. Quick and easy, painless.
E.g., under stock Mavericks bash, the command
echo $BASH_VERSION
returns 3.2.51(1)-release, while current bash is 4.2
I'm looking into homebrew as a means of getting up-to-date CLI tools.
EDIT: Added homebrew using instructions on brew.sh, it managed all dependencies. Ran brew doctor, then brew install bash, edited /etc/shells as suggested, updated Terminal startup preferences (could just as easily have used chsh, 6 of one...), all was well. Quick and easy, painless.
Works fine for me. http://d.pr/i/iFKI
I'm using iTerm2, zsh and python3
I'm using iTerm2, zsh and python3
Standard OS X terminal, seems to work just fine for me. The --stack option running in fullscreen mode is pretty nice.
What error did you get?
Supports Linux and Windows on both Python2 and Python3. Here is a screenshot:
http://i.imgur.com/vJgKK0r.png
http://i.imgur.com/vJgKK0r.png