4 ms·
A Python script that allows your terminal to snow
- sontek 13y agoSupports Linux and Windows on both Python2 and Python3. Here is a screenshot: http://i.imgur.com/vJgKK0r.png http://i.imgur.com/vJgKK0r.png
- sontek 13y agoIf you want a bash script that does similar things: https://gist.github.com/sontek/1505483 https://gist.github.com/sontek/1505483
- Swizec 13y agoDoesn't work on Mac (or maybe zsh) :(
- Watabou 13y agoWorks fine for me. http://d.pr/i/iFKI http://d.pr/i/iFKI I'm using iTerm2, zsh and python3
- sontek 13y agoWhat error did you get?
- PeterWhittaker 13y agoHow 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.
- cmiller1 13y agoStandard OS X terminal, seems to work just fine for me. The --stack option running in fullscreen mode is pretty nice.
- silveira 13y agowhile true ; do NUM=$(( $RANDOM % 80)) ; for i in $( seq 1 $NUM ) ; do echo -n " " ; done ; echo \* ; sleep 0.1; done
- sontek 13y agoNot quite as pretty as this, but the shell version of it is here: https://gist.github.com/sontek/1505483 https://gist.github.com/sontek/1505483 The python script also supports the snowflakes piling up with the --stack command.
- pault 13y agoFinally!
- enscr 13y agoCan anybody post a gif demo
- sontek 13y agoHere is non-stacking version: http://asciinema.org/a/6911 http://asciinema.org/a/6911 Stacking version: http://asciinema.org/a/6912 http://asciinema.org/a/6912