Skip to content

Instantly share code, notes, and snippets.

View komagata's full-sized avatar

Masaki Komagata komagata

View GitHub Profile
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'
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'
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'
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'
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'
<?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 = '';
#!/usr/bin/env ruby
require 'rubygems'
require 'twitter'
require 'pit'
config = Pit.get('twitter', :require => {
'consumer_token_key' => '',
'consumer_secret' => '',
'access_token_key' => '',
@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;
}
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
#!/usr/bin/env ruby
require 'rubygems'
require 'twitter'
require 'pit'
config = Pit.get('twitter', :require => {
'consumer_token_key' => '',
'consumer_secret' => '',
'access_token_key' => '',