Skip to content

Instantly share code, notes, and snippets.

<div class="wistia_responsive_padding" style="padding:56.25% 0 0 0;position:relative;"><div class="wistia_responsive_wrapper" style="height:100%;left:0;position:absolute;top:0;width:100%;"><iframe src="//fast.wistia.net/embed/iframe/m52cd83p5w?videoFoam=true" allowtransparency="true" frameborder="0" scrolling="no" class="wistia_embed" name="wistia_embed" allowfullscreen mozallowfullscreen webkitallowfullscreen oallowfullscreen msallowfullscreen width="100%" height="100%"></iframe></div></div>
<script src="//fast.wistia.net/assets/external/E-v1.js" async></script>
@fredericksilva
fredericksilva / bin-cc.md
Created March 9, 2016 14:42 — forked from erikhenrique/bin-cc.md
Bin de cartões de crédito para validação

Validação para cartão de crédito.

Bin e padrões para validação de cartão de crédito.

Bandeira Começa com Máximo de número Máximo de número cvc
Visa 4 13,16 3
Mastercard 5 16 3
@fredericksilva
fredericksilva / CardBitcoin.md
Last active April 24, 2016 07:04
Cartão de crédito pré-pago com Bitcoin -
01/Jul/2016 17:15:05] "GET / HTTP/1.1" 500 59
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Subject: [if-sysadmin]ERROR (EXTERNAL IP): Internal Server Error: /favicon.ico
From: root@localhost
To: root@localhost, [email protected], [email protected]
Date: Fri, 01 Jul 2016 20:15:06 -0000
Message-ID: <20160701201506.9581.78458@labrio>
@fredericksilva
fredericksilva / docker-compose.yml
Created January 10, 2017 20:12
Docker Emprego Ligado
# PS: /home/docker/ makes it create the volumes on the remote
rabbitmq:
container_name: dev_rabbitmq
image: rabbitmq:3.5.6-management
hostname: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
volumes:
@fredericksilva
fredericksilva / nodebook.md
Created February 5, 2017 02:11 — forked from dshaw/nodebook.md
Running Node on a Samsung 303C Chromebook

Running Node on a Samsung 303C Chromebook

Motivation

After @mikeal and @lyle purchased Chromebooks for kids activities at NodeConf 2014, I was very impressed with the device and decided to explore this as a laptop and hacking device for my kids (7 & 8). I'd love to retain the simplicity of the web-focused ChromeOS experience while letting my kids hack on NodeBots and learn how to program.

It seems like the platforms that ChromeOS runs on are quite diverse. The Samsung 303C hit the right balance of being an aesthetically pleasing looking device, having respectable build quality and the amazing $250 price point. The 303C has an ARM processor. Not all Chromebooks do. I'm writing the below step-by-step very specifically for this system.

Resources

What to use

  • Test runner: ava
  • React components testing: enzyme
  • Endpoint testing: express + supertest
  • Mocking framework: sinon
  • External dependencies mocking: proxyquire

Test cases

all the following examples are using ava syntax, but they may be easily adapted to mocha or tape as well

@fredericksilva
fredericksilva / Links.md
Created March 11, 2017 15:05 — forked from arindam89/Links.md
JS Links for the talk
@fredericksilva
fredericksilva / javascript-study-plan.md
Created March 11, 2017 15:05 — forked from coreybruyere/javascript-study-plan.md
A step-by-step JavaScript study plan to start in mid November.