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
require "watir-webdriver" | |
require "nokogiri" | |
ff = Watir::Browser.new :ff # variable ff is firefox | |
ff.goto "https://twitter.com" | |
# login with your account | |
ff.button(:type => "submit").click | |
ff.text_field(:id => "signin-email").set "" # スクリーンネーム | |
ff.text_field(:id => "signin-password").set "" # パスワード |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=x-sjis"> | |
<title>学習院ひろば</title> | |
</head> | |
<frameset cols="25%,75%"> | |
<frame src="./handle.html" name="handle"> | |
<frameset rows="12%,88%"> | |
<frame src="./menu.html" name="menu"> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
</head> | |
<body id='body'> | |
<button id="red">red</button> | |
<button id="green">green</button> | |
<button id="blue">blue</button> | |
<script> |
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
/* This program is whether a number is prime number. | |
* | |
* usage | |
* - The number of argument of main function is 1. | |
* - The argument is The number you want to check. | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char **argv){ | |
int num=atoi(argv[1]), i, j, index = 2, primes[1000], flag; |
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
a.html |
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
開始日時:2016/01/17 22:24:35 | |
棋戦:R対局(15分) | |
手合割:平手 | |
先手: | |
後手:heavymajinga(177) | |
手数----指手---------消費時間-- | |
1 7六歩(77) ( 0:03/00:00:03) | |
2 3二金(41) ( 0:03/00:00:03) | |
3 7五歩(76) ( 0:05/00:00:08) | |
4 5二金(61) ( 0:04/00:00:07) |
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> | |
int main(){ | |
int m, a, pow; | |
printf("法を入力"); | |
scanf("%d", &m); | |
printf("位数を求めたい数を入力"); | |
scanf("%d", &a); | |
pow = a; | |
for(int i = 2;i < m;i++){ | |
pow = (a * pow) % m; |
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
def input_str | |
ret = [] | |
ret.concat(("a".."z").to_a) | |
ret.concat(("A".."Z").to_a) | |
ret.concat(("0".."9").to_a) | |
return ret | |
end | |
INPUT = input_str() | |
def write_pass(input) | |
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
hash = {'A' => 'hello', 'st' => 'come on'} | |
puts hash['A'] | |
puts hash['st'] | |
puts "\n" | |
for i in [0, 2, 5, 100] | |
puts i | |
end | |
for i in hash # ここではhashという変数は[["A", "hello"], ["st", "come on"]]としてみなされている | |
puts i[0] |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<canvas id="draw"></canvas> | |
<script> | |
var canvas = document.getElementById("draw"); | |
var ctx = canvas.getContext("2d"); | |
canvas.width = 300; | |
canvas.height = 300; |
OlderNewer