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
(function() { | |
const table = document.querySelector('.wikitable'); // Adjust the selector if needed | |
if (!table) { | |
console.log('Table not found.'); | |
return; | |
} | |
const rows = table.querySelectorAll('tr'); | |
const data = Array.from(rows).slice(1).map(row => { | |
const cells = row.querySelectorAll('td'); |
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
function format(text) { | |
const emojimap = { | |
"❤️": "love", | |
"😂": "laughing", | |
"😍": "awesome", | |
"👍": "great", | |
"😭": "crying", | |
"😊": "smiling", | |
"😘": "kiss", | |
"🔥": "fire", |
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
[ | |
"Show us the weirdest thing you have in the room with you right now.", | |
"There is a free, round-trip shuttle to Mars. The catch: it will take one year of your life to go, visit, and come back. Are you in?", | |
"What is your least favorite thing about technology?", | |
"What superpower would you most want?", | |
"What food is best with cheese?", | |
"Would you go in the mother-ship with aliens if they landed on Earth tomorrow?", | |
"Would you join a community in space if it was permanent?", | |
"Would you rather live 100 years in the past or 100 years in the future?", | |
"You are the best criminal mastermind in the world. What crime would you commit if you knew you would get away with it?", |
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
const parties = [ | |
'Herr Freitag', | |
'Frau Samstag', | |
'WG' | |
] | |
console.log(parties.length) | |
const START_WEEK = 6 |
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
const schema = { | |
"$schema": "https://json-schema.org/draft/2020-12/schema", | |
"$id": "https://example.com/advent.json", | |
"title": "Advent Calendar", | |
"description": "A calendar for the Advent season", | |
"type": "object", | |
"properties": { | |
"title": { | |
"description": "The title of the calendar", | |
"type": "string" |
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
function showHUD(text, icon, duration = 3) { | |
const hudConfig = { | |
BTTActionHUDHideWhenOtherHUDAppears: true, | |
BTTActionHUDDetail: text, | |
BTTIconConfigSFSymbolName: icon, | |
BTTActionHUDDuration: duration, | |
BTTActionHUDSlideDirection: 0, | |
BTTIconConfigImageHeight: 50, | |
BTTActionHUDTitle: "", | |
BTTIconConfigIconType: 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
display dialog "Free inactive RAM?" buttons {"Cancel", "OK"} with icon 2 with title "Freeing RAM" default button 2 | |
set buttonAnswer to the button returned of the resul | |
if buttonAnswer is "ОК" then | |
say "Freeing RAM. Wait please." | |
tell application "Terminal" | |
do shell script "purge" | |
quit | |
end tell | |
say "Done!" | |
end if |
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
function transform(clip) { | |
const pathRegex = /^[a-z]+:\/\/[^:\/]+(:[0-9]+)?\/(.*?)(\/[0-9]+)?(\?.*)?$/ | |
const uriPath = clip.text.replace(pathRegex, '$2'); | |
const spotifyUri = "spotify:" + uriPath.replaceAll('/', ':') | |
return spotifyUri; | |
} |
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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: blue; icon-glyph: magic; | |
/** | |
* Keychain key for GitLab url and personal access token. | |
*/ | |
const GITLAB_ACCESS_TOKEN_KEY = "gitlab.widget.accessToken"; | |
const GITLAB_URL_KEY = "gitlab.widget.url"; |
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
No chance. | |
Odds aren't good... | |
Not now. | |
Ask again later. | |
Don’t count on it | |
Outlook not so good | |
My sources say no | |
Very doubtful | |
My reply is no | |
Possibly maybe! |
NewerOlder