Skip to content

Instantly share code, notes, and snippets.

View guivinicius's full-sized avatar
🏠
Working from home

Guilherme Vinicius Moreira guivinicius

🏠
Working from home
View GitHub Profile
@guivinicius
guivinicius / test.rb
Created September 15, 2011 20:48
Blockshopper
class Parent
def self.descendants
ObjectSpace.each_object(Class).find_all { |klass| klass if klass < Parent }
end
end
class OlderChild < Parent
@guivinicius
guivinicius / gist:2927843
Created June 14, 2012 03:18
Curso de Férias - Introdução ao Desenvolvimento Web

Curso de Introdução ao Desenvolvimento Web

Data / Horários

Do dia 02 ao 06 de Julho. Das 19h às 22h.

Conteúdo

  • Git (Controle de versão)
@guivinicius
guivinicius / gist:3990561
Created October 31, 2012 23:16
Programa de Talentos FOCO|Virtual - Desafio Ruby / Rails 101

Ruby

  products = [
    {name: 'macbook', price: 5000}, 
    {name: 'pokemon', price: 100}
    {name: 'livro', price: 50}
  ]
# Eu sou um comentario!
#
# Muito mais simples para entender depois!
# Variaveis
# Mais comuns
var = "Sou uma variável local!"
# @var = [1, "asd", "aaaaaa"]
# VAR = 123
@guivinicius
guivinicius / unicorn.rb
Created March 7, 2014 21:44
unicorn.rb example with redis
# See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete
# documentation.
worker_processes <%= fetch(:unicorn_workers) %>
listen "/tmp/unicorn.<%= fetch(:application) %>.sock", :backlog => 64
# listen 8080, :tcp_nopush => true
# combine Ruby 2.0.0dev or REE with "preload_app true" for memory savings
# http://rubyenterpriseedition.com/faq.html#adapt_apps_for_cow
class EncDec
KEY = "FA 0E 3C 9B 4F A2 C7 AA 37 0F CA 9B 5A 91 64 08"
IV = "AA AD 8B 4C 00 E1 3F 53 B8 E7 16 BC B5 F4 D1 B9"
attr_reader :cipher, :message, :key, :iv
def initialize(message, key = nil, iv = nil)
@key, @iv = key, iv
@cipher = OpenSSL::Cipher::AES128.new(:CBC)
@guivinicius
guivinicius / schema.rb
Created June 12, 2015 18:19
categories schema
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
@guivinicius
guivinicius / schema.rb
Created June 12, 2015 23:38
trading hours event
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
@guivinicius
guivinicius / oportunidades_codeminer42.md
Last active September 12, 2019 14:03 — forked from patybastos/oportunidades_codeminer42.md
[Diversos] Vagas para Back-end e Front-end na Codeminer42

Descrição da vaga


Buscamos developers para atuar em diversos projetos, inclusive projetos internacionais com clientes estrangeiros. Temos diversos projetos, com diversos frameworks e tecnologias, então entre em contato. Estamos procurando pessoas de todo os níveis para fazer parte de nosso time, sem diferenças nem preferências. Todos são bem vindos.

Local


A Codeminer42 está presente atualmente em mais de 10 locais do país. Temos vagas para todos eles.

ABOUT Codeminer 42 is one of the best software boutiques in Brazil. We are neither a publicity agency nor a traditional consulting/software factory company. Since 2011 in the startup and new technologies market, we grew to about 70 people in 11 different cities: São Paulo (HQ), Campinas, Novo Hamburgo, Natal, Sorocaba, Teresina, Anápolis, Goiânia, Batatais, Guarapuava and Santa Maria.

We have a track record of actually delivering all projects we tackled. At the same time, we don't burden our teams to crazy routines, 10+ hours 6 days a week workloads. We want people to work at the reasonable 8 hours a day, 5 work days a week. And we don't want people to be alienated behind firewalls of management isolating the client from the development team. Therefore, we want our teams to assume responsibilities and be accountable for the projects with our support. That's why teams work almost exclusively on a single project at the same time, instead of the normal software factory routing of sharing "resources" between man