Skip to content

Instantly share code, notes, and snippets.

View italosantana's full-sized avatar
🎯
Focusing

Ítalo S. italosantana

🎯
Focusing
View GitHub Profile
@michielmulders
michielmulders / circuit-breaker-solidity.sol
Created August 5, 2018 14:06
Circuit Breaker Solidity Ethereum smart contract example
bool private stopped = false;
address private owner;
modifier isAdmin() {
if(msg.sender != owner) {
throw;
}
_
}
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active June 6, 2024 23:16
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@stereokai
stereokai / gist:36dc0095b9d24ce93b045e2ddc60d7a0
Last active May 22, 2024 11:42
CSS rounded corners with gradient border
.rounded-corners-gradient-borders {
width: 300px;
height: 80px;
border: double 4px transparent;
border-radius: 80px;
background-image: linear-gradient(white, white), radial-gradient(circle at top left, #f00,#3020ff);
background-origin: border-box;
background-clip: padding-box, border-box;
}

Github Two-Factor Authentication (2FA) for Brazil via SMS

The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console. The option Brazil +55 will be the first on the list, already selected:


🇧🇷 [pt-BR]

Autenticação em dois fatores (2FA) do GitHub para o Brasil via SMS

@gledsoncruz
gledsoncruz / products.json
Created September 29, 2014 14:36
exemplos produtos json
[
{
"id":1,
"name":"Jaleco",
"description":"Jaleco de alta qualidade fabricado para atender aos clientes mais exigentes",
"price":"R$ 999,99",
"available":true
},
{
@pedronauck
pedronauck / git.md
Created May 14, 2013 15:09
Terminal commands

Comandos Gerais

Clonar um Repositório

$ git clone 'nome-do-repositório'

Verificar status

$ git status