Skip to content

Instantly share code, notes, and snippets.

View kenchan's full-sized avatar
💭
😄

Kenichi Takahashi kenchan

💭
😄
View GitHub Profile
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
public class Main {
private static LinkedBlockingQueue<LuceneIndex> queue = new LinkedBlockingQueue<LuceneIndex>();
public static void main(String[] args) throws Exception {
xrandr --output LVDS --output VGA --mode 1280x1024 --right-of LVDS
xrandr --output LVDS --output VGA --off
#!/bin/ruby
require 'rubygems'
require 'activesupport'
require 'calendar/japanese/holiday'
class Date
include Calendar::Japanese::Holiday
end
# Copy database.yml
run 'cp config/database.yml config/database.yml.example'
# Delete unnecessary files
run 'rm public/index.html'
# Install gems
gem 'amatsuda-i18n_generators', :source => 'http://gems.github.com', :lib => false
gem 'rspec-rails', :lib => false
gem 'cucumber', :lib => false
#!/bin/env ruby
n = 3
hash = {}
n.downto(1).each { |i| hash[i] = [] }
hoges.each do |hoge|
hash[hoge.fuga] << fuga if hash[hoge.fuga]
#!/bin/sh
if [ -f rerun.txt ]
then
rm rerun.txt
fi
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
S="${WORKDIR}/astah_community"
SRC_URI="${PN}-6_1.zip"
DESCRIPTION="Lightweight UML Editor"
HOMEPAGE="http://astah.change-vision.com/"
LICENSE="as-is"
SLOT="0"
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -march=i686 -pipe"
CXXFLAGS=$CFLAGS
LINGUAS="ja"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"
app-admin/perl-cleaner
app-admin/sudo
app-admin/syslog-ng
app-editors/vim
app-i18n/skk-jisyo
app-i18n/uim
app-office/openoffice-bin
app-portage/eix
app-portage/gentoolkit
app-portage/layman