Add license. Misc changes.

This commit is contained in:
Sergio Lepore 2018-01-12 18:00:25 -03:00
parent 93b6606e45
commit e757367e54
5 changed files with 59 additions and 34 deletions

24
LICENSE Normal file
View file

@ -0,0 +1,24 @@
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <http://unlicense.org>

View file

@ -36,21 +36,25 @@ __Enjoy!__
# FAQ # FAQ
## License?
[Do what you want with it](./LICENSE) license.
## Will it run under _whatever-OS_? ## Will it run under _whatever-OS_?
Only Linux and Unix flavors. Only GNU/Linux and Unix flavors.
## What OS are you using? ## What OS are you using?
OSX 10.11.3 "El Capitan" Ubuntu 17.10.
## What about your terminal emulator? ## What about your terminal emulator?
[iTerm2](https://iterm2.com/) [Tilix](https://gnunn1.github.io/tilix-web/)
## And your color palette? ## And your color palette?
[Dracula](https://zenorocha.github.io/dracula-theme/iterm/) Custom, based on Atom's "One Dark" theme.
## Contributors ## Contributors

Binary file not shown.

Before

Width:  |  Height:  |  Size: 162 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View file

@ -9,7 +9,7 @@ est=$((c-2))
color=0 color=0
tput setaf 2; tput bold tput setaf 2; tput bold
# Arbolito # Tree
for ((i=1; i<20; i+=2)) for ((i=1; i<20; i+=2))
{ {
tput cup $lin $col tput cup $lin $col
@ -23,7 +23,7 @@ for ((i=1; i<20; i+=2))
tput sgr0; tput setaf 3 tput sgr0; tput setaf 3
# Tronco # Trunk
for ((i=1; i<=2; i++)) for ((i=1; i<=2; i++))
{ {
tput cup $((lin++)) $c tput cup $((lin++)) $c
@ -37,27 +37,26 @@ tput cup $((lin + 1)) $((c - 10)); echo And lots of CODE in $new_year
let c++ let c++
k=1 k=1
# Lucecitas y bolitas # Lights and decorations
while true; do while true; do
for ((i=1; i<=35; i++)) { for ((i=1; i<=35; i++)) {
# Apagar luces # Turn off the lights
[ $k -gt 1 ] && { [ $k -gt 1 ] && {
tput setaf 2; tput bold tput setaf 2; tput bold
tput cup ${linea[$[k-1]$i]} ${columna[$[k-1]$i]}; echo \* tput cup ${line[$[k-1]$i]} ${column[$[k-1]$i]}; echo \*
unset linea[$[k-1]$i]; unset columna[$[k-1]$i] # Limpiar el array unset line[$[k-1]$i]; unset column[$[k-1]$i] # Array cleanup
} }
li=$((RANDOM % 9 + 3)) li=$((RANDOM % 9 + 3))
inicio=$((c-li+2)) start=$((c-li+2))
fin=$((c+li+2)) co=$((RANDOM % (li-2) * 2 + 1 + start))
co=$((RANDOM % (li-2) * 2 + 1 + inicio)) tput setaf $color; tput bold # Switch colors
tput setaf $color; tput bold # cambiar colorcitos
tput cup $li $co tput cup $li $co
echo o echo o
linea[$k$i]=$li line[$k$i]=$li
columna[$k$i]=$co column[$k$i]=$co
color=$(((color+1)%8)) color=$(((color+1)%8))
# Texto flashero # Flashing text
sh=1 sh=1
for l in C O D E for l in C O D E
do do

View file

@ -9,7 +9,7 @@ est=$((c-2))
color=0 color=0
tput setaf 2; tput bold tput setaf 2; tput bold
# Arbolito # Tree
for ((i=1; i<20; i+=2)) for ((i=1; i<20; i+=2))
{ {
tput cup $lin $col tput cup $lin $col
@ -23,42 +23,40 @@ for ((i=1; i<20; i+=2))
tput sgr0; tput setaf 3 tput sgr0; tput setaf 3
# Tronco # Trunk
for ((i=1; i<=2; i++)) for ((i=1; i<=2; i++))
{ {
tput cup $((lin++)) $c tput cup $((lin++)) $c
echo 'mWm' echo 'mWm'
} }
ano_nuevo=$(date +'%Y') new_year=$(date +'%Y')
let ano_nuevo++ let new_year++
tput setaf 1; tput bold tput setaf 1; tput bold
tput cup $lin $((c - 6)); echo FELICES FIESTAS tput cup $lin $((c - 6)); echo FELICES FIESTAS
tput cup $((lin + 1)) $((c - 9)); echo Y mucho CODIGO en $new_year
tput cup $((lin + 1)) $((c - 9)); echo Y mucho CODIGO en $ano_nuevo
let c++ let c++
k=1 k=1
# Lucecitas y bolitas # Lights and decorations
while true; do while true; do
for ((i=1; i<=35; i++)) { for ((i=1; i<=35; i++)) {
# Apagar luces # Turn off the lights
[ $k -gt 1 ] && { [ $k -gt 1 ] && {
tput setaf 2; tput bold tput setaf 2; tput bold
tput cup ${linea[$[k-1]$i]} ${columna[$[k-1]$i]}; echo \* tput cup ${line[$[k-1]$i]} ${column[$[k-1]$i]}; echo \*
unset linea[$[k-1]$i]; unset columna[$[k-1]$i] # Limpiar el array unset line[$[k-1]$i]; unset column[$[k-1]$i] # Array cleanup
} }
li=$((RANDOM % 9 + 3)) li=$((RANDOM % 9 + 3))
inicio=$((c-li+2)) start=$((c-li+2))
fin=$((c+li+2)) co=$((RANDOM % (li-2) * 2 + 1 + start))
co=$((RANDOM % (li-2) * 2 + 1 + inicio)) tput setaf $color; tput bold # Switch colors
tput setaf $color; tput bold # cambiar colorcitos
tput cup $li $co tput cup $li $co
echo o echo o
linea[$k$i]=$li line[$k$i]=$li
columna[$k$i]=$co column[$k$i]=$co
color=$(((color+1)%8)) color=$(((color+1)%8))
# Texto flashero # Flashing text
sh=1 sh=1
for l in C O D I G O for l in C O D I G O
do do