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
describe Jpmobile::ParamsFilter do | |
include Rack::Test::Methods | |
include Jpmobile::RackHelper | |
include Jpmobile::Util | |
context 'Threadで動作している時' do | |
before(:all) do | |
@app = Jpmobile::MobileCarrier.new(Jpmobile::ParamsFilter.new(UnitApplication.new)) | |
@form_params = { | |
'bar' => 'baz', |
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
var l=document.getElementsByTagName('textarea');for(var i=0;i<l.length;i++){var t=l[i];if(t.value == '今どんな気持ち?'){t.value = ''};if(t.placeholder == '今どんな気持ち?'){t.placeholder = ''}} |
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
#with rails server | |
echo "STDOUT.sync = true" >> config/environments/development.rb | |
rails s | grep --line-buffered -vE '(Started GET "/assets/|Served asset|^$)' -A 1 | |
#with tail -f | |
tail -f log/development.log | grep --line-buffered -vE '(Started GET "/assets/|Served asset|^$)' -A 1 |
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 | |
# coding: utf-8 | |
# via: http://d.hatena.ne.jp/shibason/20090802/1249204953 | |
# 上記ブログで使われてるスクリプト参考にスクリプト自体書き換えなくても、ConsumerKeyとConsumerSecretを聞いてくれるように変えた。 | |
# 一つのアプリの認証キーいっぱい取りたいなら元のスクリプトの方が便利で、複数のアプリのキーいっぱい取りたいならこっちの方が便利。 | |
require 'rubygems' | |
require 'oauth' | |
print "Input OAuth Consumer Key: " |
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
def phpurlencode str | |
URI.encode(str, /[^a-zA-Z\d\-\_\.]/n) | |
end |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<Module> | |
<ModulePrefs title="コピペ運動会最新のコピペ" | |
description="コピペ運動会最新のコピペ" | |
height="100" scrolling="true"> | |
<Require feature="opensocial-0.8" /> | |
<Require feature="dynamic-height"/> | |
</ModulePrefs> | |
<Content type="html" view="canvas,profile,home"><![CDATA[ | |
<style type="text/css"> |
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
#ぼくが考えた最強のれいるずてんぷれーと! | |
# Copy database.yml | |
run "cp config/database.yml config/database.sample.yml" | |
# Delete unnecessary files | |
run "rm README" | |
run "rm public/index.html" | |
#git | |
git :init |