Skip to content

Instantly share code, notes, and snippets.

@gotagotagoat
gotagotagoat / .gitignore
Created October 3, 2014 08:01
「Ruby on Rails チュートリアル:実例を使って Rails を学ぼう」で紹介されている .gitignore のリスト
# Ignore bundler config.
/.bundle
# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-journal
# Ignore all logfiles and tempfiles.
/log/*.log
/tmp
@gotagotagoat
gotagotagoat / Rakefile
Created April 1, 2014 03:06
256インターン Rake課題
CC = "gcc"
task :default => "hello"
file "hello" => "hello.o" do |t|
sh "#{CC} -o #{t.name} #{t.prerequisites[0]}"
end
rule '.o' => '.c' do |t|
sh "#{CC} -c #{t.source}"
@gotagotagoat
gotagotagoat / 01.rb
Last active August 29, 2015 13:57
[プログラミング入門 - Rubyを使って](http://www.ie.u-ryukyu.ac.jp/~kono/software/s04/tutorial/) の私的解答
# coding : utf-8
# 1年は何時間でしょうか?
puts 365 * 24
# 10年間は何分でしょうか?
puts 365 * 10 * 24 * 60
# あなたが生まれてから今日まで何秒たっているでしょうか?
now = Time.now
@gotagotagoat
gotagotagoat / st2_config
Created September 28, 2013 11:51
ST2 "translate_tabs_to_spaces" 設定
{
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": true
}
@gotagotagoat
gotagotagoat / curry_recipe.html
Last active December 24, 2015 00:59
[256インターン]HTML課題
<!doctype html>
<html lang="ja">
<head>
<meta charset="UTF-8">
  <title>カレーのレシピ</title>
</head>
<body>
<header>
<h1>カレーのレシピ</h1>
<p>誰でもできる、美味しいカレーの作り方です。旦那も息子もこのカレーが大好物。<br />ポイントは玉ねぎと人参はミキサーで細かくしてしまうところ。逆にコクのある美味しいカレーになります</p>
@gotagotagoat
gotagotagoat / curry_recipe_ver2.html
Last active December 23, 2015 23:49
[256インターン]HTML課題 ver2
<!doctype html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>カレーのレシピ</title>
</head>
<body>
<header>
<h1>カレーのレシピ</h1>
<p>誰でもできる、美味しいカレーの作り方です。旦那も息子もこのカレーが大好物。<br />ポイントは玉ねぎと人参はミキサーで細かくしてしまうところ。逆にコクのある美味しいカレーになります</p>