I hereby claim:
- I am jmgarnier on github.
- I am jmgarnier (https://keybase.io/jmgarnier) on keybase.
- I have a public key ASA_JUA4A3aXm4LT0fYtZTZxfmqHvkNgQkD5x-myA6guvQo
To claim this, I am signing this object:
| # Generate scattered plot diagram with Cycle Time (Y axis) and Story Point (X axis) from Zenhub Cycle time report | |
| require 'bundler/inline' | |
| gemfile(true) do # true => gems that aren't already installed on the user's system should be installed. | |
| source 'https://rubygems.org' | |
| gem 'csv' | |
| gem 'activesupport' | |
| gem 'google_drive' |
| module WaitForAjax | |
| def click_ajax_link(link, timeout: Capybara.default_max_wait_time) | |
| with_ajax(timeout: timeout) { click_on link } | |
| end | |
| def wait_for_ajax | |
| wait_for_ajax_status(:inactive) | |
| end | |
| def wait_for_ajax_status(expected_status, wait_time = Capybara.default_max_wait_time) |
I hereby claim:
To claim this, I am signing this object:
| -- Automator Service for passing selected text (after selection the service from context menu) to google translate (works in Google Chrome, OS X 10.10 still up-to-date) | |
| on run {input} | |
| set inputText to input as string | |
| tell application "Google Chrome" | |
| activate | |
| set theUrl to "http://translate.google.com#nl/en/" & inputText | |
| if Rails.env.development? | |
| require 'active_record/connection_adapters/postgresql_adapter' | |
| require 'pygments' # add `gem 'pygments.rb', require: false` to Gemfile | |
| module ExplainAnalyze | |
| @@use_explain_analyze = false | |
| def explain_analyze | |
| @@use_explain_analyze = true |
| # https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md#activesupport-instrumentation | |
| RSpec.configure do |config| | |
| test_data_setup_time = 0 | |
| ActiveSupport::Notifications.subscribe("factory_girl.run_factory") do |name, start, finish, id, payload| | |
| execution_time_in_seconds = finish - start | |
| test_data_setup_time += execution_time_in_seconds |
| require 'cancan' | |
| # Add a setting to the application to configure the ability | |
| ActiveAdmin::Application.inheritable_setting :cancan_ability_class, "Ability" | |
| module ActiveAdmin | |
| class CanCanAdapter < AuthorizationAdapter | |
| def authorized?(action, subject = nil) |
| require 'zeus/rails' | |
| class CustomPlan < Zeus::Rails | |
| def truncate_db | |
| require 'database_cleaner' | |
| DatabaseCleaner.clean_with :truncation | |
| end | |
| def test |
| #!/usr/bin/env ruby | |
| # Copy this file to the destination project folder | |
| # Example: | |
| # noglob ./import.rb *role* ../../project_source | |
| # => copying app/models/role.rb | |
| # => copying spec/models/role_spec.rb |
| #!/bin/sh | |
| project="VCORE-" | |
| ticket=$(git symbolic-ref HEAD | awk -F- '/VCORE-(.*)-/ {print $2}') | |
| if [ -n "$ticket" ]; then | |
| TEMP=`mktemp /tmp/commitmsg-XXXXX` | |
| (echo "$project$ticket - "; cat $1) > $TEMP | |
| cat $TEMP > $1 | |
| fi |