This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Algoritmo Snowflake para generación de tweet ids: https://developer.twitter.com/en/docs/basics/twitter-ids | |
// Módulo usado para obtener la fecha: https://www.npmjs.com/package/twitter-snowflake-to-date | |
const { twitterSnowflakeToDate } = require('twitter-snowflake-to-date'); | |
// tweet original https://twitter.com/aracelibs/status/1246957335718662144 | |
const fechaTweetOriginal = twitterSnowflakeToDate("1246957335718662144"); | |
// supuesta respuesta: https://twitter.com/fgrmexico/status/1246957081585999872 | |
const fechaRespuesta = twitterSnowflakeToDate("1246957081585999872"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setaf colors | |
# https://unix.stackexchange.com/a/269085/130055 | |
BLACK="\[$(tput setaf 0)\]" | |
RED="\[$(tput setaf 1)\]" | |
GREEN="\[$(tput setaf 2)\]" | |
YELLOW="\[$(tput setaf 3)\]" | |
BLUE="\[$(tput setaf 4)\]" | |
MAGENTA="\[$(tput setaf 5)\]" | |
CYAN="\[$(tput setaf 6)\]" | |
WHITE="\[$(tput setaf 7)\]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author: saul.mtz.v | |
* | |
* Importa el contenido de http://comoayudar.mx | |
* y lo guarda en un archivo llamado cards.json | |
* | |
* Ejectuar: | |
* node cardsToJSON.js | |
*/ | |
const http = require('https'); |