Skip to content

Instantly share code, notes, and snippets.

View DingWeizhe's full-sized avatar

DingWeizhe DingWeizhe

  • 安永金融科技股份有限公司
  • Taiwan
View GitHub Profile
http://sandbox.host.smartgslb.com/fb0/xss1.php?code=pkav
@DingWeizhe
DingWeizhe / DATA
Last active August 29, 2015 14:05
DATA
ID, GRP_ID, DATE, PRICE
1,1,2014-08-01,305
2,1,2014-08-02,300
3,1,2014-08-03,301
4,1,2014-08-04,302
5,1,2014-08-05,304
6,1,2014-08-06,300
7,1,2014-08-07,303
8,1,2014-08-08,305
9,2,2014-07-29,101
@DingWeizhe
DingWeizhe / QUERY
Created August 22, 2014 08:01
QUERY
SELECT * INTO [TMP_LASTDAY] FROM (
SELECT [GRP_ID], MAX([YMD]) AS [YMD]
FROM [tbl]
GROUP BY [GRP_ID]
) [N];
SELECT [N].[GRP_ID], [N].[YMD_1W] INTO [TMP_1W] FROM (
SELECT
var $ = null;
jQuery(function($){
var $loading = $("#loading");
});
var $ = null;
jQuery(function(){
var $loading = $("#loading");
});
/application/models/productModel.php
class productModel extends CI_Models{
function getAllProduct(){
$query = $this->db->query("select * from `product`");
result $query->result_array();
}
}
/application/controllers/product.php
class product extends CI_Controller{
<div
class='row'
ng-repeat="stockNo in IQ.Stocks track by $index"
ng-init="stock = Stocks[stockNo]"
ng-click="LT.ClickStock(stock)"
>
<div class="cell">
<div class='tac'>{{stockNo}} {{stock.StockNo}}</div>
</div>
</div>
function x = GaussPivot(A,b)
% x = GaussPivot(A,b):
% Gauss elimination with pivoting.
% input:
% A = coefficient matrix
% b = right hand side vector
% output:
% x = solution vector
[m,n]=size(A);
a=[2,-6,-1;-3,-1,7;-8,1,-2]; %設定係數矩陣
b=[-38,-34,-20]'; %設定右半邊常數矩陣
x=GaussPivot(a,b) %執行部分軸元高斯消去法
ITEM_DROP = {}
require("System\\drop")
A = function(id, name, resource, description, slotCount, ClassNum)
if not ITEM_DROP[id] then
description = {ITEM_DROP[id]}
--table.insert(description, ITEM_DROP[id])
end
result, msg = AddItem(id, name, resource, name, resource, slotCount, ClassNum)
ITEM_DROP = {
[501] = {"^000088Male Game Master#2000^000000 0.01%","^000088Female Game Master#2001^000000 0.01%"},
[502] = {"^000088瘋兔#1591^000000 100%","^000088狂暴木乃伊#1593^000000 100%","^000088殭屍#1610^000000 100%","^000088妖道#1611^000000 100%","^000088妖君#1612^000000 100%"},
[504] = {"^000088塔奧群卡#1583^000000 100%"},
[505] = {"^000088惡魔女僕#1370^000000 100%","^000088夢魘#1964^000000 100%","^000088灰俄希托斯#1716^000000 15%","^000088夢魘#1061^000000 10%","^000088暗黑祭司#1198^000000 10%","^000088Abysmal Dark Priest#2283^000000 10%","^000088流氓#1313^000000 6%","^000088七彩夢魘#1379^000000 5%","^000088賢者蟲#1281^000000 4%","^000088狂暴綠棉蟲#1300^000000 1.2%"},
[507] = {"^000088邪骸弓箭手#1016^000000 100%","^000088摩卡#1055^000000 100%","^000088聖誕波利#1062^000000 100%","^000088紅草#1078^000000 100%","^000088龍蠅#1091^000000 100%","^000088藍瘋兔#1093^000000 100%","^000088紅蝙蝠#1111^000000 100%","^000088獵蠅#1114^000000 100%","^000088轉轉蛋#1116^000000 100%","^000088刺刀哥布靈#1122^000000 100%","^000088鏈錘哥布靈#1123^000000 100%","^000088大斧哥布靈#1124^000000 100%","^000088