# Anchor
click_link 'Save'
# Button
click_button 'awesome'
# Both above
This file contains hidden or 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
| class Table(Base): | |
| id = Column(Integer, primary_key=True) | |
| _name = Column('name', String(24)) | |
| @property | |
| def name(self): | |
| return self._name; | |
| @name.setter | |
| def name(self, value): |
This file contains hidden or 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
| class CreateInvoiceNumbers < ActiveRecord::Migration | |
| def up | |
| create_table :invoice_numbers do |t| | |
| t.integer :year, null: false, unique: true | |
| t.integer :next_number_within_year, null: false, default: 1 | |
| end | |
| add_index :invoice_numbers, :year, unique: true | |
| (2016..2045).each do |year| |
This file contains hidden or 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
| sudo apt-get update | |
| sudo apt-get install build-essential chrpath libssl-dev libxft-dev -y | |
| sudo apt-get install libfreetype6 libfreetype6-dev -y | |
| sudo apt-get install libfontconfig1 libfontconfig1-dev -y | |
| cd ~ | |
| export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64" | |
| wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/$PHANTOM_JS.tar.bz2 | |
| sudo tar xvjf $PHANTOM_JS.tar.bz2 | |
| sudo mv $PHANTOM_JS /usr/local/share | |
| sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin |
This file contains hidden or 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
| .git | |
| .gitignore | |
| doc | |
| .yardoc | |
| coverage | |
| jsdoc | |
| tmp | |
| log | |
| README.md | |
| public/uploads/ |
This file contains hidden or 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
| # See how variables work, and a list of predefined ones: | |
| # - https://docs.gitlab.com/ce/ci/variables/ | |
| variables: | |
| RAILS_IMAGE: registry.gitlab.com/bryanbraun/gridmaster.io/railsapp:$CI_COMMIT_SHA | |
| NGINX_IMAGE: registry.gitlab.com/bryanbraun/gridmaster.io/nginx:$CI_COMMIT_SHA | |
| DEPLOY_TAG: $CI_COMMIT_SHA | |
| cache: | |
| paths: | |
| - vendor/ruby |
This file contains hidden or 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
| require 'benchmark' | |
| require 'benchmark/memory' | |
| require 'dry-struct' | |
| require 'dry-initializer' | |
| require 'virtus' | |
| require 'shallow_attributes' | |
| require 'active_data' | |
| require 'active_model' | |
| require 'benchmark/ips' |
This file contains hidden or 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
| language: node_js | |
| node_js: | |
| - "8" | |
| cache: | |
| directories: | |
| - "node_modules" | |
| branches: | |
| only: |
OlderNewer