This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// TFTextField.swift | |
// TFTextField | |
// | |
// Created by Tobias Feistmantl on 07/09/15. | |
// Copyright (c) 2015 Tobias Feistmantl. All rights reserved. | |
// | |
import Foundation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// TFImageView.swift | |
// Lome | |
// | |
// Created by Tobias Feistmantl on 10/09/15. | |
// Copyright (c) 2015 Tobias Feistmantl. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:var inputs = document.getElementsByClassName('uiButton _1sm'); for(var i=0; i<inputs.length;i++) { inputs[i].click(); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check or uncheck checkboxes | |
check 'box-name' | |
uncheck 'box-name' | |
# Get cookies | |
Capybara.current_session.driver.request.cookies.[]('cookie-name') | |
# Click links and buttons | |
click_button 'button' # Only for buttons | |
click_link 'link' # Only for links |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
ruby '2.2.1' | |
group :development, :test do | |
gem 'rspec-rails' | |
gem 'factory_girl_rails' | |
gem 'byebug' | |
gem 'ffaker' | |
gem 'dotenv-rails' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RSpec.configure do |config| | |
config.before(:suite) do | |
DatabaseCleaner.clean_with(:truncation) | |
end | |
config.before(:each) do | |
DatabaseCleaner.strategy = :transaction | |
end | |
config.before(:each, :js => true) do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Contact.swift | |
// Debtly | |
// | |
// Created by Tobias Feistmantl on 17/01/16. | |
// Copyright © 2016 Tobias Feistmantl. All rights reserved. | |
// | |
import Foundation | |
import Contacts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.routes.draw do | |
# This isn't the best solution | |
# if you want to get to the | |
# root page and you do I18n, | |
# because it adds a parameter | |
# if you link to the root page. | |
# | |
# FormHelper Example: <%= link_to "Home", root_path %> | |
# Result: http://example.com/?locale=en | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
begin | |
require 'acme-client' | |
rescue LoadError | |
abort 'MISSING GEM! You haven\'t installed the ACME client. Install the gem with the command \'gem install acme-client\'.' | |
end | |
require 'openssl' | |
require 'resolv' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--database=postgresql | |
--template=https://gist.githubusercontent.com/tobiasfeistmantl/a7893cc591b065772ec4bb216718f5b6/raw/5653f31fbcc960f711349632b98f7d0ebbecc090/rails_template.rb | |
--skip-coffee |
OlderNewer