This file contains hidden or 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 python | |
| # -*- encoding: utf-8 -*- | |
| import sys | |
| import re | |
| from System.Text import Encoding | |
| from System.IO import StringReader | |
| from System.Net import WebClient, WebException | |
| from Misuzilla.Applications.TwitterIrcGateway import NilClasses, Status, Statuses, User, Users | |
| from Misuzilla.Applications.TwitterIrcGateway.AddIns import TypableMapSupport | |
| from Misuzilla.Applications.TwitterIrcGateway.AddIns.DLRIntegration import DLRIntegrationAddIn |
This file contains hidden or 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
| " Vim syntax file | |
| " Language: tiarra log file | |
| " Written By: mashiro <[email protected]> | |
| " Last Change: 2010 Jan 06 | |
| " Quit when a syntax file was already loaded | |
| if exists("b:current_syntax") | |
| finish | |
| endif |
This file contains hidden or 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 python | |
| # -*- encoding: utf-8 -*- | |
| import sys | |
| import re | |
| from System import String | |
| from System.Text import Encoding | |
| from System.IO import StringReader | |
| from System.Net import WebClient, WebException | |
| from Misuzilla.Applications.TwitterIrcGateway import NilClasses, Status, Statuses, User, Users | |
| from Misuzilla.Applications.TwitterIrcGateway.AddIns import TypableMapSupport |
This file contains hidden or 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
| #include <string> | |
| #include <vector> | |
| #include <algorithm> | |
| #include <iostream> | |
| std::vector<std::size_t> make_diffs(std::size_t n1) | |
| { | |
| std::vector<std::size_t> v; | |
| v.push_back(n1); | |
| return v; |
This file contains hidden or 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 python | |
| # -*- encoding: utf-8 -*- | |
| import sys | |
| import codecs | |
| encoding = sys.getfilesystemencoding() | |
| sys.stdin = codecs.getreader(encoding)(sys.stdin) | |
| sys.stdout = codecs.getwriter(encoding)(sys.stdout) | |
| print 'encoding: %s' % encoding |
This file contains hidden or 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
| import sys | |
| import clr | |
| import re | |
| #from System.Windows.Forms import * | |
| from Misuzilla.Applications.TwitterIrcGateway.AddIns.DLRIntegration import DLRIntegrationAddIn, DLRBasicConfiguration, DLRContextHelper | |
| def OnPreSendMessageTimelineStatus(sender, e): | |
| e.Text = e.Text + ' <img class="twitter_icon" src="%s" />' % e.Status.User.ProfileImageUrl |
This file contains hidden or 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
| import clr | |
| from Misuzilla.Applications.TwitterIrcGateway.AddIns.DLRIntegration import DLRIntegrationAddIn, DLRBasicConfiguration, DLRContextHelper | |
| class DisplayIcon(object): | |
| def __init__(self): | |
| CurrentSession.MessageReceived += self.on_message_received | |
| CurrentSession.PreSendMessageTimelineStatus += self.on_pre_send_message_timeline_status | |
| CurrentSession.AddInManager.GetAddIn(DLRIntegrationAddIn).BeforeUnload += self.on_before_unload | |
| self.display = False |
This file contains hidden or 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 python | |
| # -*- encoding: utf-8 -*- | |
| import urllib2 | |
| import simplejson as json | |
| from datetime import datetime, timedelta, tzinfo | |
| from pit import Pit | |
| def parse_datetime(str): | |
| class FixedOffset(tzinfo): | |
| def __init__(self, offset, name): |
This file contains hidden or 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
| --- TwitterService.cs.org 2010-04-26 12:11:48.000000000 +0900 | |
| +++ TwitterService.cs 2010-03-15 23:09:04.000000000 +0900 | |
| @@ -8,6 +8,7 @@ | |
| using System.Xml; | |
| using System.Xml.Serialization; | |
| using System.IO.Compression; | |
| +using System.Linq; | |
| namespace Misuzilla.Applications.TwitterIrcGateway | |
| { |
This file contains hidden or 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
| import re | |
| from Misuzilla.Applications.TwitterIrcGateway.AddIns.DLRIntegration import DLRIntegrationAddIn | |
| rt_symbol = unichr(0x267A) | |
| rt_color = 10 | |
| def color(str, num): | |
| return '%c%s %s' % (chr(0x03), num, str) | |
| def OnPreSendMessageTimelineStatus(sender, e): |