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
; Tested with NEJE 3 | |
G21 ; Set units to millimeters | |
G90 ; Set positioning to absolute coordinates | |
G00 X2 Y8.2 | |
G02 X2 Y11.8 I0. J1.8 | |
G02 X2 Y8.2 I0. J-1.8 | |
G00 X11.5 Y16.2 |
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
// Code below looks a bit complicated for such a simple action | |
// It's purpose is to add a guest to an event AND send email notification to a new guest. | |
// If email notification is optional, you can use simple apporach with CalendarApp | |
// Trigger type for the script should be "On Form submit" | |
// If it's your primary google calendar, use your email as ID | |
const calendarId = 'john.smith@gmail.com' | |
// How to get event ID: | |
// 1. Open event editor in Calendar Web UI |
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
import os | |
from pathlib import Path | |
from kaggle_secrets import UserSecretsClient | |
github_username='<USERNAME>' | |
github_repository='<REPOSITORY>' | |
# Note: Key should be already configured at Github side and | |
# added as a secret, excluding lines "BEGIN .. KEY" and "END .. KEY" to your notebook | |
private_key_content = UserSecretsClient().get_secret("GITHUB_SSH_KEY") |
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
... | |
/* Tested with Gradle 6.3 */ | |
tasks.register("depsize") { | |
description = 'Prints dependencies for "default" configuration' | |
doLast() { | |
listConfigurationDependencies(configurations.default) | |
} | |
} |
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
; Tested with NEJE 3 and 4mm plywood from the Skywalker Mini set | |
G21 ; Set units to millimeters | |
G90 ; Set positioning to absolute coordinates | |
G00 X1 Y6.2 | |
G02 X1 Y7.8 I0. J0.8 | |
G02 X1 Y6.2 I0. J-0.8 | |
G00 X9 Y12.2 |
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 telethon.sync import TelegramClient | |
from telethon.tl.types import MessageMediaWebPage | |
# Can be optained at https://my.telegram.org/apps | |
api_id = <int value> | |
api_hash = <str value> | |
session_name = 'telegram_session' | |
def main(): |
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
#!/bin/bash | |
# Batch convert provided heic photos to jpeg | |
hash heif-convert 2>/dev/null || { printf >&2 "heif-convert is required.\nTry installing it with: \nsudo apt install libheif-examples\n"; exit 1; } | |
if [ $# -eq 0 ] ; then | |
echo >&2 "usage: heic-tojpg.sh <filename1.heic> <filename2.heic> ..." | |
exit 1; | |
fi |