Skip to content

Instantly share code, notes, and snippets.

@HeeroYuy
HeeroYuy / gist:6864860
Last active December 24, 2015 21:19
argc_arcv.cpp
//2013_10_07 by S9954005
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
//參數讀取-------------------------------------------------
char warning_1[200]="Usage :-txt <資料檔案名稱> -anw <結果檔案名稱> -bn <block數量> -tn <thread數量> -dn <DataSize>\n\n\n;
@HeeroYuy
HeeroYuy / gist:2827922
Created May 29, 2012 11:26
js_practice.htm #2012/05/29
<html>
<head>
<title>JavaScript表單欄位檢查</title>
<script language="javascript">
function check() {
var n1=0;
var n2=0;
var n3=0;
@HeeroYuy
HeeroYuy / gist:2768812
Created May 22, 2012 12:41
board.php 2012.05.22
<?
$mysqli = new mysqli("localhost","root","123456","board");
$mysqli->query("SET CHARACTER SET utf8");
$mysqli->query("SET collation_connection = 'utf8_unicode_ci'");
if(isset($_POST['B1']))
{
$name1 = $_POST['name'];
@HeeroYuy
HeeroYuy / gist:2768807
Created May 22, 2012 12:39
list.php 2012.05.22
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>留言板</title>
<style type="text/css">
<!--
tr {
text-align: center;
}
.XD1{
@HeeroYuy
HeeroYuy / gist:2634683
Created May 8, 2012 12:54
SQL語法練習
1. select * from students where stud_sex='F' and stud_name LIKE'_美_'
2. select * from students where stud_addr IN('彰化縣' ,'台中縣' ,'台中市' )order by stud_no desc
3.select stud_addr,count(*) from students group by stud_addr having count(*)>1
4. select course.c_name,course.credit from course INNER JOIN study ON course.c_no=study.serial_no where study.stud_no=(SELECT stud_no FROM students WHERE stud_name='張文傑')
@HeeroYuy
HeeroYuy / gist:2497033
Created April 26, 2012 07:05
期中考 A卷(2012/04/26)
/*************************************************************************
Include files
*************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include "driver.h"
int i,d1,d2,d3,d4,se1,se2,se3,se4,a,a1,a3,a2;
unsigned short io_reg2,io_reg1,s0,s1,s2,s3,x1,x2,x3,x4;
unsigned short row, col, new_row, new_col;
unsigned short cpld_ctrl;
@HeeroYuy
HeeroYuy / gist:2478036
Created April 24, 2012 08:53
(2012/04/17)web%php 期中上機考-第三題_S9954005
<?
//姓名:陳昭佑(S9954005)
//作答情形:未完全
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>期中上機考-第三題</title>
/*************************************************************************
Include files
*************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include "driver.h"
int i,d1,d2,d3,d4,se1,se2,se3,se4,a,a1,a3;
unsigned short io_reg2,io_reg1,s0,s1,s2,s3,x1,x2,x3,x4;
unsigned short row, col, new_row, new_col;
unsigned short cpld_ctrl;
<!--//practice_form2.php -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title> 表單接收 </title>
<style type="text/css">
<!--
.xd1 {
color: #00F;
<!--//practice_form2.php -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title> 表單接收 </title>
<style type="text/css">
<!--
.xd1 {
color: #00F;