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
PRINT CHARINDEX('B', 'A-B-C-D-E', 4); -- 0 | |
PRINT CHARINDEX('B', 'A-B-C-D-E'); -- 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
string Content = getContent("http://localhost/xxx"); | |
byte[] byteArray = Encoding.UTF8.GetBytes(Content); | |
MemoryStream stream = new MemoryStream(byteArray); | |
#region Spire.Xls 不支援讀取HTML | |
//https://www.e-iceblue.com/forum/html-to-excel-xls-t7246.html | |
//Spire.Xls.Workbook Spire_book = new Spire.Xls.Workbook(); | |
//Spire_book.LoadFromStream(stream, Spire.Xls.ExcelVersion.ODS); // System.InvalidOperationException: 'This is not a structured storage file.' |
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
Show hidden characters
[ | |
{ | |
"keys": ["ctrl+2"], | |
"command": "run_macro_file", | |
"args": { | |
"file": "Packages/User/to-2.sublime-macro" | |
} | |
}, | |
{ | |
"keys": ["ctrl+4"], |
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() { | |
window.$ = function(n) { | |
var num="undefined"==typeof n||null===n?0:n; | |
return { | |
add: function(n) { num += n; return this; }, | |
result: function() { return num; } | |
}; | |
} | |
})(); |
NewerOlder