We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This isn't an issue I have with it it's just something I found.
$code = "" Object.instance_eval do def const_missing(s); $code << s.to_s; 0; end remove_const(:GC) # Holy moly! end at_exit do dict = { "AT"=>"00", "CG"=>"01", "GC"=>"10", "TA"=>"11" } eval([$code.gsub(/../) {|s| dict[s] }].pack("b*")) end def doublehelix(src) dict = { "00"=>["A","T"], "01"=>["C","G"], "10"=>["G","C"], "11"=>["T","A"] } format = [[1,0], [0,2], [0,3], [0,4], [1,4], [2,4], [3,3], [4,2], [5,0]] format += format.reverse %(require "doublehelix"\n\n) + src.unpack("b*").first.gsub(/../) do |s| format << (offset, dist = format.shift) "" * offset + dict[s] * ("" * dist) + "" end end``` I removed 4 characters and the output is shortened a lot. The `Hello World` is now `ATATTAGCGCGCTAGCATGCTAGCTAATTAGCATCGCGATCGATCGATATCGATGCGCGCCGGCATTACGGCATTACGGCTATACGGCATATCGATTAGCGCGCTATACGGCCGATTAGCATTACGGCATGCCGGCGCATCGATCGATCGATGCCGCGAT`.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This isn't an issue I have with it it's just something I found.
The text was updated successfully, but these errors were encountered: