This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
$:.unshift '~/Projects/DSI/lib' | |
require 'dsi' | |
require 'dsi/extensions' | |
options = { | |
hostname: 'irc.phora.net', | |
nickname: 'anura' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
require 'date' | |
module DR | |
class TV | |
attr_reader :channels | |
def initialize options = {} | |
@client = DR::Client.new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
$:.unshift '~/Projects/DSI/lib' | |
require 'dsi' | |
require 'dsi/extensions' | |
options = { | |
hostname: 'irc.phora.net', | |
nickname: 'anura' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
config do |x| | |
x.name = "example" | |
x.author = "Mikkel Kroman <[email protected]>" | |
x.version = "1.0.0" | |
bind :privmsg, :on_message | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p File.path(File.join(File.expand_path(__FILE__), '../dsi')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "fem" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "fem" |
OlderNewer