Some updates
- Vacation finished :(
- Changed my gsm company Turkcell to Vodafone
- Uploaded last.fm data to my libre.fm
- Uploaded some old photos to my picasa
- Created google profile
- Got about 8 kg. in 20 days
Synthetic Upgraded Lifeform Used for Gratification
at
14:12
0
Comments:
Labels: Social
#!/usr/bin/env ruby
require 'rubygems'
require 'syntax/convertors/html'
if ARGV.size == 0 then
require 'Qt4'
app = Qt::Application.new []
clipboard = Qt::Application.clipboard
@code = clipboard.text
elsif ARGV.size == 1
@code = File.read(ARGV[0])
else
puts "without argument converts clipboard content\nUsage:\n"
puts "cbtohtml.rb [filename.rb]\ncbtohtml.rb [filename.rb] > output.html\n"
exit
end
convertor = Syntax::Convertors::HTML.for_syntax "ruby"
puts convertor.convert(@code)
[slmn@azrael cbtohtml]$ time ./cbtohtml.rb &>/dev/null
real 0m0.726s
user 0m0.313s
sys 0m0.043s
[slmn@azrael cbtohtml]$ time ./cbtohtml.rb cbtohtml.rb &>/dev/null
real 0m0.189s
user 0m0.133s
sys 0m0.023s
at
20:40
0
Comments:
Labels: Social