Skip to content

Instantly share code, notes, and snippets.

View clauda's full-sized avatar
🦉

Claudia Farias clauda

🦉
View GitHub Profile
@clauda
clauda / commit_message.md
Created May 20, 2019 15:36 — forked from lucasmezencio/commit_message.md
Como escrever a mensagem de um commit

As mensagens dos commits devem servir para três importantes coisas:

  • Para acelerar o processo de revisão.
  • Para ajudar a escrever uma boa nota de lançamento.
  • Para ajudar os futuros mantenedores (que pode ser você), ou ajudar a descobrir porque uma mudança foi feita no código ou porque uma funcionalidade foi adicionada.

Escreva sua mensagem de commit desta forma:

@clauda
clauda / .gemrc
Created January 3, 2019 17:09
Faster bundle
---
# The paths in which to look for gems
# :gempath:
# Force specification of gem server host on push
# disable_default_gem_server:
# A YAML array of remote gem repositories to install gems from
# :sources:
@clauda
clauda / estados_regioes_br.json
Created April 18, 2018 05:10
Dados Estados e Regiões, Siglas, BR
{
"states": {
"AM": "N",
"RR": "N",
"AP": "N",
"PA": "N",
"TO": "N",
"RO": "N",
"AC": "N",
@clauda
clauda / notebooks.models.py
Created October 23, 2017 04:28
My Django Project Sample
from django.db import models
from students.models impport Student
class Project(models.Model):
student = models.ForeignKey(Student)
name = models.CharField(max_length=200)
def __str__(self):
return self.name
@clauda
clauda / ggplot_barchart_dodge_stack.R
Last active August 25, 2017 00:20
ggplot - dodge and stack bars combined - R Language
library(ggplot2)
library(reshape2)
cancers <- c("BLCA", "BRCA", "COADREAD")
oncogenes <- c(18, 9, 4)
suppressors <- c(7, 8, 36)
proteins <- c(27, 22, 38)
drugs <- c(41, 33, 58)
dataset <- data.frame(Cancer = cancers,
@clauda
clauda / Toastr on Rails
Last active August 8, 2016 06:50
Toastr on Rails
application.js
`//= require toastr.min`
application.css
`*= require toastr.min`
@clauda
clauda / gl
Created June 16, 2016 17:35
Custom FishShell Functions
git log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
@clauda
clauda / flat.rb
Created May 20, 2016 02:20
Ruby #flat
class Array
def flat
each_with_object([]) do |element, init|
init.push *(element.is_a?(Array) ? element.flat : element)
end
end
end
@clauda
clauda / css_guideline.md
Last active July 11, 2017 17:15
O Bom CSS

Guia para desenvolvimento de folhas de estilo no site do Quero Bolsa.

Antes de começar...

Utilize arquivos com extensão .scss

Utilizamos SASS no projeto.

Utilize indentação de 2 espaços (não utilize tab)

Respeite os níveis de indentação.

@clauda
clauda / CUSTOM_COMBOBOX.md
Last active December 28, 2015 08:39
Another Custom Select Box

Custom Select

combo.png

The Markup:

  <div class='select'>
    <input type='hidden' value='0' class='input' name='choose' />
    <span class='selected'></span>