Skip to content

Instantly share code, notes, and snippets.

View brunoocasali's full-sized avatar

Bruno Casali brunoocasali

View GitHub Profile
using UnityEngine;
using System.Collections;
public class ExampleScript : MonoBehaviour {
// Use this for initialization
void Start() {
}
// Update is called once per frame
@brunoocasali
brunoocasali / tecnologias.md
Last active November 24, 2016 17:29
Wesley - DevMedia

Integração Contínua & Code Quality

  • Wercker C.I.
  • Circle C.I.
  • Semaphore C.I.
  • CodeClimate
  • Rubocop

Versionamento

@brunoocasali
brunoocasali / docker-ssl-deployment.sh
Created March 21, 2017 13:33 — forked from jshimko/docker-ssl-deployment.sh
Deploy Reaction Commerce on Digital Ocean with Nginx and a Let's Encrypt SSL certificate
# start a server on Digital Ocean
# https://docs.docker.com/machine/drivers/digital-ocean/
docker-machine create \
--driver digitalocean \
--digitalocean-access-token <YOUR API KEY> \
--digitalocean-size 2gb \
reaction
# tell Docker to run commands on that server
@brunoocasali
brunoocasali / script.html
Last active April 13, 2017 13:12
Instalação do Selo Site Sincero
<!--
Insira este script antes do final da tag <body>.
E não se esqueça de substituir o XXXXXXXXXXXXX pelo identificador da sua loja.
-->
<script type="text/javascript">
var _trustvox_certificate = _trustvox_certificate || [];
_trustvox_certificate.push(['_storeId', 'XXXXXXXXXXXXX']);
(function() {
var tv = document.createElement('script'); tv.type = 'text/javascript';
@brunoocasali
brunoocasali / fixo.html
Created April 11, 2017 19:45
Instalação do selo Site Sincero de forma fixa
<!-- Posicione esta div onde deseja que o selo fixo apareça (nenhum CSS é necessário) -->
<div data-trustvox-certificate-fixed></div>
@brunoocasali
brunoocasali / script-en.html
Last active April 28, 2017 14:27
Installing Trustvox Site Sincero's seal (en tutorial)
<!--
Insert this script before ending of <body> tag.
And don' forget to replace the XXXXXXXXXXXXX by your store's id.
-->
<script type="text/javascript">
var _trustvox_certificate = _trustvox_certificate || [];
_trustvox_certificate.push(['_storeId', 'XXXXXXXXXXXXX']);
(function() {
var tv = document.createElement('script'); tv.type = 'text/javascript';
tv.src = '//s3-sa-east-1.amazonaws.com/trustvox-certificate-widget/widget.js'; tv.async = true;
@brunoocasali
brunoocasali / back-end-1.md
Last active July 26, 2017 15:11
Trustvox <> FullStack developer candidate

Quake 3 reports

Task 1: describing the reports system

Describe how you would implement a command line tool to read Quake 3 log files and generate reports. Describe the architecture, classes/modules and design decisions. There is no need to write the code, the answer should be in plain text and in english. Prefere paragraphs instead of bullet points.

The system should be able to read a text file containing the games log of a Quake 3 server. The log aggregates information about kills, deaths, suicides and player names ordered by time.

Use case: game summary

# Greeter is a class of object that can greet people.
# It can learn different ways of greeting people through
# 'Strategies.'
#
# This is the Greeter constructor.
Greeter = (strategy) ->
@strategy = strategy
# Greeter provides a greet function that is going to
# greet people using the Strategy passed to the constructor.
describe 'Many products use case' do
include_context 'logged with valid querystring'
let!(:workflow) { nil }
let!(:sale_item2) do
FactoryGirl.create :sale_item, sale: sale, product: product2
end
let(:build_params) do
{ rate: 1, user: user, store: store, text: Faker::Lorem.sentence }
<html>
<head>
</head>
<body>
<!-- na página de produto -->
<!-- divs necessárias -->
<div id="_trustvox"></div>
<div id="_trustvox_dizzplay"></div>
<div id="_trustvox_repro"></div>