This file contains hidden or 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
| #draw_plot( | |
| (x => 1/x, -2.5, 0, -10, 10, (0,)), | |
| (x => 1/x, 0, 2.5, -10, 10, (0,)) | |
| ) |
This file contains hidden or 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
| let _to_add = document.querySelectorAll('.js-part-data'); | |
| function handle(part_index) { | |
| let _part = _to_add[part_index]; | |
| console.log(part_index, _part); | |
| let _quantity = _part.getAttribute('data-quantity'); | |
| _part.click(); | |
| setTimeout(() => { | |
| document.querySelector('a[href="#tab_lostparts"]').click(); | |
| setTimeout(() => { |
Run in bash (linux) or Git Bash (Windows)
Remove all workflows:
gh run list --json databaseId --jq ".[].databaseId" --limit 1000 | xargs -n1 gh run deleteRemove specific workflow:
This file contains hidden or 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
| // The project function defines how your document looks. | |
| // It takes your content and some metadata and formats it. | |
| // Go ahead and customize it to your liking! | |
| // Save heading and body font families in variables. | |
| #let _body-font = "Linux Libertine" | |
| // #let _body-font = "PT Serif" | |
| #let _sans-font = "HK Grotesk" | |
| // let _sans-font = "Inconsolata" | |
| // #let _sans-font = "Liberation Sans" |
This file contains hidden or 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 PIL import Image | |
| import os | |
| FOLDER_PATH = "output3" | |
| for filename in os.listdir(FOLDER_PATH): | |
| img = Image.open(os.path.join(FOLDER_PATH, filename), 'r') | |
| has_alpha = (img.mode == 'RGBA') | |
| print(f"Handling {filename}...") |
Here is a workaround for pyupgrade's lack of --check option (one of many related issues) and folder scanning (related issue).
find . -type f -name "*.py" -exec pyupgrade --py38-plus {} \;
test $(git status --porcelain | wc -l) = 0You can use this in any CI platform like GitHub Actions
- Перейдите на сайт почтового сервиса: e.mail.ru
- Откройте консоль Firefox одним из следующих способов:
- Ctrl+Shift+k (Mac: Command+Alt+k)
- F12 > вкладка
Console - (Строка меню, нажмите Alt) Инструменты > Инструменты браузера > Web Developer Tools > вкладка
Console
- Скопируйте следующую строчку и вставьте её в открывшуюся консоль Firefox:
This file contains hidden or 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
| var layout = document.getElementById("app").getElementsByClassName("grid")[0]; | |
| var cards = layout.getElementsByClassName("card"); | |
| function next() { | |
| var found = false; | |
| for (var i = 0; i < cards.length; ++i) { | |
| for (var j = 0; j < i && !found; ++j) { | |
| if ( | |
| cards[i].getElementsByClassName("card__img")[0].src == cards[j].getElementsByClassName("card__img")[0].src && | |
| !cards[i].classList.contains("card--flipped") && !cards[j].classList.contains("card--flipped") |
NewerOlder