Singleton パターン

Singleton.as package { public class Singleton { // インスタンスを保持。 private static var _instance:Singleton=null; // コンストラクタ。 public function Singleton(enforcer:SingletonEnforcer) { } // 静的プロパティからインスタンスを取得しま…

見出し記法

小見出し記法 *1 このダイアリーの基本的な様式案第 1 稿 小々見出し記法 *2 子小見出し記法ではないのか。 脚注記法 *3 *4 *5 改行 *6 改行 1 改行 2 1 行の本文 1 行の本文 1 1 行の本文 21 行の 本文 31 行の 本文 4 2 行の本文 2 行の本文 2 行の 本文 3…

Amazon アソシエイトを導入した。 過去の記事にタイトルをつけた。

Flex アプリケーションを ActionScript から開始する

ActionScriptedApplication.as package { import spark.components.Application; /** * spark.components.Application を継承するクラス。 */ public class ActionScriptedApplication extends spark.components.Application { /** * コンストラクタ。 */ pu…

Visual Studio 2008 日本語版で ReSharper 利用するときの注意

「ReSharperでショートカットを有効にする」『我楽多園』 そういうことだったのか。こんな方法でやってみた:1. [スタート]→[コントロールパネル]→[時計、言語、および地域]→[表示言語の変更]→[表示言語を選んでください]→"英語" 2. [ツール]→[オプション]→[…

ブロックとイテレータ

a = [3, 2, 1] a[3] = a[2] - 1 a.each do |elt| print elt + 1 endh = { :one => 1, :two => 2 } h[:one] h[:three] = 3 h.each do |key, value| print "#{value}:#{key}; " endまつもと, ゆきひろ = Flanagan, David 「1.1.2 ブロックとイテレータ」『プロ…

「Virtual Server 管理 Web サイト」が IE8 で操作できない件について

「Virtual Server 管理 Web サイト」が IE8 で操作できない件について。

ブロックとイテレータ

ruby -e "1.upto(9){ |x| print x }"まつもと, ゆきひろ = Flanagan, David 「1.1.2 ブロックとイテレータ」『プログラミング言語 Ruby 』 2009年1月 オライリー・ジャパン isbn:9784873113944 p3 広告 Ruby

ブロックとイテレータ

ruby -e '3.times { print "Ruby ! "}'まつもと, ゆきひろ = Flanagan, David 「1.1.2 ブロックとイテレータ」『プログラミング言語 Ruby 』 2009年1月 オライリー・ジャパン isbn:9784873113944 p3 広告 Ruby

イテレータと yield

using System; using System.Collections; using System.Collections.Generic; public class Program { /// <summary> /// このプログラムのメイン・エントリポイントです。 /// </summary> public static void Main() { // 列挙可能な文字列を生成します EnumarableStrings str…

イベント、デリゲート、ラムダ式

using System; public class Program { /// <summary> /// このアプリケーションのメイン・エントリポイントです。 /// </summary> public static void Main() { // イベントハンドラを宣言 EventHandler handler; // イベントハンドラをラムダ式で生成 handler = (sender, e) =…