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
javascript: Promise.all([ | |
import("https://unpkg.com/[email protected]?module"), | |
import("https://unpkg.com/@tehshrike/[email protected]"), | |
]).then(([{ default: Turndown }, { default: Readability }]) => { | |
const vault = ""; | |
const folder = "quick"; | |
const tags = "#clippings"; | |
function getSelectionHtml() { | |
var html = ""; |
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
class EmailDomainValidator | |
attr_reader :domain | |
def initialize(email) | |
email = Mail::Address.new(email_string) | |
@domain = email.domain | |
end | |
def valid? | |
email.domain.present? && (registered? || operational?) |