Skip to content

Instantly share code, notes, and snippets.

View tomrlh's full-sized avatar
Building something

Thiago Medeiros tomrlh

Building something
View GitHub Profile
@tomrlh
tomrlh / forms_spec.rb
Created December 15, 2019 07:49
Filling forms with Rspec + Capybara
describe 'Forms' do
# common function
def login(
url, user, password, user_field, password_field,
submit_button, message_field, expected_message
)
visit url
fill_in user_field, with: user
fill_in password_field, with: password
@tomrlh
tomrlh / programmer-routine.gif
Last active December 15, 2019 02:23
Programmer routine
programmer-routine.gif
@tomrlh
tomrlh / CoinTypesGenerator.java
Created February 23, 2019 17:34
IntentionalWoodenStacks created by tomrlh - https://repl.it/@tomrlh/IntentionalWoodenStacks
import java.util.Scanner;
public class CoinTypesGenerator {
public static void main(String []args){
System.out.println("Enter a number: ");
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
// coinTypes contain the number to be divided for, singular and plural names for each type of coin
@tomrlh
tomrlh / FormMessagesHandlerExample.html
Created January 29, 2018 04:23
Displaying FeedbackMessages dynamically in Wicket
<!DOCTYPE html>
<html xmlns:wicket="http://wicket.apache.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Template</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic"/>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/admin-lte/2.4.2/css/AdminLTE.min.css"/>