- chrome://about/ - same as chrome://chrome-urls/
- chrome://apps/
- chrome://bookmarks/
- chrome://components/
- chrome://conflicts/
- chrome://discards/
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
/* | |
* Linux, bash, pacman | |
* how to upgrade packages only from specific repository - eg. 'core' | |
* of course you can change 'core' to any other desired ;) | |
*/ | |
pacman -S --needed $(comm -12 <(pacman -Qq | sort) <(pacman -Slq core | sort)) | |
/* | |
* longer description of this command - see: |
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/python | |
# -*- coding: UTF-8 -*- | |
# Szyfr Cezara - przykładowa implementacja | |
# dla zdekodowania zaszyfrowanego tekstu trzeba podać przesunięcie o przeciwnym znaku | |
# np: kodowanie z przesunięciem '7', to dekodowanie - z przesunięciem '-7' | |
# lub kodowanie z przesunięciem '-100', to dekodowanie - z przesunięciem '100' | |
alfabet = 'aAąĄbBcCćĆdDeEęĘfFgGhHiIjJkKlLłŁmMnNńŃoOóÓpPqQrRsSśŚtTuUvVwWxXyYzZźŹżŻ' |
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 | |
# -*- coding: UTF-8 -*- | |
# suppose you want (or have to) change in output string | |
# default thousand separator to custom one (and not your locale flavour) | |
# try e.g. this kind of format string: | |
your_long_number=12345678901234567890 | |
print( f"{your_long_number:26_d}".replace("_", "`") ) |
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
# problem: | |
# VS Code with installed python extension doesn't see python interpreter I want to use | |
# (I've faced it in windows 8.1 with Python 3.7 installed | |
# and minor (older versions) python installations distributed with emacs and msys64) | |
# solution (it worked for me ;) ): | |
# 0. install virtualenv package, eg: | |
pip install virtualenv |
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
#!python3 | |
# -*- coding: utf-8 -*- | |
''' | |
graphqlhello.py - "Hello World" file for Graphene | |
Graphene is GraphQL library for Python | |
see: | |
https://graphql.org/ | |
https://graphene-python.org/ | |
https://docs.graphene-python.org/en/latest/ |
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/python | |
# -*- coding: UTF-8 -*- | |
# Szyfr GaDeRyPoLuKi - przykładowa implementacja | |
# założenie: znaki w kluczu są unikalne - nie muszą to być litery; klucz ma parzystą długość | |
# wymieniane są między sobą parami: klucz[0] <-> klucz[1], ..., klucz[10] <-> klucz[11], itd... | |
# kończy działanie po podaniu pustego tekstu - np po naciśnięciu samego 'Enter' | |
klucz_def:str = 'GADERYPOLUKI' # klucz default / domyślny | |
klucz_we :str ="" |
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
# coding: utf-8 | |
klucz = "gaderypoluki" | |
# tu klucz podany na sztywno - ale można wczytać od usera | |
substytucje = dict(zip(klucz[::2], klucz[1::2])) | |
substytucje.update(zip(klucz[1::2], klucz[::2])) | |
# tworzenie słownika 'w obie strony' na podstawie podanego klucza | |
# pierwsze zip wstawia 'parzyste' znaki jako klucze słownika, a 'nieparzyste' jako wartości | |
# a drugie zip - na odwrót |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
elem.offsetLeft
,elem.offsetTop
,elem.offsetWidth
,elem.offsetHeight
,elem.offsetParent
elem.clientLeft
,elem.clientTop
,elem.clientWidth
,elem.clientHeight
elem.getClientRects()
,elem.getBoundingClientRect()
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
# creating empty objects | |
empty_l = [] # list | |
empty_d = {} # dictionary | |
empty_s1= set() # set | |
# type check method #1 | |
type(empty_l) | |
type(empty_d) | |
type(empty_s1) |
OlderNewer