Skip to content

Instantly share code, notes, and snippets.

View sebastianandrada's full-sized avatar
🐺
👍

Sebastián Andrada sebastianandrada

🐺
👍
  • San José, Almirante Brown
View GitHub Profile
@dcatanzaro
dcatanzaro / poke.js
Last active November 12, 2021 14:42
Pokemon del día
const numberDay = () => {
const now = new Date();
const start = new Date(now.getFullYear(), 0, 0);
const diff = now - start;
const oneDay = 1000 * 60 * 60 * 24;
const day = Math.floor(diff / oneDay);
return day;
};
const pokemonUrl = `https://pokeapi.co/api/v2/pokemon/${numberDay()}`;

Free O'Reilly books and convenient script to just download them.

Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post

How to use:

  1. Take the download.sh file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)
  3. Run ./download.sh and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.
@gollum23
gollum23 / superlog
Created February 3, 2016 02:52
Superlog Curso git platzi
git config --global alias.superlog "log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"