Skip to content

Instantly share code, notes, and snippets.

View brunoocasali's full-sized avatar

Bruno Casali brunoocasali

View GitHub Profile
@brunoocasali
brunoocasali / banco.sql
Created November 26, 2015 23:49
esse é o banco
CREATE DATABASE thrift_shop;
CREATE TABLE IF NOT EXISTS users(
id SERIAL PRIMARY KEY,
name VARCHAR(45) NOT NULL,
password VARCHAR(45) NOT NULL,
email VARCHAR(45) NOT NULL,
gender CHAR(1) NOT NULL
);
@brunoocasali
brunoocasali / FEATURES.md
Last active December 3, 2015 01:09
New Project!

Algumas novas Features (before develop)

#flow:

Deslogado:

Dashboard:

  • coluna principal:
    • pra qual time você torce?: Aqui a pessoa ficaria com a foto(icone de pessoa, pois ela está off) redonda maior, e um escudo de time também estilo ícone. Assim que clicado, iria para o cadastro login.
    • zueiras recentes: aqui seria bacana algo como o facebook, todos os posts cadastrados, atualizados automaticamente.
@brunoocasali
brunoocasali / quebra-gelo.md
Last active August 29, 2015 14:27
Versão pública dos detalhes do Quebra Gelo

QUEBRA GELO

O Quebra Gelo, é um aplicativo diferente de qualquer forma de comunicação disponível no mercado hoje. Você então está em uma mesa de um pub/universidade/restaurante, e de olho naquela gata de sorriso marcante e curvas impressionantes, que está a alguns metros de distância de você...

Por que você não vai até ela conversar? Eu?

É, você! Eu não, vou ir lá e passar vergonha, levar um fora!, nem sei o que falar, sou muito tímido.

Então abre o Quebra Gelo que ele vai te ajudar a conversar com ela.

@brunoocasali
brunoocasali / instructions.md
Last active August 29, 2015 14:26
Installing OpenCV at Linux

OpenCV at Linux - How to install?

First of all you'll need to install this:

[compiler] sudo apt-get install build-essential
[required] sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
[optional] sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
require 'rails_helper'
module MpaStory
module Debugger
RSpec.describe ChildrenHelper, type: :helper do
describe '.show_as_link?' do
context 'when the archetype is not a story' do
let(:archetype) { create(:mpa_story_archetype, tier: ArchetypeTier::PROCESS) }
it 'needs to return a link tag' do
@brunoocasali
brunoocasali / testing.rb
Created April 13, 2015 19:23
Tirei o proc!
module MpaStory
module Job
class FakeNotificationCounter
def initialize
@count = {}
end
def increment(name)
@count[name.to_sym] ||= 0
@count[name.to_sym] += 1
@brunoocasali
brunoocasali / error.sh
Created April 10, 2015 17:37
Erros e mais erros :/ AHAHHAHAHA
# SEM USAR O require... no próprio arquivo
[bruno@chp repense-asi]$ rspec spec/jobs/the_job_spec.rb
F
Failures:
1) TheJob sets condition
Failure/Error: expect(subject.condition).to equal(subject.artifacts.number)
NoMethodError:
@brunoocasali
brunoocasali / grub.sh
Created March 13, 2015 19:34
GrubFile
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=Antergos
GRUB_CMDLINE_LINUX_DEFAULT="resume=UUID=ba14b999-aa05-494d-ae56-52c3190cd7a2 quiet splash nomodeset"
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""
# Preload both GPT and MBR modules so that they are not missed
@brunoocasali
brunoocasali / root-executing-start-neo
Created December 6, 2014 13:58
Command to start the Neo4j with root
bruno@cabuum:/opt/neo4j-community-2.1.6/bin$ sudo ./neo4j start
[sudo] password for bruno:
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Using additional JVM arguments: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:-OmitStackTraceInFastThrow
Starting Neo4j Server...process [10225]... waiting for server to be ready............. OK.
http://localhost:7474/ is ready.
bruno@cabuum:/opt/neo4j-community-2.1.6/bin$
@brunoocasali
brunoocasali / start-neo4j-error
Last active August 29, 2015 14:10
Command to start the Neo4j
bruno@cabuum:/opt/neo4j-community-2.1.6/bin$ ./neo4j start
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Using additional JVM arguments: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:-OmitStackTraceInFastThrow
Starting Neo4j Server...ERROR: No write access to data/ directory, run either as user bruno or root