Skip to content

Instantly share code, notes, and snippets.

View matheusnascgomes's full-sized avatar

Matheus Gomes matheusnascgomes

View GitHub Profile
@matheusnascgomes
matheusnascgomes / gitconfig.md
Last active May 23, 2023 12:00
Usefull git alias
[alias]
st = status
        co = commit
        logone = log --oneline
        lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
        ck = checkout
        copy = checkout -b
 br = branch
module.exports = {
env: {
browser: true,
es6: true,
jest: true,
},
extends: [
'react-app',
'airbnb',
'plugin:@typescript-eslint/recommended',
@lavesan
lavesan / Math.md
Last active April 28, 2020 02:28
Javascript
@gustavonovaes
gustavonovaes / DB.php
Created February 5, 2019 12:42
Helper para PDO
<?php
class DB
{
/**
* @var \PDO
*/
private $pdo;
public function __construct(string $dsn, string $username, string $passwd, array $options = [])
@raisiqueira
raisiqueira / README.MD
Last active August 6, 2021 17:40
Install Docker

Install Docker

https://github.com/eon01/DockerCheatSheet

Install

curl -fsSL https://get.docker.com | sh;

docker-compose

@alexpchin
alexpchin / socket-cheatsheet.js
Created December 15, 2015 16:58
A quick cheatsheet for socket.io
// sending to sender-client only
socket.emit('message', "this is a test");
// sending to all clients, include sender
io.emit('message', "this is a test");
// sending to all clients except sender
socket.broadcast.emit('message', "this is a test");
// sending to all clients in 'game' room(channel) except sender