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
// Consider using BOSL2 instead | |
module rounded_extrude(h, r, num = $fn ? $fn : 8) { | |
function absr() = abs(r); | |
module slicer(i = 1) { | |
function interval() = absr() / num; | |
function cal_offset(idx) | |
= (-absr() / r) * (absr() - sqrt(pow(r, 2) - pow((idx * interval() - absr()), 2))); |
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
#!/usr/bin/env python3 | |
# tmux required | |
ID_PLAYER = 'alice' # change this to your idle player name | |
TMUX_SESSION = 'minecraft' | |
LEAP = 320 # gap between each loop. optimal for JourneyMap | |
STEP = 4 # increase this value if you paid for a super fast cpu | |
# region = [ 2 * IterX * LEAP, 2 * IterY * LEAP ] |
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
#/usr/local/bin/reboot-required.sh | |
# Usage: | |
# if $(/usr/local/bin/reboot-required.sh); then | |
# echo "reboot required" | |
# else | |
# echo "reboot not required" | |
# fi | |
#!/bin/sh | |
PATH=/usr/bin |
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
#!/usr/bin/env zsh | |
#set -o xtrace | |
SAVE_IFS="${IFS}" | |
SAVE_XZ_OPT="${XZ_OPT}" | |
#XZ_OPT='-9 -T4' | |
IFS=$(echo -en "\n\b") |
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
#!/usr/bin/env bash | |
FORCE=0 | |
while getopts ":f" flag | |
do | |
case "${flag}" in | |
f) | |
echo "Ignoring $OPTARG" | |
FORCE=1 | |
;; |