snower 0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.md +19 -0
- data/bin/snow +7 -0
- metadata +47 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 93ea8782c7723215c0ac4cf89ebaa650bd43defb
|
|
4
|
+
data.tar.gz: e4ed9067e555316f094f1e2e5538faa4ddd021ac
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 776e6926a5d0230fdee06df2bd30ec4229f88c3e184997242cf33d1925e7617ac21c06d704a271b5a69f5e9830e98cfd993111eed8a259698be81ff8663c17aa
|
|
7
|
+
data.tar.gz: 8b16c4429a5672bc60ac97a2a63614e09d333e7767bf6a7af0b9277250a0ac807a2999aa2c6b2022a7b168878e9b79bac4d73771ac47fb3ed4695f08d3cb7d6e
|
data/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
snower
|
|
2
|
+
======
|
|
3
|
+
|
|
4
|
+
Let it Snow in the Terminal.
|
|
5
|
+
|
|
6
|
+
Taken from [OSXDaily](http://osxdaily.com/2013/12/06/snow-terminal-mac-os-x-command).
|
|
7
|
+
|
|
8
|
+
### Installation
|
|
9
|
+
|
|
10
|
+
> gem install snower
|
|
11
|
+
|
|
12
|
+
### Run
|
|
13
|
+
|
|
14
|
+
> $ snow
|
|
15
|
+
|
|
16
|
+
### Stop
|
|
17
|
+
|
|
18
|
+
> CTRL + C
|
|
19
|
+
|
data/bin/snow
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
begin
|
|
4
|
+
C=`stty size`.scan(/\d+/)[1].to_i;S=["2743".to_i(16)].pack("U*");a={};puts "\033[2J";loop{a[rand(C)]=0;a.each{|x,o|;a[x]+=1;print "\033[#{o};#{x}H \033[#{a[x]};#{x}H#{S} \033[0;0H"};$stdout.flush;sleep 0.1}
|
|
5
|
+
rescue Exception => e
|
|
6
|
+
puts "\e[H\e[2J"
|
|
7
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: snower
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: '0.1'
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Emiliano Mancuso
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2013-12-15 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: Perfect for this holidays. Taken from OSXdaily.com
|
|
14
|
+
email:
|
|
15
|
+
- emiliano.mancuso@gmail.com
|
|
16
|
+
executables:
|
|
17
|
+
- snow
|
|
18
|
+
extensions: []
|
|
19
|
+
extra_rdoc_files: []
|
|
20
|
+
files:
|
|
21
|
+
- README.md
|
|
22
|
+
- bin/snow
|
|
23
|
+
homepage: http://github.com/emancu/snower
|
|
24
|
+
licenses:
|
|
25
|
+
- MIT
|
|
26
|
+
metadata: {}
|
|
27
|
+
post_install_message:
|
|
28
|
+
rdoc_options: []
|
|
29
|
+
require_paths:
|
|
30
|
+
- lib
|
|
31
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
32
|
+
requirements:
|
|
33
|
+
- - '>='
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: '0'
|
|
36
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - '>='
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
requirements: []
|
|
42
|
+
rubyforge_project:
|
|
43
|
+
rubygems_version: 2.1.11
|
|
44
|
+
signing_key:
|
|
45
|
+
specification_version: 4
|
|
46
|
+
summary: Let it snow in the terminal
|
|
47
|
+
test_files: []
|