Skip to content

Instantly share code, notes, and snippets.

@fizmat
fizmat / disjoint-wordle-problem.py
Last active August 19, 2022 18:34 — forked from AnasImloul/disjoint-wordle-problem.py
A Python implementation to the Matt Parker's Wordle puzzle
import itertools
from string import ascii_lowercase
from typing import Iterable
import numpy as np
import pandas as pd
import pathos
import scipy
from numba import njit
from numpy.typing import NDArray
@fizmat
fizmat / test.ps
Created January 1, 2018 08:42
Choco fails to uninstall telegram
PS C:\Windows\system32> $packageSearch = "Telegram Desktop*"
PS C:\Windows\system32> Get-ItemProperty -Path @( 'HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*',
>> 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*',
>> 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*' ) `
>> -ErrorAction:SilentlyContinue `
>> | Where-Object { $_.DisplayName -like $packageSearch } `
>>
Get-ItemProperty : Specified cast is not valid.
At line:1 char:1
+ Get-ItemProperty -Path @( 'HKLM:\Software\Wow6432Node\Microsoft\Windo ...