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
class ApplicationRecord | |
def in_scope?(sym) | |
self.class.public_send(sym).exists?(id) | |
end | |
end | |
class Location < ApplicationRecord | |
scope :editable -> {...} | |
# OR |
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
# no-hazardous-asteroids-today.sentinel enforces that no | |
# "potentially hazardous" asteroids are approaching their | |
# closest point to Earth within 1,000,000 miles today. Because if | |
# there's a potentially hazardous asteroid reaching within a | |
# million miles o' here, we're way too nervous and distracted to | |
# be changing our infrastructure right now! | |
import "http" | |
import "json" | |
import "strings" | |
import "time" |
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
// Place your key bindings in this file to override the defaults | |
[ | |
{ | |
"key": "j", | |
"command": "list.focusDown", | |
"when": "listFocus" | |
}, | |
{ | |
"key": "ctrl+f", | |
"command": "list.focusPageDown", |
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
GIT | |
remote: https://github.com/ManageIQ/handsoap.git | |
revision: b1247a733ca35d13574526cafb106148ad2d673d | |
tag: v0.2.5-5 | |
specs: | |
handsoap (0.2.5) | |
nokogiri (>= 1.2.3) | |
GIT | |
remote: https://github.com/ManageIQ/manageiq-gems-pending.git |
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
These failures occur locally but not on Travis. | |
Got them running Ruby 2.3 and 2.4, with region 0 and a non-zero region. | |
Failures: | |
1) VMDB::Util.add_zip_entry(private) entry is a symlink to origin file, origin file is added with symlink's name | |
Failure/Error: zip.add(zip_entry, File.realpath(file_path)) | |
#<Double (anonymous)> received :add with unexpected arguments |
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
begin | |
require "bundler/inline" | |
rescue LoadError => e | |
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
raise e | |
end | |
gemfile(true) do | |
source "https://rubygems.org" | |
# Activate the gem you are reporting the issue against. |
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
--- | |
organizations: | |
rails: Rails | |
rspec: RSpec | |
ManageIQ: ManageIQ | |
repositories: | |
rspec-expectations: RSpec/rspec-expectations | |
dug: dug | |
dotfiles: |
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
public static boolean isUserAMonkey () /* Since: API Level 8 */ | |
... | |
/* Returns "true" if the user interface is currently being messed with by a monkey. */ |
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
# What do you suppose the output of the examples are? | |
# Note: If you want to tinker executing these, don't just copy paste the entire file | |
# as defining everything in the same file acts differently (expected effects of reopening constants) | |
############## EXAMPLE 1 ############## | |
module NameHelper | |
def full_name | |
"#{first_name} #{last_name}" | |
end | |
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
### Keybase proof | |
I hereby claim: | |
* I am chrisarcand on github. | |
* I am chrisarcand (https://keybase.io/chrisarcand) on keybase. | |
* I have a public key whose fingerprint is B981 8DC2 EE0C 17C3 75CF FA3C 6AF1 7E89 449B D250 | |
To claim this, I am signing this object: |
NewerOlder