Skip to content

Instantly share code, notes, and snippets.

View naoto's full-sized avatar

Naoto SHINGAKI naoto

View GitHub Profile
require 'rubygems'
require 'uri'
require 'open-uri'
require 'net/http'
require 'nokogiri'
class Wikipedia < Citrus::Plugin
def initialize(*args)
super
@prefix = @config['prefix'] || '\? *?'
curl -d 'serial=/4332799460503178/' gpkure.herokuapp.com
curl -d 'serial=/5369878261627612/' gpkure.herokuapp.com
curl -d 'serial=/5303568525959220/' gpkure.herokuapp.com
curl -d 'serial=/5349372193995302/' gpkure.herokuapp.com
/**
* 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;
@naoto
naoto / Loto6.cs
Created December 16, 2010 05:45 — forked from tomohiro/Loto6.cs
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()));

ServersMan@vps Debian/GNUセットアップ内容

0. サーバ状態

   dti-vps-srv11:~# uname -a
   Linux dti-vps-srv11 2.6.18-164.15.1.el5.028stab068.9 #1 SMP Tue Mar 30 18:07:38 MSD 2010 i686 GNU/Linux

   dti-vps-srv11:~# df -lh

Filesystem Size Used Avail Use% Mounted on

@naoto
naoto / mixi_voice_bot.rb
Created October 28, 2009 12:20 — forked from tomohiro/mixi_voice_bot.rb
mixi voice irc gateway
#!/usr/bin/env ruby
$LOAD_PATH << 'lib'
$LOAD_PATH << '../lib'
require 'optparse'
require 'rubygems'
require 'net/irc'
require 'uri'
require 'mechanize'