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
# 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
class ApplicationRecord | |
def in_scope?(sym) | |
self.class.public_send(sym).exists?(id) | |
end | |
end | |
class Location < ApplicationRecord | |
scope :editable -> {...} | |
# OR |
OlderNewer