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
--- bmp.h.orig 2021-04-14 22:59:35.890000000 +0900 | |
+++ bmp.h 2021-04-14 23:21:32.450000000 +0900 | |
@@ -24,17 +24,17 @@ unsigned char Bmp_headbuf[HEADERSIZE];/* | |
unsigned char Bmp_Pallet[PALLETSIZE]; /* カラーパレットを格納 */ | |
char Bmp_type[2]; /* ファイルタイプ "BM" */ | |
-unsigned long Bmp_size; /* bmpファイルのサイズ (バイト) */ | |
+uint32_t Bmp_size; /* bmpファイルのサイズ (バイト) */ | |
unsigned int Bmp_info_header_size; /* 情報ヘッダのサイズ = 40 */ | |
unsigned int Bmp_header_size; /* ヘッダサイズ = 54*/ |
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 <time.h> | |
// ループ回数設定、今回は1億回 | |
#define LOOP 100000000 | |
int main(void) | |
{ | |
// 変数宣言 | |
int i, num; |
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
clang++ -std=c++11 hello.cpp -o hello.cgi |
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 <stdarg.h> | |
template <typename ... Args> | |
void cprintf(const char *format, Args const & ... args); | |
int main(void) | |
{ | |
cprintf("Content-type: text/html"); | |
cprintf(""); |
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 lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
</head> | |
<body onclick="console.log('0');"> | |
<div onclick="console.log('1');"> | |
<p onclick="console.log('2');">test</p> | |
</div> | |
<script src="./main.js"></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
http://example.jp/hoge # これを以下のように変換している | |
http://example.jp/index.php?hoge # 説明したPATHINFOの形と違う |
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
http://example.jp/index.php/hoge # 成功 | |
http://example.jp/hoge # 失敗 |
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
# 例 | |
http://example.jp/hoge/fuga.php # この場合は、hogeディレクトリ下のfuga.phpが呼び出される | |
http://example.jp/hoge.php/fuga # こうなると、hoge.phpディレクトリ下のfugaが存在しない場合、hoge.phpが呼び出され、/fugaはPATHINFOになる |
NewerOlder