This file contains hidden or 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
/* Replace "dll.h" with the name of your header */ | |
#include "dll.h" | |
#include <windows.h> | |
#include <tchar.h> | |
typedef long (__cdecl * CompressType)(unsigned char *, int *, unsigned char *, int); | |
typedef long (__cdecl * UncompressType)(unsigned char *, int *, unsigned char *, int); | |
CompressType Bcompress = NULL; | |
UncompressType Buncompress = NULL; |
This file contains hidden or 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
oldList = [{a:1},{b:2},{c:3}]; | |
currentList = [{a:1},{b:2},{c:3},{d:4}]; | |
oldJSON = oldList.map(JSON.stringify); | |
newList = currentList.filter(function(obj){ | |
return oldJSON.indexOf(JSON.stringify(obj)) == -1; | |
}); |
This file contains hidden or 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 <iostream> | |
#include <vector> | |
#include <math.h> | |
#include <string> | |
#include <iomanip> | |
using namespace std; | |
void sub_into(vector< vector<double>> A, double r); | |
void gaussian_elimination(vector< vector<double>> *matrix, int m); |
This file contains hidden or 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
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 |
This file contains hidden or 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
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) |
This file contains hidden or 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
a=[2,-6,-1;-3,-1,7;-8,1,-2]; %設定係數矩陣 | |
b=[-38,-34,-20]'; %設定右半邊常數矩陣 | |
x=GaussPivot(a,b) %執行部分軸元高斯消去法 |
This file contains hidden or 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
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); |
This file contains hidden or 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
<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> |
This file contains hidden or 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
/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{ |
This file contains hidden or 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
var $ = null; | |
jQuery(function($){ | |
var $loading = $("#loading"); | |
}); | |
var $ = null; | |
jQuery(function(){ | |
var $loading = $("#loading"); | |
}); |