Skip to content

Instantly share code, notes, and snippets.

View takai's full-sized avatar

Naoto Takai takai

View GitHub Profile
require 'thread'
class Future
def initialize &block
@cv = ConditionVariable.new
@mutex = Mutex.new
Thread.start do
@result = block.call
@cv.signal
% ls ~ ~
Desktop Downloads Library Music Public Sites Tmp test
Documents Dropbox Movies Pictures SVN Src Work
@takai
takai / gist:173716
Created August 24, 2009 07:32 — forked from onodes/gist:173711
#何故俺にこれを作らせるんだ
name = gets.chomp!
puts <<EOS
#{name}!#{name}!#{name}!#{name}ぅぅうううわぁああああああああああああああああああああああん!!!
あぁああああ…ああ…あっあっー!あぁああああああ!!!#{name}#{name}#{name}ぅううぁわぁああああ!!!
あぁクンカクンカ!クンカクンカ!スーハースーハー!スーハースーハー!いい匂いだなぁ…くんくん
んはぁっ!#{name}たんの髪をクンカクンカしたいお!クンカクンカ!あぁあ!!
間違えた!モフモフしたいお!モフモフ!モフモフ!髪髪モフモフ!カリカリモフモフ…きゅんきゅんきゅい!!
# -*- mode: ruby; coding: utf-8-unix -*-
def if boolean, &block
block.call if boolean
end
if(true) {
p true
}
●エミおばさんの沖縄料理
http://member.nifty.ne.jp/okinawashop/nangoku/recipe7.html
■材料/5人分を目安として材料を揃えましょう。
①豚の三枚肉(沖縄では皮付きのまま、調理します)1kg〜1.5kg
②鰹だし 3〜4カップ
③泡盛 1〜1.5カップ(日本酒を代用する場合は1.5〜2カップは必要でしょうか)
④砂糖 1/2カップ
⑤醤油 1/2カップ
⑥生姜 少々
// ==UserScript==
// @name hide blockquote
// @namespace recompile.net
// @include http://b.hatena.ne.jp/entrylist*
// ==/UserScript==
(function () {
var style = document.createElement('style');
style.innerHTML = 'blockquote { display: none; }';
module AOP
def before_advice target_method, &advice
original_method = :"#original_{sym}"
self.class.class_eval do
alias_method original_method, target_method
define_method target_method do
advice.call self
__send__ original_method
end
end
package net.recompile.gae.counter;
import java.util.Iterator;
import com.google.appengine.api.datastore.DatastoreService;
import com.google.appengine.api.datastore.DatastoreServiceFactory;
import com.google.appengine.api.datastore.Entity;
import com.google.appengine.api.datastore.EntityNotFoundException;
import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.PreparedQuery;
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.recompile.gae.counter</groupId>
<artifactId>counter</artifactId>
<packaging>war</packaging>
<version>0.1-SNAPSHOT</version>
<dependencies>
<dependency>
昨日みたけど分らなくてスルーしてた。
* http://k-tai.impress.co.jp/cda/article/news_toppage/45691.html
こーゆー意味か?いずれもiPhone for everybodyキャンペーン(ようするに2年しばり)時の値段。
初回 一括 1年払い 2年払い
16GB 57600 0円 0円
32GB 69120 0円 0円
月額 基本 S!ベーシックパック パケット定額 月割額 パケMAX計
一括 980 315 1029~4410 -1280 4425