I hereby claim:
- I am joeldrapper on github.
- I am joeldrapper (https://keybase.io/joeldrapper) on keybase.
- I have a public key ASCZ2b-hvm_0Cs0MyWXInpqRI__fqd5wVAZBNBUe0nHaiQo
To claim this, I am signing this object:
.editor-content .editable#note-text-editor { | |
line-height: 1.6 !important; | |
font-family: -apple-system, BlinkMacSystemFont, 'avenir next', avenir, helvetica, 'helvetica neue', ubuntu, roboto, noto, 'segoe ui', arial, sans-serif !important; | |
padding: 21px; | |
} | |
/* General */ | |
body { |
I hereby claim:
To claim this, I am signing this object:
import { Controller } from "stimulus" | |
export default class extends Controller | |
@get: (name, getter) -> | |
Object.defineProperty @::, name, | |
get: getter | |
configurable: true | |
@set: (name, setter) -> | |
Object.defineProperty @::, name, |
class Object | |
def then_maybe | |
yield(self) || self | |
end | |
def then_if(condition) | |
condition ? yield(self) : self | |
end | |
def then_unless(condition) |
module AttributeMemoization | |
def attr_accessor(*names, &block) | |
return super(*names) unless block_given? | |
attr_reader(*names, &block) | |
attr_writer(*names) | |
end | |
def attr_reader(*names, &block) | |
return super(*names) unless block_given? |
class @TrixFormatter extends @BaseObject | |
constructor: (editor) -> | |
@editor = editor | |
format: -> | |
@position = @editor.getPosition() | |
@text = @editor.getDocument().toString() | |
@before = @text.substr 0, @position | |
@after = @text.substr @position, @text.length | |
@character = @text.charAt(@position - 1) |
class Spy | |
def initialize(object) | |
@object = object | |
end | |
def respond_to_missing?(name) | |
@object.respond_to?(name) | |
end | |
def method_missing(name, *args, **kwargs, &block) |
#!/usr/bin/env ruby | |
class Run | |
def initialize(files) | |
@files = files | |
end | |
def call | |
@files.each(&:process) |
# frozen_string_literal: true | |
module Packer | |
# A special packer class for globally identifiable objects. It takes a global ID and packs it as a String, then rehydrates it as a GlobalID lookup. | |
class GloballyIdentifiable | |
def self.from_pack(uri) | |
GlobalID::Locator.locate(uri) | |
end | |
def initialize(identifiable) |
# Okay | |
class Foo < Literal::Data | |
attribute :sizes, Array | |
end | |
# Better | |
class Foo < Literal::Data | |
attribute :sizes, Array(Symbol) | |
end |