Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<title>テスト</title>
</head>
<body>
<form method="post" class="marketing-form" action="https://staging.all-in.xyz:443/marketing/forms/7afca9eecc7a11e8999b0a86b51bbde6/customers" data-use-recaptcha="true" enctype="multipart/form-data">
<input type="hidden" name="tracking_code" value="">
<input type="hidden" name="customer_type" value="individual">
<label for="email">Email</label>
diff --git a/config/initializers/type_caster_patch.rb b/config/initializers/type_caster_patch.rb
new file mode 100644
index 0000000..58778a3
--- /dev/null
+++ b/config/initializers/type_caster_patch.rb
@@ -0,0 +1,3 @@
+require Rails.root.join('lib', 'activerecord', 'associations', 'alias_tracker.rb')
+require Rails.root.join('lib', 'activerecord', 'associations', 'join_dependency.rb')
+require Rails.root.join('lib', 'activerecord', 'associations', 'association_scope.rb')
\ No newline at end of file
@kirikak2
kirikak2 / gem_search.rb
Created January 10, 2019 03:54
Search for gem which supports only ruby 2.6
require 'rubygems'
require 'open-uri'
require 'ruby-progressbar'
require 'pry'
specs = Marshal.load(Gem.gunzip(File.read("./latest_specs.4.8.gz")))
total = specs.length
pb = ProgressBar.create(
:title => "Searching",
require "benchmark"
require "binding_ninja"
require "binding_of_caller"
class Ninja
extend BindingNinja
def initialize(binding)
binding.eval("@hoge")
end
auto_inject_binding :initialize
@kirikak2
kirikak2 / amida.rb
Created June 2, 2012 05:11
minatork01 example1
require 'pry'
class AmidaLine
attr_reader :holizonal_lines
attr_reader :atari
def initialize(params = {})
@holizonal_lines = []
@atari = params[:atari]
end
@kirikak2
kirikak2 / result
Created October 9, 2011 02:03
kconv bug?
$ ruby utfeuc_convertion.rb
"弌 丐 丕 个 丱 丶 丼 丿 乂 乖 乘 亂 亅 豫 亊\n舒 弍 于 亞 亟 亠 亢 亰 亳 亶 从 仍 仄 仆 仂 仗\n"
"С Т У Ф Х Ц Ч Ш Щ Ъ Ы Ь Э Ю Я\nа б в г д е ж з и й к л м н о п\n"
false
"蹇 蹉 蹌 蹐 蹈 蹙 蹤 蹠 踪 蹣 蹕 蹶 蹲 蹼 躁\n躇 躅 躄 躋 躊 躓 躑 躔 躙 躪 躡 躬 躰 軆 躱 躾\n軅 軈 軋 軛 軣 軼 軻 軫 軾 輊 輅 輕 輒 輙 輓 輜\n輟 輛 輌 輦 輳 輻 輹 轅 轂 輾 轌 轉 轆 轎 轗 轜\n轢 轣 轤 辜 辟 辣 辭 辯 辷 迚 迥 迢 迪 迯 邇 迴\n逅 迹 迺 逑 逕 逡 逍 逞 逖 逋 逧 逶 逵 逹 迸\n"
"蹇 悊 惞 惕 蹈 惲 愑 愷 愰 憘 戓 抦 揵 摠 撝\n擎 躅 昀 昕 躊 昉 昮 昞 昤 躪 晗 晙 躰 晳 暙 暠\n暲 暿 曺 朎 軣 杦 枻 桒 柀 輊 桄 棏 輒 楨 輓 榘\n槢 樰 輌 橆 橳 橾 輹 櫤 毖 氿 汜 沆 汯 泚 洄 涇\n浯 涖 涬 淏 辟 辣 淼 渹 湜 渧 渼 溿 澈 澵 濵 瀅\n瀇 迹 炅 炫 焏 焄 煜 煆 煇 逋 燁 燾 犱 逹 迸\n"
false
"銷 鋩\n"
"¬ ¦\n"
false