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
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
public class Main extends Thread{ | |
int i = 100; | |
public static void main(String[] args) throws Exception { | |
Main main1 = new Main(); | |
Main main2 = new Main(); | |
main1.start(); | |
main2.start(); |
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
PROMPT="%{${fg[cyan]}%}$ %~%{${reset_color}%} | |
${fg[magenta]}[%n]$ ${reset_color}" |
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
/* | |
** Filename : Ex33.c | |
** Author : Keita, Kameoka | |
** Note : 2016.05.16 | |
*/ | |
#include <jeclib.h> | |
#define SW1 (0x01) | |
#define SW2 (0x02) |
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
N0106 K01 200012 | |
N0106 K03 200206 | |
N0121 B01 199004 | |
N0126 K02 199506 | |
N0126 K06 200106 | |
N0128 B04 198208 | |
N0213 K02 200212 | |
N0237 K01 198906 | |
N0408 K02 199612 | |
N0411 B04 198012 |
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
N0101 木村 拓哉 キムラ タクヤ SO B 399000 1949-01-24 1975-04-01 | |
N0106 伊藤 努 イトウ ツトム NULL NULL 170000 1967-07-09 2000-04-01 | |
N0113 常盤 貴子 トキワ タカコ NULL NULL 170000 1971-03-02 2000-04-01 | |
N0121 東瀬 勇司 トウセ ユウジ SO C 311000 1956-11-03 1983-04-01 | |
N0126 島野 慎太郎 シマノ シンタロウ SE B 402000 1951-08-19 1978-04-01 | |
N0128 田邊 範大 タナベ ノリヒロ KE A 426000 1955-11-27 1975-04-01 | |
N0213 服部 正和 ハットリ マサカズ NULL NULL 160000 1979-10-19 2000-04-15 | |
N0237 樋口 雅之 ヒグチ マサユキ SE NULL 256000 1963-06-19 1988-04-01 | |
N0245 山田 剛 ヤマダ タケシ NULL NULL 170000 1973-03-12 2000-04-01 | |
N0301 渡辺 太郎 ワタナベ タロウ SE NULL 261000 1966-06-05 1989-04-01 |
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
%h1 Lesson作成 | |
= form_for(@lesson) do |f| | |
.field | |
= f.label :part, "Lesson番号(大問)" | |
%br | |
= f.number_field :part | |
.field | |
= f.label :number, "Lesson番号(小問)" | |
%br |
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
object FizzBuzz { | |
def main(args:Array[String]) = { | |
val list = (1 to 100) | |
val fizzbuzz = (x: Int) => (x%3, x%5) match { | |
case (0, 0) => "FizzBuzz" | |
case (0, _) => "Fizz" | |
case (_, 0) => "Buzz" | |
case _ => x.toString |
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 CreateTables < ActiveRecord::Migration | |
def change | |
create_table :tables do |t| | |
t.string :tablename | |
t.timestamps null: false | |
end | |
end | |
end |
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 TablesController < ApplicationController | |
def new | |
@table = Table.new | |
end | |
def edit | |
if params[:do_button] | |
con = ActiveRecord::Base.connection | |
con.execute(params[:table][:sql]) |
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
%h1 テーブル作成 | |
%p テーブル作成用のSQLを入力 | |
= form_for @table do |f| | |
.field | |
= f.text_field :sql | |
.actions | |
= f.submit "実行", name: "do_button" |
NewerOlder