Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
# encoding: utf-8
$:.unshift '~/Projects/DSI/lib'
require 'dsi'
require 'dsi/extensions'
options = {
hostname: 'irc.phora.net',
nickname: 'anura'
}
#!/usr/bin/env ruby
# encoding: utf-8
#
# This library makes the user able to retrieve the tv schedules from a single
# or multiple channels via DR's DBService
# (http://www.dr.dk/tjenester/programoversigt/dbservice.ashx).
#
# Author:: Mikkel Kroman
# Copyright:: Copyright (c) 2010 Mikkel Kroman
# License:: Distributes under the GNU license
#!/usr/bin/env ruby
# encoding: utf-8
require 'date'
module DR
class TV
attr_reader :channels
def initialize options = {}
@client = DR::Client.new
#!/usr/bin/env ruby
# encoding: utf-8
$:.unshift '~/Projects/DSI/lib'
require 'dsi'
require 'dsi/extensions'
options = {
hostname: 'irc.phora.net',
nickname: 'anura'
}
# mplextended (the equivalent of screen_away.pl for irssi) for weechat.
# Copyright (C) 2010, Mikkel Kroman
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# encoding: utf-8
module Wildcard
def self.match pattern, source, casefold = false
pattern = compile pattern, casefold
!(source =~ pattern).nil?
end
protected
def self.compile pattern, casefold
# encoding: utf-8
config do |x|
x.name = "example"
x.author = "Mikkel Kroman <mk@maero.dk>"
x.version = "1.0.0"
bind :privmsg, :on_message
end
p File.path(File.join(File.expand_path(__FILE__), '../dsi'))
puts "fem"
puts "fem"