Skip to content

Instantly share code, notes, and snippets.

@noqisofon
noqisofon / RemoteClient.si
Created November 17, 2010 04:17
りもーとくらいあんと。
using std;
using runtime.remoting;
using runtime.remoting.channels;
using runtime.remoting.channels.ipc;
namespace sample.demo.remotingipc {
/*
@noqisofon
noqisofon / load-other-package.si
Created November 17, 2010 08:17
ぱっけーじからクラスを読み込む感じ
using std;
using runtime.reflection;
let silverhorn : Package = Package.load( "libSilberhorn" );
let CVSParser : Class = silverhorn.ansestor.grep( "CVSParser" ).pop;
let parser : CVSParser = new CVSParser( filename );
console.println( parser.parse() );
@noqisofon
noqisofon / ndist.rb
Created November 18, 2010 02:43
正規分布を求めるクラス。
#!/bin/ruby
# -*- encoding: shift_jis -*-
class GaussianDistribution
def initialize(mu = 0, sigma = 1)
@mu = mu.to_f
@sigma = sigma.to_f
end
@noqisofon
noqisofon / StickInfo.cs
Created November 18, 2010 05:26
スティック((フローティングウィンドウ))の情報クラス。
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace groan.util {
@noqisofon
noqisofon / .irbrc
Created November 18, 2010 08:46
.irbrc の中身。
# .irbrc
# -*- encoding: shift_jis -*-
require 'rubygems'
# タブ補完を有効にします。
require 'irb/completion'
# コマンド履歴を有効にします。
require 'irb/ext/save-history'
require 'wirble'
@noqisofon
noqisofon / GroanForm.cs
Created November 19, 2010 02:10
フローティングウィンドウを表示するテストフォーム。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace groan.app.widgets {
@noqisofon
noqisofon / Stick.cs
Created November 19, 2010 02:33
フローティングウィンドウクラス。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace groan.app.widgets {
@noqisofon
noqisofon / StickManager.cs
Created November 19, 2010 04:47
フローティングウィンドウ管理クラス。
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace groan.util {
@noqisofon
noqisofon / RemotingNotifyMessage.cs
Created November 19, 2010 06:53
デモに使う送信用のメッセージオブジェクト。
using System;
using System.Collections.Generic;
using System.Text;
namespace demo.ipc.util {
/// <summary>
/// 送信用のメッセージオブジェクトです。
@noqisofon
noqisofon / IPCRemotingClientForm.cs
Created November 19, 2010 07:30
リモート用クライアントフォーム。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Ipc;
using System.Windows.Forms;