- ひかりの剣 海堂尊
- 螺鈿迷宮(上) 海堂尊
- 螺鈿迷宮(下) 海堂尊
- ジェネラル・ルージュの凱旋(上) 海堂尊
- ジェネラル・ルージュの凱旋(下) 海堂尊
- ジェネラル・ルージュの伝説 海堂尊
- イノセントゲリラの祝祭(上) 海堂尊
- イノセントゲリラの祝祭(下) 海堂尊
This file contains 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
/** | |
* JSON 形式のメッセージ配列を順に指定された id の要素内に表示する | |
* | |
* @param {array} messages JSON 配列 | |
* @param {integer} interval 表示時間(ms) | |
* @param {string} id 要素の id | |
*/ | |
module.notification = function(messages, interval, id) { | |
if (messages.length == 0) { | |
return; |
This file contains 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.Linq; | |
class Loto6 | |
{ | |
static void Main(string[] args) | |
{ | |
List<int> numbers = Enumerable.Range(1, 43).OrderBy(i => Guid.NewGuid()).Take(6).ToList(); | |
Console.Write(string.Join("-", numbers.ConvertAll<string>(delegate(int i) { return i.ToString(); }).ToArray())); |
This file contains 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
#!/usr/bin/env ruby | |
hoge = 5 | |
fuga = if hoge > 3 | |
"big" | |
else | |
"small" | |
end | |
puts fuga #=> big |
This file contains 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
<? | |
/** $hoge を null にする */ | |
$hoge = null; | |
/** なぜかエラーにならずに stdClass が生成される */ | |
$hoge -> name = "naoto shingaki"; | |
$hoge -> age = 26; | |
/** stdClass は foreach でイテレーションできる */ |