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
| # For "How does this Balinese calendar work?" Dinachronicle 4 @ Dinacon 2025 | |
| # Below is a lil python script to calculate your Pawukon birthday from your Gregorian birthday. | |
| # Just run: python pawukon.py yyyy-mm-dd | |
| # If you announce your birthday to the locals and it’s clearly an unlucky day, they may change | |
| # your day to a more auspicious one! | |
| from datetime import datetime, date | |
| class PawukonConverter: | |
| def __init__(self): | |
| # Define the cycles |
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
| #!/bin/bash | |
| PATH=/usr/local/bin:/usr/local/sbin:~/bin:/usr/bin:/bin:/usr/sbin:/sbin | |
| networksetup -setairportpower en0 off |
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
| tell application "Mail" to activate | |
| tell application "System Events" | |
| tell process "Mail" | |
| keystroke "r" using {command down, shift down} | |
| delay 1 | |
| keystroke tab using shift down | |
| keystroke tab using shift down | |
| keystroke "a" using command down | |
| keystroke "x" using command down | |
| keystroke tab using shift down |
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
| //map function | |
| function map(value, start1, stop1, start2, stop2) { | |
| var mappedValue = ((value-start1)/(stop1 - start1))*(stop2-start2)+start2; | |
| return mappedValue; | |
| } |