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
using System; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading; | |
namespace demo.multicasting { | |
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
#!c/bin/ruby/bin/ruby | |
# -*- encoding: cp932 -*- | |
# file: testinit.rb | |
require 'sqlite3' | |
# データベースを作成します。 | |
# 直ぐに空のデータベースファイル employees.db ができます。 | |
# 既に存在する場合は、読み込むだけです。 | |
db = SQLite3::Database.new( "employees.db" ) |
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
using System; | |
using System.Collections.Generic; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading; | |
namespace demo.multicasting.client { |
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
using System; | |
using System.Collections.Generic; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading; | |
namespace demo.asyncudp.guest { |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Data.Common; | |
using System.Data.SQLite; | |
using System.Drawing; | |
using System.IO; | |
using System.Text; | |
using System.Windows.Forms; |
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
#!/opt/local/bin/ruby | |
# -*- encoding: utf-8 -*- | |
require 'twitter' | |
APP_TAKEN = [ "あぷりのとーくん", "あぷりのしーくれっと" ] | |
PIN_CODE = 42 | |
def get_atoken(oauth) | |
request_token = oauth.customer.get_request_token |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading; | |
using spaghetti.util; | |
using groan.util; |
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
;;; init.el | |
;(setq debug-on-error t) | |
;; =============================================================================== | |
;; | |
;; Environmental discrimination(環境識別) | |
;; | |
;; =============================================================================== | |
(defvar *run-unix-like-p* | |
(or (equal system-type 'gnu/linux) |
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
struct pipe_t { | |
handle_t output; | |
handle_t input; | |
}; | |
int pipe_init(pipe_t* pipe, security_attributes_t* attributes) | |
{ | |
boolean ret; |
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
void receivePart(object param) { | |
pair<TcpClient, ManualResetEvent> tmpair = (pair<TcpClient, ManualResetEvent>)param; | |
TcpClient client = tmpair.first; | |
ManualResetEvent receive_complete = tmpair.second; | |
NetworkStream stream = null; | |
// ループカウンタ。 | |
int loop_count = 0; | |
// 待機時間。 | |
TimeSpan waiting_time = TimeSpan.FromMilliseconds( 100 ); |