Skip to content

Instantly share code, notes, and snippets.

View crissilvaeng's full-sized avatar

Cristina Silva crissilvaeng

View GitHub Profile
@crissilvaeng
crissilvaeng / README.md
Created May 9, 2016 19:40
Padrão e mensagens de commit.

Styleguides

Mensagens de commit styleguide

  • Usar modo imperativo ("Adiciona feature" não "Adicionando feature" ou "Adicionada feature")
  • Primeira linha deve ter no máximo 72 caracteres
  • Considere descrever com detalhes no corpo do commit
  • Considere usar um emoji no início da mensagem de commit

Emoji | Code | Commit Type

Contribuição

Padrão de mensagem de commit

  • Usar modo imperativo ("Adiciona feature" não "Adicionando feature" ou "Adicionada feature")
  • Primeira linha deve ter no máximo 72 caracteres
  • Considere descrever com detalhes no corpo do commit
  • Considere usar um emoji no iní­cio da mensagem de commit

Emoji | Code | Commit Type

@crissilvaeng
crissilvaeng / git-rentag.sh
Created August 10, 2016 22:52
Rename tag local and remote.
#!/bin/sh
# The MIT License (MIT)
# Copyright (c) 2016 Cristina Silva <cristina.silva@openmailbox.org>
# and Ceres Rohana <ceres.rohana@gmail.com>
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
@crissilvaeng
crissilvaeng / .tmux.conf
Last active August 17, 2016 05:29
Dev Utils
# remap prefix to Control + a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
unbind C-b
type Party struct {
ID int `db:"id"`
Description string `db:"description"`
StartAt time.Time `db:"start_at"`
EndAt time.Time `db:"end_at"`
Dangerous bool `db:"dangerous"`
}
func TestGetAnswer(t *testing.T) {
httpmock.Activate()
defer httpmock.DeactivateAndReset()
httpmock.RegisterResponder("GET", "https://localhost:8080/answer",
httpmock.NewStringResponder(200, `{"answer": 42}`))
}
func TestPostAnswer(t *testing.T) {
httpmock.Activate()
@crissilvaeng
crissilvaeng / Program.cs
Created June 2, 2017 16:58
Enum to custom string!
using System;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import json
from marvel.marvel import Marvel
public_key = os.environ.get('MARVEL_API_PUBLIC_KEY')
private_key = os.environ.get('MARVEL_API_PRIVATE_KEY')
angular.module('yourApp').run(['$templateCache', function($templateCache) {
$templateCache.put('directives/toast/toast.html',
"<div>Your template here</div>"
);
$templateCache.put('directives/progressbar/progressbar.html',
"<div>Your progressbar here</div>"
);
}]);

Keybase proof

I hereby claim:

  • I am crissilvaeng on github.
  • I am crissilvaeng (https://keybase.io/crissilvaeng) on keybase.
  • I have a public key ASBTA2vRaZewQlqcwMcN8qPmkGl937shp9GfpOI7dQdpHQo

To claim this, I am signing this object: