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
Description: | |
Stubs a new Service object in the `lib` folder and a spec for it. | |
Providing a list of argument names will set up the initializer to accept them | |
and create private accessors for each of them. | |
To create a service within a module, specify the service name as a | |
path like 'parent_module/service_name' or 'ParentModule::ServiceName'. | |
Example: |
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
ActiveAdmin.register DeviceState do | |
# ... | |
action_item :history, only: :show do | |
link_to 'History', [:history, :admin, resource] | |
end | |
member_action :history do | |
render "layouts/history" | |
end | |
# ... | |
end |
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
ruby_apps: | |
- name: releasemaker_production | |
ruby_version: 'ruby_2.4.3' | |
app_has_background_processes: false | |
deployment_keys: | | |
ssh-rsa etc | |
environment: | |
RAILS_ENV: | |
RAILS_MAX_THREADS: | |
DATABASE_URL: |
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
module Split | |
module Persistence | |
## | |
# Used for testing so we can use controllers that use Split without needing Redis. | |
# I can't believe I have to write this, it should be part of the split gem. | |
# But this doesn't work anyway, because Split keeps going to Redis anyway. | |
class MemoryAdapter | |
def initialize(context, key = nil) | |
@data = {} | |
end |
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
// | |
// CoreDataController.swift | |
// | |
// Created by Keith Harrison http://useyourloaf.com | |
// Copyright (c) 2017 Keith Harrison. All rights reserved. | |
// | |
// Redistribution and use in source and binary forms, with or without | |
// modification, are permitted provided that the following conditions are met: | |
// | |
// 1. Redistributions of source code must retain the above copyright |
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
#!/bin/zsh | |
# Staged files | |
{ git diff --name-only --diff-filter=d --relative & | |
# Staged files | |
git diff --cached --name-only --relative & | |
# Unstaged new files | |
git ls-files --others --exclude-standard } | | |
# Remove duplicates | |
sort -u | |
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
group :development do | |
gem 'guard', require: false | |
gem 'guard-rspec', require: false | |
gem 'guard-migrate', require: false | |
gem 'guard-rubocop', require: false | |
gem 'guard-bundler', require: false | |
gem 'guard-pow', require: false | |
end |
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
better_errors/lib/better_errors/raised_exception.rb:40: [BUG] Segmentation fault at 0x00000000000001 | |
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16] | |
-- Crash Report log information -------------------------------------------- | |
See Crash Report log file under the one of following: | |
* ~/Library/Logs/DiagnosticReports | |
* /Library/Logs/DiagnosticReports | |
for more details. | |
Don't forget to include the above Crash Report log file in bug reports. |
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
dependencies: | |
post: | |
- gem install circleci_deployment_notifier | |
deployment: | |
staging: | |
branch: master | |
owner: omniboard | |
commands: | |
- git fetch --unshallow || true | |
- echo $CIRCLE_SHA1 > REVISION |
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
(1..12).map { |m| [Time.new(2016, m, 1).to_i * 1000, 100 * m] } | |
(1..12).map { |m| [Time.new(2016, m, 1).to_i * 1000, 1200 / m] } | |
(1..12).map { |m| [Time.new(2016, m, 1).to_i * 1000, (m / 2) * 100] } |