This file contains hidden or 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
[壁の中] | |
# 最新に更新 | |
> git checkout master | |
> git pull | |
# 今日のbranch | |
> git branch `date -I` master | |
# 作ったbranchに移動 | |
> git checkout `date -I` | |
## ごにょごにょ編集 | |
# パッチ作成 |
This file contains hidden or 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
# -*- mode: ruby; coding: utf-8-unix -*- | |
require 'time' | |
require 'webrick' | |
server = WEBrick::HTTPServer.new(:BindAddress => '0.0.0.0', | |
:Port => 3000, | |
:DocumentRoot => ARGV.shift || Dir::pwd) | |
server.mount("/", | |
WEBrick::HTTPServlet::FileHandler, |
This file contains hidden or 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
昨日みたけど分らなくてスルーしてた。 | |
* 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 |
This file contains hidden or 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
<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> |
This file contains hidden or 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
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; |
This file contains hidden or 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
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 |
This file contains hidden or 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
// ==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; }'; |
This file contains hidden or 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
●エミおばさんの沖縄料理 | |
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カップ | |
⑥生姜 少々 |
This file contains hidden or 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
# -*- mode: ruby; coding: utf-8-unix -*- | |
def if boolean, &block | |
block.call if boolean | |
end | |
if(true) { | |
p true | |
} |
This file contains hidden or 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
#何故俺にこれを作らせるんだ | |
name = gets.chomp! | |
puts <<EOS | |
#{name}!#{name}!#{name}!#{name}ぅぅうううわぁああああああああああああああああああああああん!!! | |
あぁああああ…ああ…あっあっー!あぁああああああ!!!#{name}#{name}#{name}ぅううぁわぁああああ!!! | |
あぁクンカクンカ!クンカクンカ!スーハースーハー!スーハースーハー!いい匂いだなぁ…くんくん | |
んはぁっ!#{name}たんの髪をクンカクンカしたいお!クンカクンカ!あぁあ!! | |
間違えた!モフモフしたいお!モフモフ!モフモフ!髪髪モフモフ!カリカリモフモフ…きゅんきゅんきゅい!! |