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
(************************************************************************** | |
* File : mir.sml | |
* Project : ML IRC Robot | |
* Author : Christian Axelsson | |
* Created : 2006-01-23 | |
* Description : An IRC robot written in SML (with Moscow ML extensions) | |
**************************************************************************) | |
val _ = app load ["Socket", "Byte", "Date"]; | |
(* event | |
This represent all events that can be triggerd. Note than some events may |
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
require 'net/http' | |
require 'rexml/document' | |
url = URI.parse('http://api.eve-online.comu') | |
begin | |
request = Net::HTTP.start(url.host, url.port) { |http| | |
http.get('/Server/ServerStatus.xml.aspx') | |
} | |
rescue => ex | |
puts "Failed to connect to API server: #{ex.message}" |
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
require 'net/http' | |
require 'rexml/document' | |
class EveOnline < Plugin | |
def on_load() | |
@triggers = Hash[".tq" => "get_tq_status"] | |
end | |
def name | |
"EVE Online server status v0.1" |
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
# -*- coding: utf-8 -*- | |
class Plugin | |
attr_reader :triggers | |
attr_reader :hooks | |
def self.subclasses() | |
classes = [] | |
ObjectSpace.each_object(Class) do |c| | |
next unless c.ancestors.include?(self) and (c != self) |
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
select c.channel | |
from channels c | |
where c.id in (select ct.channelid | |
from channel_tags ct | |
join tags t on ct.tagid = t.id | |
where t.tag = 'tag 1') | |
and c.id in (select ct.channelid | |
from channel_tags ct | |
join tags t on ct.tagid = t.id | |
where t.tag = 'tag 2') |
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
-- Model at http://i.imgur.com/kuxy2.png | |
-- Find all channels that have tags 'tag 1' and 'tag 2' | |
select c.channel | |
from channels c | |
where c.id in (select ct.channelid | |
from channel_tags ct | |
join tags t on ct.tagid = t.id | |
where t.tag = 'tag 1') |
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
// Booking tooltip logic | |
overlay.tooltip({ | |
track: true, | |
delay: 300, | |
top: 15, | |
left: 15, | |
showBody: false, | |
bodyHandler: function () { | |
return function generateTooltipBody(person, booking) { | |
var startTime = booking.StartTime.getComponents(); |
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
_,-%/%| | |
_,-' \//%\ | |
_,-' \%/|% | |
/ / ) __,-- /%\ | |
\__/_,-'%(% ; %)% | |
%\%, %\ |
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
This is a multi-part message in MIME format. | |
------=_NextPart_000_00A6_01CC7796.0BF33630 | |
Content-Type: text/plain; | |
charset="iso-8859-1" | |
Content-Transfer-Encoding: quoted-printable | |
Hej, | |
M=E5nadsomst=E4llningen =E4r klar och Primula har startat igen |
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
private enum CountryGroup_Balticum | |
{ | |
Estonia, | |
Latvia, | |
Lithuania | |
} | |
public static List<int> getCountryIDsForBaltStates(ListItemCollection countries) | |
{ | |
List<int> countryIDs = new List<int>(); |
OlderNewer