Skip to content

Instantly share code, notes, and snippets.

@noqisofon
noqisofon / timer_queue.c
Created November 12, 2010 05:34
タイマーキュー。
typedef HANDLE timer_queue_t;
/**
*
*/
timer_queue_t w32_timer_queue_new()
{
return CreateTimerQueue();
}
@noqisofon
noqisofon / TCPClientDemoForm.cs
Created November 15, 2010 04:49
うにょうにょな TCP クライアント窓。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Windows.Forms;
@noqisofon
noqisofon / WaitHandle.hpp
Created November 15, 2010 04:50
待機ハンドルのラッパークラス。
#ifndef threading_WaitHandle_hxx
#define threading_WaitHandle_hxx
namespace threading {
class WaitHandle {
public:
typedef HANDLE handle_type;
public:
@noqisofon
noqisofon / tcp-listener-demo.si
Created November 15, 2010 08:36
TCPListener クラスのデモ。
using std;
using std.io;
using net;
using net.sockets;
using text.encoding;
let server : TCPListener = nil;
try {
@noqisofon
noqisofon / TCPListenerDemoForm.cs
Created November 15, 2010 08:40
TcpListener クラスのデモっぽい。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Windows.Forms;
@noqisofon
noqisofon / ms-gothic-13.el
Created November 16, 2010 02:07
MS Gothic フォントセットを追加します。
;; フォントセットを追加します。
(w32-add-font "MS Gothic 13"
'((spec
((:char-spec ascii :height any)
strict
(w32-logfont "MS Gothic" 0 -13 400 0 nil nil nil 0 1 3 0))
((:char-spec ascii :height any :weight bold)
strict
(w32-logfont "MS Gothic" 0 -13 700 0 nil nil nil 0 1 3 0)
((spacing . -1)))
@noqisofon
noqisofon / utf8.html
Created November 16, 2010 02:15
utf-8 用 HTML テンプレート。
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-jp" lang="ja-jp">
<head>
<title>untitled</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<link rel="stylesheet" type="text/css" href="./screen.css" />
@noqisofon
noqisofon / screen.css
Created November 16, 2010 02:16
CSS テンプレート。
@charset "utf-8";
body {
margin: 2%;
font-family: 'MS Pゴシック';
font-size: 1.0em;
color: #2b2b2b;
}
@noqisofon
noqisofon / Counter.si
Created November 17, 2010 04:16
簡単なリモートオブジェクト。
using std;
using runtime.remoting;
using runtime.remoting.channels;
using runtime.remoting.channels.ipc;
namespace sample.demo.remotingipc {
/*
@noqisofon
noqisofon / RemoteServer.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 {
/**