Skip to content

Instantly share code, notes, and snippets.

View danieljs96's full-sized avatar

Daniel S danieljs96

  • Phoenix, AZ
View GitHub Profile
@danieljs96
danieljs96 / emoteKDE.rb
Created November 8, 2012 21:17
Generates an XML file for emoticons in KDE and XMPP applications
#!/usr/bin/env ruby
emoteFile = File.open('emoticons.xml', 'w')
emoteFile.puts(
"<?xml version='1.0'?>",
"<messaging-emoticon-map>"
)
File.readlines('theme').map do |line|
emoteFile.puts(" <emoticon file=\"#{line.split[0]}\">")