I hereby claim:
- I am thomasklemm on github.
- I am thomasklemm (https://keybase.io/thomasklemm) on keybase.
- I have a public key ASDAADdhGuTJg5yfViJvewxgrqycpgRHfLWbm8HvpQArBQo
To claim this, I am signing this object:
# ChromeDriver for JavaScript enabled feature/system specs | |
# | |
# Example usage: | |
# `$ bin/rspec` # Chrome in Headless Mode (Default) | |
# `$ SHOW_BROWSER=true bin/rspec` # Chrome | |
# `$ SHOW_BROWSER=true DEVTOOLS=true bin/rspec` # Chrome with Devtools | |
require 'selenium/webdriver' | |
Capybara.register_driver :chrome do |app| |
de: | |
clearance: | |
models: | |
clearance_mailer: | |
change_password: Passwort zurücksetzen | |
clearance_mailer: | |
change_password: | |
closing: Bitte ignorieren Sie diese E-Mail, falls Sie kein neues | |
Passwort angefordert haben. | |
link_text: Ihr Passwort ändern |
HTTP_PORT=11626 | |
PUBLIC_HTTP_PORT=true | |
LOG_FILE_PATH="" | |
DATABASE="postgresql://dbname=core host=localhost user=stellar password=__POSTGRES_PASSWORD__" | |
NETWORK_PASSPHRASE="Public Global Stellar Network ; September 2015" | |
CATCHUP_COMPLETE=true | |
MAX_CONCURRENT_SUBPROCESSES=32 | |
AUTOMATIC_MAINTENANCE_PERIOD=0 |
# Upgrade a Linux instance after first boot | |
$ apt-get update | |
$ apt-get full-upgrade | |
$ apt-get autoremove | |
$ apt-get autoclean | |
$ reboot | |
$ docker run -it -v "/str:/opt/stellar" -p "5432:5432" -p "8000:8000" --name stellar stellar/quickstart --pubnet | |
# Edit stellar core config |
I hereby claim:
To claim this, I am signing this object:
# config/routes.rb | |
# "Cast a Vote"-Workflow | |
get 'vote', to: 'cast_votes#get_voter_token', as: :new_vote | |
post 'vote', to: 'cast_votes#verify_voter_token' | |
get 'cast_vote', to: 'cast_votes#get_choices', as: :cast_vote | |
post 'cast_vote', to: 'cast_votes#cast_vote' | |
get 'thank_you', to: 'cast_votes#thank_you', as: :thank_you | |
class CastVotesController < ApplicationController |
Planning the database structure for go.vote | |
# Model structure | |
The main models are: | |
- Election | |
- Candidate | |
- Voter | |
- Vote | |
The models are associated as follows: |
module UserSpecHelper | |
def my_spec_helper_method(*args) | |
# ... | |
end | |
end | |
RSpec.configure do |config| | |
config.include UserSpecHelper |
require 'rails_helper' | |
feature 'task list' do | |
feature 'listing tasks' do | |
scenario 'opening the list with the default filters and sorting' | |
end | |
feature 'interacting with a task in the list' do | |
scenario 'adding a task' |
UPDATE media_images | |
SET collectively_manage_publication_for_all_locales = ( | |
CASE | |
WHEN ((published_de = published_en) AND (published_from_de = published_from_en)) | |
THEN TRUE | |
ELSE FALSE | |
END | |
) |