Skip to content

Instantly share code, notes, and snippets.

View brunoocasali's full-sized avatar

Bruno Casali brunoocasali

View GitHub Profile
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
-- NOTES:
-- double dash denotes comments
-- $ denotes shell command
-- everything else is Pig Latin, executed in Grunt
-- Data set downloaded from http://www.ncdc.noaa.gov
-- Load data into Hadoop
$ hadoop fs -put ./input.txt input.txt
$ hadoop fs -ls
$ hadoop fs -tail hdfs://localhost.localdomain:8020/user/cloudera/input.txt
[
{
tags: ["Grupo/CALCADOS", 'SubGrupo/Tênis', "Categoria/Corrida / Caminhada"],
questions: [
{
description: "Tamanho",
options: [""]
},
{
description: "Conforto"
<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>
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 }
# 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.
@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

@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 / 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>