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
use Encode; | |
use MIME::Base64; | |
Encode::from_to($data_from , "eucjp" , "iso-2022-jp"); | |
$data = encode_base64($data,''); | |
$data =~ s/^(.*)$/=?iso-2022-jp?B?$1?=/mg; |
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
require 'rubygems' | |
require 'activesupport' | |
tomorrow = Time.now | |
after_week = tomorrow.advance :days => 7 | |
puts "#{ tomorrow.strftime "%Y%m%d"},#{after_week.strftime "%Y%m%d"}" | |
(1..300).each{|x| | |
tomorrow = tomorrow.advance(:weeks=>x) | |
after_week = after_week.advance(:weeks=>x) |
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
require 'date' | |
require 'rubygems' | |
require 'activesupport' | |
a = "100161,%s,%s,2009/10/1,3,,,,,N" | |
today = Date.today | |
(1..30).each{ | |
puts format(a,today.strftime("%Y/%m/%d"),today.tomorrow.strftime("%Y/%m/%d")) | |
today = today.tomorrow.tomorrow | |
} |
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
map.connect 'users/:user_name',:controller => 'users' ,:action => 'show' ,:conditions => {:method => :get } | |
map.resources :users,:execpt => [:show] |
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
# -*- coding: utf-8 -*- | |
module A | |
def self.included(base) | |
base.class_eval do | |
extend ClassMethods | |
test_class_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
; M-x ielm | |
(+ 3 4) ; => 7 | |
(current-buffer) ; => #<buffer test.el> | |
(require 'cl) | |
(loop for i from 1 to 3 | |
for y = (* i 2 ) do | |
(* i 10) ; => 10, 20, 30 | |
(+ i 1 ); => 2, 3, 4 |
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
run "rm public/index.html" | |
gem 'json' | |
gem 'oauth' | |
gem 'ezcrypto' | |
gem 'sqlite3-ruby', :lib => 'sqlite3' | |
rake 'gems:install' | |
plugin 'twitter-auth', :git => 'git://github.com/mbleigh/twitter-auth.git' |
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
var result = '['; | |
$('table.wikitable').eq(2).find('tr').each(function(){ | |
if($(this).find('td').eq(0).find('b').html() === null){ | |
return true; | |
} | |
result= result + | |
'%w('+ |
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
ac-R 0.1 available Autocompletion routines for R | |
ac-ja 0.0.1 available auto-complete-mode source for Japanese | |
ac-slime 0.1 available An auto-complete source using slime completions | |
ahg 0.99 available Alberto's Emacs interface for Mercurial (Hg) | |
all 1.0 available Edit all lines matching a given regexp | |
alpha 1.0 available increase frame transparency | |
android-mode 0.1 available Minor mode for Android application development | |
anything-R 0.1.2010 available anything-sources and some utilities for GNU R. | |
anything-complete 1.86 available completion with anything | |
anything-el-swa... 0.1.2009 available anything-sources for el-swank-fuzzy.el |
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
Traceback (most recent call last): | |
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 4039, in _HandleRequest | |
self._Dispatch(dispatcher, self.rfile, outfile, env_dict) | |
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 3945, in _Dispatch | |
base_env_dict=env_dict) | |
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 605, in Dispatch | |
base_env_dict=base_env_dict) | |
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 3015, in Dispatch | |
self._module_dict) | |
File "/Applications/GoogleAppEn |
OlderNewer