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
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies" /f | |
reg delete "HKCU\Software\Microsoft\WindowsSelfHost" /f | |
reg delete "HKCU\Software\Policies" /f | |
reg delete "HKLM\Software\Microsoft\Policies" /f | |
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies" /f |
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
theme = "ayu_dark" | |
[editor] | |
true-color = true | |
[editor.statusline] | |
separator = " " | |
mode.normal = "🧬" | |
mode.insert = "📝" | |
mode.select = "🖍️" |
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
Set-PSReadLineOption -PredictionSource HistoryAndPlugin -PredictionViewStyle ListView | |
Set-PSReadlineKeyHandler -Key Tab -Function TabCompleteNext | |
# Install-Module -Name CompletionPredictor -Repository PSGallery | |
Import-Module -Name CompletionPredictor | |
Invoke-Expression (&starship init powershell) |
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
merge-release() { | |
git pull --all | |
TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) | |
git merge $TAG -m "Merge Release $TAG" | |
} |
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
{ | |
"Integer ID": { | |
"scope": "prisma", | |
"prefix": "id", | |
"body": [ | |
"$1_id Int @id @default(autoincrement())", | |
"$0" | |
], | |
"description": "Integer ID" | |
} |
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
; Source: https://superuser.com/questions/207731/configure-debounce-time-in-windows-for-mouse | |
/* | |
** Buggy-Mouse.ahk - Fix a buggy mouse. Stop it from double-clicking when you try to single-click. | |
** | |
** NOTE: Please use this URL when linking to Buggy Mouse: r.secsrv.net/AutoHotkey/Scripts/Buggy-Mouse | |
** | |
** Updated: Thu, Nov 1, 2012 --- 11/1/12, 10:19:19am EDT | |
** Location: r.secsrv.net/AutoHotkey/Scripts/Buggy-Mouse | |
** |
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
bind TAB:menu-complete | |
bind "\C-H":shell-backward-kill-word | |
bind "\e[3;5~":shell-kill-word |
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 Convert-PdfToGif($pdfpath) { | |
$pdf = Get-Item $pdfpath | |
$name = $pdf.BaseName | |
pdftoppm -png "$($pdf.FullName)" $name | |
$pngs = Get-ChildItem "$name-*.png" | |
$num = [math]::Ceiling([math]::Log10($pngs.Length + 1)) |
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
// BFS | |
class Node { | |
int row; | |
int col; | |
int step; | |
Node(int row, int col, int step) { | |
this.row = row; | |
this.col = col; | |
this.step = step; |
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
class Solution { | |
public List<List<String>> groupAnagrams(String[] strs) { | |
if (strs.length == 0) return new ArrayList(); | |
Map<String, List> ans = new HashMap<String, List>(); | |
for (String s : strs) { | |
char[] ca = s.toCharArray(); | |
Arrays.sort(ca); | |
String key = String.valueOf(ca); | |
if (!ans.containsKey(key)) ans.put(key, new ArrayList()); | |
ans.get(key).add(s); |
NewerOlder