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
<!--Changing of header start--> | |
<!--Sorry,Comments of this program is written in Japanese.--> | |
<script type="text/javascript"> | |
<!-- | |
today = new Date(); | |
/*rand関数に乱数を加えてみても面白そうです。*/ | |
var rand = today.getDay(); |
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
<?php | |
/** | |
* デザイナーとの分業しやすいソースコード | |
* This source use if corder and designer divide your works. | |
*表示の為の連想配列(array to print to html) | |
*/ | |
$data = array | |
( | |
0 => "column0", | |
1 => "column1", |
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
<?php | |
/** | |
*MySQLの接続の為のクラス | |
*Class for connecting MySQL | |
*/ | |
class MySQL_Connect | |
{ | |
/* | |
*コンストラクタ | |
*@var url:パス |
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
#define board_size 5 | |
#include<stdio.h> | |
main() | |
{ | |
int board[board_size][board_size]; | |
int i; | |
for(i= 0;i<board_size;i++) | |
{ | |
board[i][j] = 0;//initlizing board |
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
<html> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<style type="text/css"> | |
body | |
{ | |
width:260px; | |
color:#ffffff; | |
} | |
body | |
{ |
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
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<script> | |
$(document).ready(function(){ | |
$("#right").click(function(){ | |
$(".block").animate({"left": "+=50px"}, "slow"); | |
}); |
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
define MAX_VALUE 100 | |
#include<stdio.h> | |
int main() | |
{ | |
/* | |
* How to solve FizzBuzz problem | |
* Copiled program:http://ideone.com/clgJw | |
* FizzBuzz Problem explains:http://code.google.com/p/fizzbuzz/ | |
* |
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
#define MAX_VALUE 100 | |
#include<stdio.h> | |
int main() | |
{ | |
/* | |
* How to solve FizzBuzz problem | |
* Copiled program:http://ideone.com/clgJw | |
* FizzBuzz Problem explains:http://code.google.com/p/fizzbuzz/ | |
* |
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
void bubble_sort(int a[],int n) | |
{ | |
int i;//ループ用変数 | |
int j;//ループ用変数 | |
int tmp;//交換用変数 | |
for(i=0;i<n;i++){ | |
for(j=(n-1);j>i;j--){ | |
if(a[j-1] > a[j]){ | |
tmp = a[j]; | |
a[j] = a[j-1]; |
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
<?php | |
/* | |
*問題用の配列 | |
* | |
*/ | |
$question = array | |
( | |
1 => array ("value1" => 10,"value2" => 22, "plus" => 1), | |
2 => array ("value1" => 2,"value2" => 4, "plus" => 2), |
OlderNewer