Skip to content

Instantly share code, notes, and snippets.

@pjhyett
Created April 18, 2011 18:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save pjhyett/925925 to your computer and use it in GitHub Desktop.
Save pjhyett/925925 to your computer and use it in GitHub Desktop.
lines = `git log --oneline`.split("\n")
lines.map! do |line|
sha, *msg = line.split
msg = msg.join(' ') # unused
color = '#' + sha[0..-2]
%{<div class="box" style="background:#{color}"></div>}
end
File.open('colors.html', 'w') do |f|
f.puts <<-HTML
<style>
body { margin:0; padding:0; }
.box { width:100%; height:1px; }
</style>
#{lines}
HTML
end
@keisabably
Copy link

Hello my name is keisa,its give me please to write you after going through your profile i will like to be in communication with you kindly write me(keisafreya@yahoo.co.uk) for a deal. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment