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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBlackColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw | |
LjM1Mjk0MTE3NjUgMC40MzkyMTU2ODYzIDAuNTIxNTY4NjI3NQAQAYAC0hAREhNaJGNs | |
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp |
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
ApplicationRecord.singleton_class.prepend(Module.new do | |
def composed_of(part_id, options = {}) | |
super(part_id, options.except(:strict)) | |
return if !options[:strict] || !options[:mapping] | |
options[:mapping].flatten.each_slice(2) do |attr_name, _| | |
next if attr_name.to_sym == part_id.to_sym | |
define_method("#{attr_name}=") do |_val| | |
raise "Can't change the attributes mapped to `#{part_id}` directly." |
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
(()=>{const vals={nameSei:'山田',nameMei:'太郎',kanaSei:'やまだ',kanaMei:'たろう',telNo:'09001234567',mailAddress:'test@example.com'};for(let[key,val]of Object.entries(vals)){document.getElementsByName(`OrderCreationDelivery[${key}]`).item(0).value=val;}})(); |
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
.intel_syntax noprefix | |
.global main | |
main: | |
mov rdx, 14 # message length | |
lea rsi, [rip + message] | |
mov rdi, 1 # file descriptor (stdout) | |
mov rax, 1 # system call number (sys_write) | |
syscall |
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
# NOTE: Put this file into `api` directory | |
require_relative "../config/environment" | |
class Handler < Rack::Handler::WEBrick | |
# Override | |
def initialize(server, *_options) | |
super(server, Rails.application) | |
end | |
end |
OlderNewer