-
開啟 Windows PowerShell
-
將
IE
函式加入到$PROFILE
之中[System.IO.Directory]::CreateDirectory([System.IO.Path]::GetDirectoryName($PROFILE)) notepad $PROFILE
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 namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
if ($host.Name -eq 'ConsoleHost') | |
{ | |
Import-Module PSReadLine | |
} | |
Set-PSReadLineOption -PredictionSource History | |
Set-PSReadLineOption -PredictionViewStyle ListView |
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 class DateOnlyConverter : JsonConverter<DateOnly> | |
{ | |
private readonly string serializationFormat; | |
public DateOnlyConverter() : this(null) { } | |
public DateOnlyConverter(string? serializationFormat) | |
{ | |
this.serializationFormat = serializationFormat ?? "yyyy-MM-dd"; | |
} |
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 class TimeOnlyConverter : JsonConverter<TimeOnly> | |
{ | |
private readonly string serializationFormat; | |
public TimeOnlyConverter() : this(null) { } | |
public TimeOnlyConverter(string? serializationFormat) | |
{ | |
this.serializationFormat = serializationFormat ?? "HH:mm:ss.fff"; | |
} |
Git 新手上路 AMA 實作練習腳本
- Windows
- Mac
編號 | 繁體字 | Unicode | JavaScript | 簡體字 | Unicode | JavaScript |
---|---|---|---|---|---|---|
1 | 內 | U+5167 |
\u{5167} |
内 | U+5185 |
\u{5185} |
2 | 勻 | U+52FB |
\u{52FB} |
匀 | U+5300 |
\u{5300} |
3 | 弔 | U+5F14 |
\u{5F14} |
吊 | U+540A |
\u{540A} |
4 | 戶 | U+6236 |
\u{6236} |
户 | U+6237 |
\u{6237} |
5 | 冊 | U+518A |
\u{518A} |
册 | U+518C |
\u{518C} |
6 | 朮 | U+672E |
\u{672E} |
术 | U+672F |
\u{672F} |
7 | 氾 | U+6C3E |
\u{6C3E} |
泛 | U+6CDB |
\u{6CDB} |
8 | 丟 | U+4E1F |
\u{4E1F} |
丢 | U+4E22 |
\u{4E22} |
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.Web; | |
using System.Web.Http; | |
using System.Web.Mvc; | |
using System.Web.Optimization; | |
using System.Web.Routing; | |
namespace WebApiSample |
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
// ==UserScript== | |
// @name 中、英文網頁切換的瀏覽器書籤小工具 | |
// @namespace https://blog.miniasp.com/ | |
// @version 0.1 | |
// @description 按下 Alt+s 就會自動將目前網頁切換至中文或英文版 | |
// @license MIT | |
// @homepage https://blog.miniasp.com/ | |
// @homepageURL https://blog.miniasp.com/ | |
// @website https://www.facebook.com/will.fans | |
// @source https://github.com/miniasp/en-zh-bookmarklet |
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
{ | |
"final_space": true, | |
"console_title": true, | |
"console_title_style": "folder", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"horizontal_offset": 0, | |
"vertical_offset": 0, |
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
# 移除兩個不實用的 Cmdlet Aliases | |
If (Test-Path Alias:curl) {Remove-Item Alias:curl} | |
If (Test-Path Alias:wget) {Remove-Item Alias:wget} | |
# 快速開啟 c:\windows\system32\drivers\etc\hosts 檔案 | |
function hosts { notepad c:\windows\system32\drivers\etc\hosts } | |
# 快速產生一組亂數密碼 (預設會產生 10 個字元的密碼) | |
function New-Password { | |
<# |