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
Module Module1 | |
Sub Main() | |
Dim f = New Foo() | |
Dim v = f.Value | |
Dim c = f.Count | |
End Sub | |
End Module |
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 <iostream> | |
#include <functional> | |
template <typename T> | |
struct add1 : std::unary_function<T, T> { | |
#if 1 | |
typedef typename std::unary_function<T, T>::result_type result_type; | |
typedef typename std::unary_function<T, T>::argument_type argument_type; | |
#endif | |
result_type operator ()(const argument_type& arg) const { |
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 thread | |
import Misuzilla.Applications.TwitterIrcGateway | |
import Misuzilla.Applications.TwitterIrcGateway.AddIns | |
from System import * | |
from System.Threading import Thread, ThreadStart | |
from System.Collections.Generic import * |
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 | |
from Misuzilla.Applications.TwitterIrcGateway.AddIns.DLRIntegration import DLRIntegrationAddIn | |
def OnPreSendMessageTimelineStatus(sender, e): | |
e.Text = e.Text + "\tジャッジメントですの!" | |
def OnBeforeUnload(sender, e): | |
Session.PreSendMessageTimelineStatus -= OnPreSendMessageTimelineStatus | |
Session.PreSendMessageTimelineStatus += OnPreSendMessageTimelineStatus |
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 | |
import re | |
from System.Net import WebClient | |
from Misuzilla.Applications.TwitterIrcGateway import Status, Statuses, User, Users, Utility | |
from Misuzilla.Applications.TwitterIrcGateway.AddIns.DLRIntegration import DLRIntegrationAddIn, DLRBasicConfiguration, DLRContextHelper | |
username = "your bit.ly username" | |
apikey = "your bit.ly apikey" | |
re_shorten = re.compile(r"<shortUrl>(.+)</shortUrl>") |
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
#define BOOST_PYTHON_STATIC_LIB | |
#include <boost/python.hpp> | |
#include <boost/ref.hpp> | |
#include <iostream> | |
namespace py = boost::python; | |
class IntValue | |
{ | |
public: |
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 <boost/unordered_map.hpp> | |
#include <map> | |
#include <list> | |
#include <typeinfo> | |
template <typename T> | |
class tree | |
{ | |
public: | |
typedef T value_type; |
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
from System.Diagnostics import Debug, Trace, TraceListener | |
from System.Reflection import BindingFlags, PropertyInfo | |
from Misuzilla.Net.Irc import NoticeMessage, PrivMsgMessage | |
from Misuzilla.Applications.TwitterIrcGateway import TraceLogger | |
from Misuzilla.Applications.TwitterIrcGateway.AddIns.DLRIntegration import DLRIntegrationAddIn | |
def get_trace_source(logger): | |
type = logger.GetType() | |
flags = BindingFlags.Instance | BindingFlags.NonPublic | |
property = type.GetProperty('TraceSource', flags) |
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 <algorithm> | |
#include <vector> | |
#include <iostream> | |
int main() | |
{ | |
std::vector<int> v; | |
for (int i = 0; i < 10; ++i) v.push_back(i); | |
struct { void operator ()(int n) { std::cout << n << std::endl; } } f; |
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 <boost/mpl/vector.hpp> | |
#include <boost/mpl/for_each.hpp> | |
#include <iostream> | |
struct register_type | |
{ | |
typedef boost::mpl::vector<> type; | |
template <typename T> | |
struct push_back |
OlderNewer