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.Data.SQLite; | |
using System.IO; | |
namespace sample.demo.sqlite3 { | |
/// <summary> | |
/// |
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.Linq; | |
using System.Text; | |
namespace demo.linq.ipaddr { |
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
let line : string; | |
let url : URL = new URL( "http://localhost/login.do" ); | |
let connection : HttpURLConnection = url.openConnection() as HttpURLConnection; | |
connection.requestMethod = "POST"; | |
connection.requestProperty["Accept-Language"] = "ja"; | |
connection.doOutput = true; | |
let writer : PrintWriter; | |
let reader : BufferedReader; |
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: shift_jis -*- | |
require 'rubygems' | |
require 'sqlite3' | |
# SQLite3 モジュールの取り込み。 | |
include SQLite3 |
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
(defun clipboard-to-datetime() | |
"現在時刻をクリップボードに貼り付けます。" | |
(interactive) | |
(copy-to-clipboard (format-date-string "%Y-%m-%dT%H:%M:%S%Z"))) | |
(defun get-basename-from-fullpath (fullpath) | |
"フルパスから最後のスラッシュまで削除した部分を返します。" | |
(let ((parts (split-string fullpath "/"))) | |
(car (last parts)))) |
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 <canopus/core.hxx> | |
#include <canopus/model/DetaObject.hxx> | |
using canopus; | |
using canopus::model; | |
int main() | |
{ | |
DataObject* data = new DataObject( DataFormats::Text, "My text sting" ); |
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.IO; | |
using System.Net; | |
using System.Text; | |
namespace demo.ftp.downloader { | |
/// <summary> |
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: tsv2sqlite3.rb | |
require 'optparse' | |
require 'rubygems' | |
require 'sqlite3' | |
opt = OptionParser.new |
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; | |
// このサンプルコードは MulticastOption クラスの使用方法の一例を示すリスナークラスです。 | |
// 特に、MulticastOption(IPAddress, IPAddress) は複数のホストを持っている場合に使用する必要があるコンストラクタです。 | |
// 最初のパラメーターは マルチキャストグループアドレスを指定します。 | |
// 2 つ目はデータ交換に使用するネットワークカードのローカルアドレスを指定します。 |
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.IO; | |
using System.Threading; | |
namespace demo.multicasting.originator { |