Skip to content

Instantly share code, notes, and snippets.

View theosib's full-sized avatar

Timothy Miller theosib

  • ZeroMark Inc
View GitHub Profile
Input:
000000000180CC80
88740000008024A4
001F0FFFFFF91DE9
Output:
0000XXXX
XX000XXX
0XXFFXXX
$patterns = {}
def count_pattern(num)
num.upcase!
#print "#{num} "
pat=""
for i in 0..7
byte = num.slice!(0..1)
#print "#{byte} "
if (byte=="FF")