Run in bash (linux) or Git Bash (Windows)
Remove all workflows:
gh run list --json databaseId --jq ".[].databaseId" --limit 1000 | xargs -n1 gh run delete
Remove specific workflow:
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 delete
Remove specific workflow:
// 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" |
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) = 0
You can use this in any CI platform like GitHub Actions
Console
Console
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") |
var name = "Name Surname"; | |
function update() { | |
for (let post of document.querySelectorAll("#discussion-topics > li")) { | |
if (post.querySelector(".topic > .post-container > .post > .post-header > .post-info > a.str-click-name-js > strong").innerText == name) { | |
console.log(post.querySelector(".topic > .post-container > .post > .post-content .post-body > a").href); | |
} | |
post.remove(); | |
} |
set submodule_path=%1 | |
git submodule deinit -f "%submodule_path%" | |
rmdir /S /Q ".git/modules/%submodule_path%" | |
git rm -f "%submodule_path%" |
// These are values for the end result width and height (in pixels) of our image | |
// | |
// Common values: | |
// Vk.com max photo size: 2560 x 2160 | |
var target_width = 1920; | |
var target_height = 1080; | |
// ======================================================================================== |