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
run 'rm public/index.html' | |
run 'README' | |
plugin 'rspec', :git => 'git://github.com/dchelimsky/rspec.git' | |
plugin 'rspec-rails', :git => 'git://github.com/dchelimsky/rspec-rails.git' | |
plugin 'cucumber', :git => 'git://github.com/aslakhellesoy/cucumber.git' | |
plugin 'webrat', :git => 'git://github.com/brynary/webrat.git' | |
plugin 'i18n_generators', :git => 'git://github.com/amatsuda/i18n_generators.git' | |
plugin 'ssl_requirement', :git => 'git://github.com/rails/ssl_requirement.git' | |
plugin 'exception_notification', :git => 'git://github.com/rails/exception_notification.git' |
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
run 'rm public/index.html' | |
run 'README' | |
plugin 'rspec', :git => 'git://github.com/dchelimsky/rspec.git' | |
plugin 'rspec-rails', :git => 'git://github.com/dchelimsky/rspec-rails.git' | |
plugin 'cucumber', :git => 'git://github.com/aslakhellesoy/cucumber.git' | |
plugin 'webrat', :git => 'git://github.com/brynary/webrat.git' | |
plugin 'i18n_generators', :git => 'git://github.com/amatsuda/i18n_generators.git' | |
plugin 'ssl_requirement', :git => 'git://github.com/rails/ssl_requirement.git' | |
plugin 'exception_notification', :git => 'git://github.com/rails/exception_notification.git' |
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
run 'rm public/index.html' | |
run 'README' | |
plugin 'rspec', :git => 'git://github.com/dchelimsky/rspec.git' | |
plugin 'rspec-rails', :git => 'git://github.com/dchelimsky/rspec-rails.git' | |
plugin 'cucumber', :git => 'git://github.com/aslakhellesoy/cucumber.git' | |
plugin 'webrat', :git => 'git://github.com/brynary/webrat.git' | |
plugin 'i18n_generators', :git => 'git://github.com/amatsuda/i18n_generators.git' | |
plugin 'ssl_requirement', :git => 'git://github.com/rails/ssl_requirement.git' | |
plugin 'exception_notification', :git => 'git://github.com/rails/exception_notification.git' |
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
namespace :deploy do | |
namespace :notify do | |
desc 'Send release message to skype chat' | |
task :skype do | |
begin | |
require 'rb-skypemac' | |
rescue LoadError | |
puts 'rb-skypemac is required.' | |
end | |
chat_id = '#komagata1111/$xxxxxxxxxxxxx' |
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
run 'rm public/index.html' | |
run 'README' | |
plugin 'rspec', :git => 'git://github.com/dchelimsky/rspec.git' | |
plugin 'rspec-rails', :git => 'git://github.com/dchelimsky/rspec-rails.git' | |
plugin 'cucumber', :git => 'git://github.com/aslakhellesoy/cucumber.git' | |
plugin 'webrat', :git => 'git://github.com/brynary/webrat.git' | |
plugin 'i18n_generators', :git => 'git://github.com/amatsuda/i18n_generators.git' | |
plugin 'ssl_requirement', :git => 'git://github.com/rails/ssl_requirement.git' | |
plugin 'exception_notification', :git => 'git://github.com/rails/exception_notification.git' |
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
<?php | |
function nice_send_mail($to, $subject, $body, $headers = array()) { | |
$body = mb_convert_encoding($body, 'ISO-2022-JP', 'UTF-8'); | |
$subject = mb_convert_encoding($subject, 'ISO-2022-JP', 'UTF-8'); | |
$subject = mb_encode_mimeheader($subject, 'ISO-2022-JP'); | |
if (is_array($headers)) { | |
$header = join("\r\n", $headers); | |
} else { | |
$header = ''; |
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 | |
require 'rubygems' | |
require 'twitter' | |
require 'pit' | |
config = Pit.get('twitter', :require => { | |
'consumer_token_key' => '', | |
'consumer_secret' => '', | |
'access_token_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
@namespace url(http://www.w3.org/1999/xhtml); | |
head * {display:none} | |
head, meta {display:inline} | |
meta[name=GENERATOR]::before, | |
meta[name=generator]::before { | |
content:attr(content); | |
position:absolute; z-index:2147483647; | |
background-color:#000; color:#fff; opacity:0.4; | |
-moz-border-radius-bottomright:1ex; | |
} |
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
class Hpricot::Comment | |
def to_haml(tabs, options) | |
content = self.content | |
if content =~ /\A(\[[^\]]+\])>(.*)<!\[endif\]\z/m | |
condition = $1 | |
content = $2 | |
end | |
if content.include?("\n") | |
"#{tabulate(tabs)}/#{condition}\n#{parse_text(content, tabs + 1)}" | |
else |
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 | |
require 'rubygems' | |
require 'twitter' | |
require 'pit' | |
config = Pit.get('twitter', :require => { | |
'consumer_token_key' => '', | |
'consumer_secret' => '', | |
'access_token_key' => '', |