Skip to content

Instantly share code, notes, and snippets.

View bcfurtado's full-sized avatar
🏠
Working from home

Bruno Furtado bcfurtado

🏠
Working from home
View GitHub Profile
@staltz
staltz / introrx.md
Last active May 6, 2025 07:45
The introduction to Reactive Programming you've been missing

Unit Test

The definition of Unit Test is quite general:

In computer programming, unit testing is a method by which individual units of source code, sets of one or more computer program modules together with associated control data, usage procedures, and operating procedures are tested to determine if they are fit for use. [...] A unit could be an entire module, but it is more commonly an individual function or procedure. --Wikipedia

@garaud
garaud / pipe-to-emacs.py
Last active October 18, 2024 13:50
Pipe to Emacs: Insert a result from an UNIX command into a new Emacs buffer
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Author: Damien Garaud
# Date: 2014-2015
# License: Simplified BSD
"""Allow you to pipe command results into an Emacs buffer. Suppose you have an
Emacs server since you launch 'emacsclient'.
@kevinelliott
kevinelliott / osx-10.10-setup.md
Last active March 29, 2025 07:56
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

@magicznyleszek
magicznyleszek / css-selectors.md
Last active January 27, 2025 14:19
CSS Selectors Cheatsheet

CSS Selectors Cheatsheet

Hi! If you see an error or something is missing (like :focus-within for few years :P) please let me know ❤️

Element selectors

Element -- selects all h2 elements on the page

h2 {
@clemtibs
clemtibs / Commit Formatting.md
Last active May 6, 2025 10:08
Angular Commit Format Reference Sheet

Commit Message Format

This specification is inspired by and supersedes the [AngularJS commit message format][commit-message-format].

We have very precise rules over how our Git commit messages must be formatted. This format leads to easier to read commit history.

Each commit message consists of a header, a body, and a footer.

@henvic
henvic / CancellablePromise.js
Last active August 29, 2015 14:16 — forked from eduardolundgren/CancellablePromise.js
CancellablePromise.all
/**
* Cancellable promise.
*
* @class CancellablePromise
* @constructor
* @extends {Promise}
* @param {Function} fn A function where to insert the logic that resolves this
* promise. Receives `fulfill` and `reject` functions as parameters. This
* function is called synchronously.
* @param {Function} opt_errorCallback Optional error callback to be fired
@potter0815
potter0815 / cloneall.sh
Last active January 30, 2024 13:07
clone all private repos of an organization
#!/bin/bash
#requires jq -> http://stedolan.github.io/jq/
#optional change working_dir
working_dir=${1-$(pwd)}
cd $working_dir
user="github_username"
token="application token"
organization="Organization_Name"
@blueyed
blueyed / test_django_data_migration.py
Last active December 9, 2020 16:20
Test Django data migrations
"""
Test (data) migrations in Django.
This uses py.test/pytest-django (the `transactional_db` fixture comes from there),
but could be easily adopted for Django's testrunner:
from django.test.testcases import TransactionTestCase
class FooTestcase(TransactionTestCase):
def test_with_django(self):
@thiagoghisi
thiagoghisi / test-strategy-books.txt
Last active April 20, 2016 21:24
Livros sobre Estratégias de Testes, meus favoritos.
Livros sobre Estratégias de Testes, meus favoritos:
- The "A" Word, Under the Covers of Test Automation: https://leanpub.com/TheAWord
// Super recomendo também o blog do Alan Page (http://angryweasel.com/blog/) que tem muuuita coisa legal e o podcast que ele fez recentemente com o Joe Colantonio (basicamente e destila em 50 min grande parte das ideias dele sobre automação e QA): http://joecolantonio.com/testtalks/44-alan-page-testing-software-at-microsoft-lessons-learned/
- Working Effectively with Unit Tests: https://leanpub.com/wewut
// Esse livro me ajudou muuito!!! Os conceitos de Solitary and Sociable Tests que o cara descreve são super úteis para entender como usar mocks e como montar uma estratégia de testes automatizados eficientes.
- A Practitioner's Guide to Software Test Design: http://www.amazon.com/Practitioners-Guide-Software-Test-Design/dp/158053791X/
// Basicamente toda a base teórica necessária para "desenhar" casos de testes caixa branca e caixa preta eficientes. A "Section II - White