材料 | 量、大きさ |
---|---|
ベース油(食用油を模索中、ごま油がベター) | 欲しい量 |
白ネギ(の青い部分) | 適量 |
ニンニク | 適量 |
唐辛子 | 適量 |
容器 | ベース油が入る容積をもった容器 |
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
key.setGlobalKey(['C-x', '.'], function () { | |
gBrowser.selectedTab.focus(); | |
content.focus(); | |
}, 'BODYへフォーカス', true); |
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
# -*- coding: utf-8 -*- | |
require 'open-uri' | |
require 'kconv' | |
# | |
#= SKK の人名辞書ファイルから架空の氏名を生成する (Ruby version) | |
# | |
# Authors:: 宮國 渡 | |
# Copyright:: Copyright (c) 2009 Wataru MIYAGUNI <[email protected]> | |
# URL:: http://github.com/gongo |
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
# -*- coding: utf-8 -*- | |
require 'open-uri' | |
require 'kconv' | |
#= ∀ガンダムのセリフをキャラ毎に抽出する | |
# | |
# Authors:: 宮國 渡 | |
# Copyright:: Copyright (c) 2009 Wataru MIYAGUNI <[email protected]> | |
# URL:: http://github.com/gongo | |
# |
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 | |
unless ARGV[0] | |
puts <<EOS | |
Usage: | |
ruby parse_volume.rb NUM | |
Example: | |
./parse_volume 12-15,19,23-29 | |
#=> 12 13 14 15 19 23 24 25 26 27 28 29 |
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
#include <stdio.h> | |
#include <stdlib.h> | |
(*ret)(int); | |
void *env; | |
__code | |
print(int *numbers) | |
{ |
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
# -*- coding: utf-8 -*- | |
# | |
#= AvtiveRecord::Base#update_or_create | |
# | |
# この拡張では、ActiveRecord::Base の update_attributes と create を | |
# 同時に行うことが可能となります。 | |
# | |
#== 参考 | |
# | |
# find_or_create |
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
(defun increment-string-as-number (number) | |
"Replace progression string of the position of the cursor | |
by string that added NUMBER. | |
Interactively, NUMBER is the prefix arg. | |
examle: | |
At the cursor string \"12\" | |
M-x increment-string-as-number ;; replaced by \"13\" | |
C-u 10 M-x increment-string-as-number ;; replaced by \"22\" |
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
*** controllers_diagram.rb.orig 2009-11-28 00:10:47.000000000 +0900 | |
--- controllers_diagram.rb 2009-11-28 00:13:13.000000000 +0900 | |
*************** | |
*** 20,26 **** | |
STDERR.print "Generating controllers diagram\n" if @options.verbose | |
files = Dir.glob("app/controllers/**/*_controller.rb") - @options.exclude | |
- files << 'app/controllers/application.rb' | |
files.each do |f| | |
class_name = extract_class_name(f) |
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 -*- | |
require 'rubygems' | |
require 'open-uri' | |
require 'nokogiri' | |
# http://subeki.akahoshitakuya.com/ | |
class Subeki | |
def initialize | |
@base_uri = 'http://subeki.akahoshitakuya.com/n/' |
OlderNewer