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
## License?
[Do what you want with it](./LICENSE) license.
## Will it run under _whatever-OS_?
Only Linux and Unix flavors.
Only GNU/Linux and Unix flavors.
## What OS are you using?
OSX 10.11.3 "El Capitan"
Ubuntu 17.10.
## What about your terminal emulator?
[iTerm2](https://iterm2.com/)
[Tilix](https://gnunn1.github.io/tilix-web/)
## And your color palette?
[Dracula](https://zenorocha.github.io/dracula-theme/iterm/)
Custom, based on Atom's "One Dark" theme.
## 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
tput setaf 2; tput bold
# Arbolito
# Tree
for ((i=1; i<20; i+=2))
{
tput cup $lin $col
@ -23,7 +23,7 @@ for ((i=1; i<20; i+=2))
tput sgr0; tput setaf 3
# Tronco
# Trunk
for ((i=1; i<=2; i++))
{
tput cup $((lin++)) $c
@ -37,27 +37,26 @@ tput cup $((lin + 1)) $((c - 10)); echo And lots of CODE in $new_year
let c++
k=1
# Lucecitas y bolitas
# Lights and decorations
while true; do
for ((i=1; i<=35; i++)) {
# Apagar luces
# Turn off the lights
[ $k -gt 1 ] && {
tput setaf 2; tput bold
tput cup ${linea[$[k-1]$i]} ${columna[$[k-1]$i]}; echo \*
unset linea[$[k-1]$i]; unset columna[$[k-1]$i] # Limpiar el array
tput cup ${line[$[k-1]$i]} ${column[$[k-1]$i]}; echo \*
unset line[$[k-1]$i]; unset column[$[k-1]$i] # Array cleanup
}
li=$((RANDOM % 9 + 3))
inicio=$((c-li+2))
fin=$((c+li+2))
co=$((RANDOM % (li-2) * 2 + 1 + inicio))
tput setaf $color; tput bold # cambiar colorcitos
start=$((c-li+2))
co=$((RANDOM % (li-2) * 2 + 1 + start))
tput setaf $color; tput bold # Switch colors
tput cup $li $co
echo o
linea[$k$i]=$li
columna[$k$i]=$co
line[$k$i]=$li
column[$k$i]=$co
color=$(((color+1)%8))
# Texto flashero
# Flashing text
sh=1
for l in C O D E
do

View file

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