loading
open in
main.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
def name_to_binary(name)
  name.bytes.map do |letter|
    letter.to_s(2)
  end
end

#example 
name_to_binary("kara") #put your name, and run!

# 	["1101011", 
# 	 "1100001", 
# 	 "1110010", 
# 	 "1100001"]

# by @KaraAJC  #WooWoo! #baseCS 

# def og_name_to_binary(name)
#   binary_name = []
#   name.each_byte do |letter|
#     binary_name << letter.to_s(2)
#   end
#   binary_name
# end
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]