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
# Use the barebones version of Ruby 2.2.3. | |
FROM ruby:2.7.6 | |
# Optionally set a maintainer name to let people know who made this image. | |
# MAINTAINER | |
# Install dependencies: | |
# - build-essential: To ensure certain gems can be compiled | |
# - nodejs: Compile assets | |
# - libpq-dev: Communicate with postgres through the postgres gem |
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
# .rubocop.yml | |
# rubocop config files for Ruby 3.0 / Rails 6+ project | |
AllCops: | |
TargetRubyVersion: 3.0 | |
NewCops: enable | |
SuggestExtensions: false | |
Include: |
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
# surround for ruby string interpolation | |
atom.commands.add 'atom-text-editor', 'custom:surround-interpolation', -> | |
return unless editor = atom.workspace.getActiveTextEditor() | |
editor.transact -> | |
# TODO: get cursor scope, add quotes if not a string | |
for selection in editor.getSelections() | |
text = selection.getText() | |
return unless text.length |
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
// stylelint.config.js | |
// SMACSS Ordering | |
// https://github.com/cahamilton/stylelint-config-property-sort-order-smacss | |
const sortOrderSmacss = require('stylelint-config-property-sort-order-smacss/generate'); | |
module.exports = { | |
extends: 'stylelint-config-sass-guidelines', | |
plugins: ['stylelint-order', 'stylelint-scss'], |
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
# .github/workflows/stylelint.yml | |
# Checkout code, install npm/yarn, install js packages, run stylelint | |
# Set up for rails and stylelint config: stylelint.config.js | |
name: "Stylelint" | |
on: [push, pull_request] | |
jobs: | |
stylelint: |
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
# spec/support/authentication.rb | |
# Enable can? method in view specs for cancancan gem | |
# | |
# Example: | |
# | |
# ``` | |
# let(:admin) { Fabricate(:user_admin) } | |
# before { enable_can(view, admin) } | |
# ``` |
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
# spec/mailers/previews/devise_mailer_preview.rb | |
class Devise::MailerPreview < ActionMailer::Preview | |
def confirmation_instructions | |
Devise::Mailer.confirmation_instructions(User.first, {}) | |
end | |
def unlock_instructions | |
Devise::Mailer.unlock_instructions(User.first, "faketoken") | |
end |
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
# Runs rake assets:clean | |
# Defaults to nil (no asset cleanup is performed) | |
# If you use Rails 4+ and you'd like to clean up old assets after each deploy, | |
# set this to the number of versions to keep | |
set :keep_assets, 2 | |
# Clear existing task so we can replace it rather than "add" to it. | |
Rake::Task["deploy:compile_assets"].clear | |
namespace :deploy do |
This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"position": { | |
"lat": 61.21759217, | |
"lng": -149.8935557 | |
}, | |
"name": "Starbucks - AK - Anchorage 00001", | |
"address": "601 West Street_601 West 5th Avenue_Anchorage, Alaska 99501", | |
"phone": "907-277-2477" | |
}, |
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
// Foundation and Chosen CSS Merger | |
// ZURB Foundation v5 - Harvest Chosen v1.1 | |
// Add to the bottom of foundation_and_overrides.scss: `@import 'foundation-chosen';` | |
$chosen-form-spacing: $form-spacing / 4 + rem-calc(1) | |
$chosen-input-height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1)) | |
$chosen-input-height-multi: ($input-font-size + ($form-spacing * 1.5) - rem-calc(5)) | |
$chosen-border-radius: 0 | |
$chosen-highlighted: $primary-color |
NewerOlder