Skip to content

Instantly share code, notes, and snippets.

View guih's full-sized avatar

Guilherme Matsumoto guih

  • Brazil - Santa Catarina - Florianópolis
View GitHub Profile
@guih
guih / floripa_on_rails_meetup_tdd.rb
Created March 15, 2017 13:03
FloripaOnRails Meetup - TDD
# =============
# What is TDD ?
# =============
# Writing test first is not TDD, you should let your test guide your code
# so the test bellow should have the simplest implementation as possible
it 'consumes fuel' do
expect { drive(80) }.to change(car, :fuel).from(10).to(2)
end
@guih
guih / lp_iframe_bg.html
Last active August 29, 2015 14:26
LandingPage Video Background
<script type="text/javascript">
var bg_container = '\
<div id="bg_container">\
<iframe src="//www.youtube.com/embed/XhzfQbGfmQ?autoplay=1&controls=0&loop=1&showinfo=0&modestbranding=1&disablekb=1&enablejsapi=1&muted=true" frameborder="0" width="100%" height="100%"></iframe>\
</div>';
// Escolher um dos 3 abaixo adicionando ou removendo o // da frente
$('body').append(bg_container);
// $('#featured-content .container').append(bg_container);
// $('#container section').append(bg_container);
@guih
guih / good_data_sso_groovy_example.groovy
Last active August 29, 2015 14:16
Groovy GoodData SSO Example
// This is a GoodData SSO implementation example with Groovy language following the article https://developer.gooddata.com/article/gooddata-pgp-single-sign-on
// 1. Download and install GnuPG for your platform from https://www.gnupg.org/download/
// 2 Setup your keystore following https://developer.gooddata.com/article/how-to-generate-public-private-key-pair
def SSO_PROVIDER = "resultadosdigitais.com.br"
def signerEmail = "signer@resultadosdigitais.com.br"
def signerPassword = "myPassw0r4"
def projectUserEmail = "account+123@rdstation.com.br"
def projectId = "xapasdpas123aspasdas"