Skip to content

Instantly share code, notes, and snippets.

View victorhg's full-sized avatar

Victor Hugo Germano victorhg

View GitHub Profile
https://www.sympla.com.br/curso-de-inteligencia-artificial---school-of-ai-de-sao-paulo-040619-as-1830h__542758
@victorhg
victorhg / .bash_profile
Created January 16, 2013 19:48
Git Bash integration
alias ls="ls -G"
alias grep="grep --colour=auto"
git_status() {
untracked=$(git status | grep 'Untracked files' 2> /dev/null)
if [ -n "$untracked" ]; then
echo "☠"
else
@victorhg
victorhg / file.js.coffee
Created August 24, 2012 17:32
file.js.coffee
settings: ->
content:
text: @actions_content()
title:
text: " "
button: "×"
position:
my: "right center"
at: "left center"
show:
describe "User acessing website", """
In order to easy accessing process
As a user
I can use my facebook account to connect to the website""" do
context "When a user doesn't have a go2doc account" do
context "Acessing the registration process with facebook" do
before do
visit root_path
click_link "Facebook-login"
@victorhg
victorhg / gist:2829728
Created May 29, 2012 17:51
rspec output
Doctors update profile
In order to have an up to date public profile
As a doctor
I should be able to update my profile information
When a registered doctor login and access the edit profile page
and change his name, the name should be updated
and change his photo, the photo should be updated
and change his photo to a bigger than 2mb, the photo should not be changed
and change his password, the login authentication should work
and change his e-mail, the user e-mail should be changed too
@victorhg
victorhg / spec_helper.rb
Created February 28, 2012 03:36
spec_helper
require 'rubygems'
require 'spork'
Spork.prefork do
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
#!/bin/bash -x
# All grails versions are under /opt/
# The directory /opt/grails is a symbolic link to some of the grails instalations
# GRAILS_HOME and PATH are configured to /opt/grails
#
# Then, the magic is only replacing the grails link dir to the one you want:
#
# $> use-grails 1.3.3