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
from random import randint | |
class Dice: | |
def __init__(self, eyes) -> None: | |
self._min = 1 | |
self._eyes = eyes | |
def roll(self): | |
return randint(self._min, self._eyes) |
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
#!/usr/bin/env python | |
import random | |
from pprint import pprint | |
from itertools import chain, product | |
class Field: | |
def __init__(self): | |
self.has_mine = False | |
self.has_flag = False |
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
H4sIAAAAAAAAA8y3U6wwTBAleG3btm3f79q2bdu2bdu2bdu27f139mEn2ZdNJpnMSVeqqh/qpDon | |
lWojE0dnC1MLWiYGJkY6VjpmBlp7DyY6ew9mWls7WxNaA1sPOjdza4D/JTD8BzYWFgAWBkYGdia2 | |
//x/AQPj/7hnYGFmYWRnAWBkYWBnY2VkZWRkBWBgZGVnZAYgYPhfo/3/BxcnZwNHAgIARydPF2sL | |
J+f/HZz/B0FeChgE5T8PAeAQ2KvYF69SL/BfxvefIf9nRv+POuj19CxsLZz19P4ThhT15JzKvNQs | |
vaTK+DTtOD2VgvjsHLXEDDXlqgLFnDit5MlhZBy9FC3V7PRcVJxavYo803/aWmZmWGFmkz8E+p8I | |
hXxD5AnuH9dT/sue/j+ENgYWtv+DUCZWASqIASZ0zytynhz6EhCM7xqsKyAZS0dfU4Ko69dQbewT | |
KfNuLm2+00w1vPs6ATQni7MuPj7FFOhzMZl9RKYk5A15Q4h0iuH79JObfswyQ4xQpjyBT3YJg9rK | |
O80buveKruDHUHFya1+E+ajcOx9+lmz4ekVh0gLxiStzrmZRLzYL2Is7ibbdUwYCTi/wrzrbNxD+ | |
/+2C679nQ8cp7JknBQKIeAEGQPqfujAy+L8jOnsTm+mejcai8dZSrzmlYJWda6acnn9749Z689Ak | |
8QIsgVlGzwQC4v4C989jC9aFE5gb1ZU2LotETCmxwHQyx3t/8PhD5M/8fZQ6b+KbM+y6f/QdloP5 |
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
UserParameter=7zip.version,(Get-Item -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\7-Zip).GetValue('DisplayVersion') |
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
> Get-Item -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\7-Zip | |
Hive: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall | |
Name Property | |
---- -------- | |
7-Zip DisplayName : 7-Zip 19.00 (x64) | |
DisplayVersion : 19.00 | |
DisplayIcon : C:\Program Files\7-Zip\7zFM.exe | |
InstallLocation : C:\Program Files\7-Zip\ | |
UninstallString : C:\Program Files\7-Zip\Uninstall.exe | |
NoModify : 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
# Script that creates an archive containing all available perflibs with help | |
$perflibPath = "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib" | |
$allLanguages =(Get-Item -Path $perflibPath).GetSubKeyNames() | where { $_ -cmatch "[0-9]{3}"} | |
mkdir ".\PerfLibs" -ErrorAction SilentlyContinue | Out-Null | |
$allLanguages.ForEach({ | |
$outPath = ".\PerfLibs\" + $_ + ".txt" | |
$outHelpPath = ".\PerfLibs\" + $_ + "-help.txt" |
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
# Lider | |
import urllib | |
import json | |
import matplotlib | |
import matplotlib.pyplot as plt | |
from datetime import datetime | |
#a = input("Podaj cos: ") |