Skip to content

Instantly share code, notes, and snippets.

View SnailPJW's full-sized avatar
🏸
Programming in NTUH

Peng Chao-Wei SnailPJW

🏸
Programming in NTUH
View GitHub Profile
@SnailPJW
SnailPJW / tsconfig.json
Created April 28, 2021 08:27
TypeScript Note
{
"compilerOptions": {
"noImplicitAny": true,
"noEmitOnError": true,
"removeComments": false,
"sourceMap": true,
"target": "es5",
"outDir": "./Scripts/App"
},
"files": [
@SnailPJW
SnailPJW / cmdInstallVS2019.txt
Last active January 25, 2021 07:23
離線安裝前下載所需資源
vs_professional.exe --layout D:\Users\118843\Documents\vs --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --includeOptional --lang en-US zh-TW
@SnailPJW
SnailPJW / mailKitExample.cs
Last active January 15, 2021 06:53
mail using MailKit
using System;
using MailKit.Net.Smtp;
using MailKit;
using MimeKit;
namespace Util
{
class Program
{
//ref: https://codingnote.cc/zh-tw/p/72662/
@SnailPJW
SnailPJW / RegistryKey.cs
Created January 12, 2021 08:33
Read RegistryKey
RegistryKey Key = Registry.LocalMachine.OpenSubKey(queryKey);
@SnailPJW
SnailPJW / windowsHotKeys.html
Created January 7, 2021 01:58
windows hot keys
<kbd>⊞ Win</kbd>
@SnailPJW
SnailPJW / selectRecordOfDuplicateTitle.sql
Last active January 6, 2021 05:44
挑出有重複Title的紀錄
--列出有重覆Title的紀錄,並count其個數,依照其個數降序排序。
SELECT table001.TITLE, COUNT(*)
FROM DB.table001
WHERE table001.CODEBOOKID = 'KEYWRD'
GROUP BY table001.TITLE
HAVING COUNT(*)>1
ORDER BY COUNT(*) DESC
--重覆Title的一組,挑出每一組CodeID的最大值
@SnailPJW
SnailPJW / chill.idcard.csv
Last active July 15, 2020 00:44
chil.wei.28359.idcard
uuid title_tw name_tw title_en name_en mobile phone ext email
d34ae132-ac75-4731-92ef-d000950b7f21 資訊工程師 彭兆瑋 Information Engineer Peng Chao-Wei 0900606350 02-2312-3456 28359 [email protected]
@SnailPJW
SnailPJW / mvcsitemap.txt
Created May 9, 2019 08:54
error security
於 System.Web.Security.SqlRoleProvider.GetRolesForUser(String username)
於 WebMatrix.WebData.SimpleRoleProvider.GetRolesForUser(String username)
於 System.Web.Security.RolePrincipal.IsInRole(String role)
於 MvcSiteMapProvider.Security.XmlRolesAclModule.<>c__DisplayClass1.<IsAccessibleToUser>b__0(String role)
於 System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
於 MvcSiteMapProvider.Security.XmlRolesAclModule.IsAccessibleToUser(ISiteMap siteMap, ISiteMapNode node)
於 MvcSiteMapProvider.Security.CompositeAclModule.IsAccessibleToUser(ISiteMap siteMap, ISiteMapNode node)
於 MvcSiteMapProvider.SiteMap.IsAccessibleToUser(ISiteMapNode node)
於 MvcSiteMapProvider.RequestCacheableSiteMap.IsAccessibleToUser(ISiteMapNode node)
於 MvcSiteMapProvider.SiteMapNodeSecurityBase.IsAccessibleToUser()
@SnailPJW
SnailPJW / Front-end-Developer-Interview-Questions-TC.md
Created April 1, 2019 00:23 — forked from hanksudo/Front-end-Developer-Interview-Questions-TC.md
Front-end-Developer-Interview-Questions - 前端工程師面試問題集(繁體中文版)

前端工程師面試問題集

@版本 2.0.0

譯注:此翻譯版,主要給不能流利的讀英文的人看,相關專有名詞還是保留原文。翻譯不好地方請協助pull request.

此repository包含了一些前端開發的面試問題,來審查一個有潛力的面試者。這並不是建議你對同一個面試者問上所有的問 (那會花費好幾小時)。從列表中挑幾個題目,應該就夠幫助你審查面試者是否擁有你需要的技能。

Rebecca MurpheyBaseline For Front-End Developers 也是一篇很棒且值得讀的文章在你開始面試之前。

@SnailPJW
SnailPJW / Minimum_Time_Difference.cs
Last active March 4, 2019 02:16
539. Minimum Time Difference
public class Solution {
public int FindMinDifference(IList<string> timePoints) {
List<string[]> arrayList = new List<string[]>();
foreach (string point in timePoints)
{
arrayList.Add(point.Split(':'));
}
bool conversionSuccessful;
int number;