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
//程式世界(https://www.facebook.com/ProgramingTech) | |
//THE COLOR遊戲,自動點擊(http://game.ioxapp.com/color/) | |
var timer; | |
function C(){ | |
var Temp = {};//空物件 | |
$("#box").find("span").each(function(){ | |
var color = $(this).css('backgroundColor');//取得背景色 | |
var stop = $(this).css('display');//取得顯示 | |
if(stop == "none"){//如果不顯示則表示遊戲結束 | |
clearInterval(timer);//清除Timer |
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
/* | |
Date:20141207 | |
BY XPY | |
程式碼僅供參考,引用請標示本頁網址 | |
*/ | |
using System; | |
using System.Linq; | |
using System.Text; | |
using System.Xml; | |
using System.Collections; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Net; | |
using System.Collections; | |
using Alex.Data; | |
using Alex.Syntax; | |
using Alex.Data.Json; |
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
function requestAsync(path,thread){ | |
var q = new XMLHttpRequest(); | |
q.open('get','test.json'); | |
q.onload = function(){ | |
requestAsync['result'] = JSON.parse(q.response); | |
thread.next();//回呼 | |
} | |
q.send(); | |
} |
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
//Xu Pei Yao - 2015/03/23 - 22:35 | |
class Program { | |
static void DownloadHtml(string url,out string html,ref int time) { | |
string result = new WebClient().DownloadString(url); | |
lock(result) { | |
time--; | |
html = result; | |
if(time == 0)th.MoveNext();//跳脫點繼續 | |
} | |
} |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; |
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
using System; | |
namespace CPE | |
{ | |
class Program{ | |
public static void Main(string[] args){ | |
decimal value = decimal.Parse("999999999999999999999"); | |
Console.Write(Degree(value)); | |
Console.ReadKey(true); | |
} |
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
//數字轉換為中文數字字串 | |
public static class NumberExtension { | |
#region decimal的數學指數計算 | |
public static decimal Power(decimal A ,decimal B) { | |
decimal Result = 1; | |
for(int i = 0; i < B; i++) | |
Result *= A; | |
return Result; | |
} | |
#endregion |
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
//ITSA 39 - Problem_1重點函數 | |
static int[] Problem_1(int Start) { | |
List<int> result = new List<int>(); | |
do { | |
result.Add(Start); | |
if(Start % 2 == 0) Start /= 2; | |
else Start = Start * 3 + 1; | |
} while(Start != 1); | |
result.Add(1); | |
return result.ToArray(); |
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
DECLARE @UpdateTable table(--暫存表,用以暫時儲存要更新或新增的目標資料 | |
[Id] int, | |
[Name] nvarchar(16), | |
[Count] int | |
) | |
insert @UpdateTable select Min([Id]),Min([Name]),Sum([Count]) from (--將要更新的資料寫入暫存表 | |
select * from [test].[TableA] | |
union all | |
select * from [test].[TableB] | |
) as TempA group by [Id] |
OlderNewer