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 run() { | |
var msg = queryMail(); | |
if (msg.length > 0) { | |
lineMessage(msg) | |
} | |
} | |
var token = 'xxx'; //your token |
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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
sol() | |
} |
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
Sub Unprotect() | |
ActiveSheet.Protect DrawingObjects:=True, CONTENTS:=True, AllowFiltering:=True | |
ActiveSheet.Protect DrawingObjects:=False, CONTENTS:=True, AllowFiltering:=True | |
ActiveSheet.Unprotect | |
End Sub |
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
@echo off | |
for /d %%i in (*) do @cd %cd%\%%i && @echo Pull %%i && @git pull | |
pause |
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
@title 自動建置專案 | |
REM MsBuildPath:MSBuild的位置 | |
SET MsBuildPath=c:\progra~2\MSBuild\14.0\Bin\ | |
REM Sln:sln檔案的位置 | |
SET Sln[0]=D:\a.sln | |
SET Sln[1]=D:\b.sln | |
SET Sln[2]=D:\folder1\1.sln | |
REM Sln 長度 | |
SET LEN=3 |
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.IO; | |
using System.Linq; | |
namespace MigrationMatrixRate | |
{ | |
internal class Program | |
{ | |
private enum CalcWays { PdMarginalNew, PdMarginalNewAcc, PDAcc } |
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.CodeDom; | |
using System.CodeDom.Compiler; | |
using Microsoft.CSharp; | |
namespace Calculator | |
{ | |
internal class Program | |
{ | |
private static void Main(string[] args) |
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; | |
/* | |
INPUT : 11000904 | |
OUTPUT : 壹仟壹佰萬零玖佰零肆圓整 | |
*/ | |
private static string MoneyConvert(int moneySource) | |
{ | |
string[] chtInt = new string[] { "零", "壹", "貳", "參", "肆", "伍", "陸", "柒", "捌", "玖" }; | |
string[] unit1 = new string[] { string.Empty, "拾", "佰", "仟" }; | |
string[] unit2 = new string[] { "圓整", "萬", "億", "兆" }; |
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; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Text; | |
namespace ConsoleApplication1 | |
{ | |
internal class Program |
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
IF EXISTS (SELECT 1 FROM sysobjects WHERE id = OBJECT_ID('[fn_GetSubstringByBytes]') AND xtype IN ('FN','IF','TF')) | |
DROP FUNCTION [fn_GetSubstringByBytes]; | |
GO | |
CREATE FUNCTION [fn_GetSubstringByBytes](@old_str NVARCHAR(MAX), @query_length INT) | |
RETURNS NVARCHAR(MAX) | |
BEGIN | |
DECLARE @result NVARCHAR(MAX) = '' | |
DECLARE @cur_length INT = 0; |
NewerOlder