Skip to content

Instantly share code, notes, and snippets.

View rafael-garcia's full-sized avatar

Rafael Matheus Garcia rafael-garcia

View GitHub Profile
@fokusferit
fokusferit / enzyme_render_diffs.md
Last active April 15, 2024 09:41
Difference between Shallow, Mount and render of Enzyme

Shallow

Real unit test (isolation, no children render)

Simple shallow

Calls:

  • constructor
  • render
@danilopopeye
danilopopeye / README.md
Last active July 3, 2016 21:23
Sodexo2ynab: exporte as transações do seu cartão Sodexo para CSV no formato do YNAB

Sodexo2ynab

Exporte as transações do seu cartão Sodexo para CSV no formato do You Need A Budget.

Tutorial

  1. Crie um bookmarklet com o snipet que está no final da página
  2. Acesse o site: https://sodexosaldocartao.com.br e faça o login
  3. Clique no bookmarklet na barra de favoritos
  4. O download do arquivo sodexo_{últimos 4 digitos}.csv deve ter sido iniciado
@creationix
creationix / chatServer.js
Created November 19, 2010 20:47
A simple TCP based chat server written in node.js
// Load the TCP Library
net = require('net');
// Keep track of the chat clients
var clients = [];
// Start a TCP Server
net.createServer(function (socket) {
// Identify this client