2017年10月14日 星期六

GAMEDISK 遊戲編號與測試

遊戲部分列表
G01 猜數字,需要MCI32.OCX
G02 比大小
G03 骰子猜謎
G04 顏色猜謎
G05 萬徑人蹤
G06 挑戰記憶
G07 打字遊戲
G08 反轉方塊
G09 數字拼盤
G10 旋轉方塊
G11 旋轉蜂窩
G12 撿石頭
G13 縱橫計數
G14 井字棋
G15 反圈叉棋
G16 豆腐棋
G17 五角棋
G18 孔明棋
G19 三子棋
G20 四子棋
G21 五子棋
G22 伏羲神算 需要Music目錄
G23 孫武練兵 需要Music目錄
G24 陶侃搬磚
G25 華容道
G26 六角棋
G27 獨人跳棋,需要Msvbvm50.dll


VB五子棋設計回顧

現存原始檔是1998年,2001年時修改的
就是單純採用VB5設計的,原本以為有HiPoint設計,結果發現有原始函數庫,可是主程式並沒有呼叫它。

HiPoint 在筆記本裡是這樣描述的

IF 存在HiPoint THEN
  score =  計算每一個HiPoint的值,選出最高分的
ELSE
  掃描所有存在的空點,如果加入之後會造成4子連線,或者兩個(以上)的三子連線就加入  HiPoint

ENDIF

2017年10月13日 星期五

單位表

我們目前所用的KMGT等都是英文表示方法,分別是Kilo103)、Mega106)、Giga109)、Tera1012)的簡寫,更大的還有Peta1015)、Exa1018)、Bronto1021)等。底下是維基百科中的列表

PrefixBase 1000Base 10Base
2
English wordAdoption
NameSymbolShort scaleLong scale
yottaY 10008 1024
280
 septillion quadrillion1991
zettaZ 10007 1021
270
 sextillion trilliard1991
exaE 10006 1018
260
 quintillion trillion1975
petaP 10005 1015250 quadrillion billiard1975
teraT 10004 1012240 trillion billion1960
gigaG 10003 109230 billion milliard1960
megaM 10002 106
220
 million1873
kiloK 10001 103
210
 thousand1795

 10000 1001 one

millim 1000−1 10−3
2-10
 thousandth1795
microµ 1000−2 10−6
2-20
 millionth1873
nanon 1000−3 10−9
2-30
 billionth milliardth1960
picop 1000−4 10−12
2-40
 trillionth billionth1960
femtof 1000−5 10−15
2-50
 quadrillionth billiardth1964
attoa 1000−6 10−18
2-60
 quintillionth trillionth1964
zeptoz 1000−7 10−21
2-70
 sextillionth trilliardth1991
yoctoy 1000−8 10−24 2-80 septillionth quadrillionth1991

Rich Edit 問答

基礎
來源:MS Rich Textbox Control 5.0
屬性
Appearence 0-rtfFlat 1-rtfThreaD
AutoVerbMenu True False
BackColor
BorderStyle 0-rtfNoBorder 1-rtfFixedSingle
BulletIndent
DataBindings
DataField
DataSource
DisableNoScorll True False

Greasemonkey範例

新增Greasemonkey套件
新使用者腳本
名稱 edit
命名空間 http://wusi.asuscomm.com/news5/
使用 http://wusi.asuscomm.com/*

將底下複製到使用者程式碼區

// ==UserScript==
// @name        edit
// @namespace   http://wusi.asuscomm.com/news5/
// @include     http://wusi.asuscomm.com/news5/
// @version     1
// @grant       none
// ==/UserScript==

function openInNewTab(url) {
  var win = window.open(url, '_blank');
  win.focus();
}
var x = document.getElementsByClassName('logo');
var btn = document.createElement('BUTTON');
var t = document.createTextNode('EDIT');
btn.appendChild(t);
x[0].appendChild(btn);
btn.onclick = function () {
  a = location.href.split('/');
  l = a.length;
  //alert(a[l-1]);
  b = a[l - 1].split('-');
  c = b[0].match(/\d+/g);
  url = 'http://wusi.asuscomm.com/news5/administrator/index.php?option=com_content&task=article.edit&id=' + c;
  openInNewTab(url);
}