Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
working a lot

Cleiton Loiola klaygomes

💭
working a lot
View GitHub Profile
View ruby_2021-07-23-010410_Cleitons-Mac-mini.crash
Process: ruby [14697]
Path: /usr/bin/ruby
Identifier: ruby
Version: 145.100.1
Code Type: ARM-64 (Native)
Parent Process: zsh [6051]
Responsible: iTerm2 [2166]
User ID: 501
PlugIn Path: /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.3/lib/ffi_c.bundle
View first-go-program
package main
import (
"encoding/csv"
"fmt"
"io"
"os"
"sort"
)
View git-tips.md

Lista todas as branchs que já foram merged

git branch -r --merged origin/master

Limpa todas as branchs que foram merged (apenas local)

git branch --merged master | grep -v "\* master" | xargs -n 1 git branch -d

Limpa todas as branchs que foram merged (origin)

git branch -r --merged origin/master | grep -v "\* master" | xargs -n 1 git push origin --delete

@klaygomes
klaygomes / test.js
Last active Apr 28, 2016
Requisitos: Dado um Schema inicial simples, aplicar funções de transformação em campos definidos pelo usuário.
View test.js
'use strict';
var Schema = {
name: {
type: String
},
lastname: {
type: String
},
avatar: {