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
Make MacOS Folder Icons |
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
# threelights.blender.py | |
# By Rémino Rem <remino.net> | |
# 2023-11-18 | |
# | |
# This creates a three-light scene set-up in Blender. Works in Blender 4. | |
# | |
# Best run in a blank file, as it will destroy anything in the scene. | |
import bpy | |
import mathutils |
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/sh | |
# unnamedscript | |
unnamedscript_main() { | |
e_args=16 | |
e_no_realpath=17 | |
which realpath 2>&1 > /dev/null \ | |
|| _fatal $e_no_realpath "realpath missing." |
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 last; do true; done | |
echo $last |
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
<!doctype html> | |
<title>Valid HTML5 Document</title> | |
This is a valid HTML5 document. |
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
// Get __filename & __dirname in Node native ES modules | |
import { URL } from 'url' | |
const __filename = new URL('', import.meta.url).pathname | |
const __dirname = new URL('.', import.meta.url).pathname | |
console.log(__filename) | |
console.log(__dirname) |
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/sh | |
# Enregistre l’émission Et cetera sur les ondes de Oui FM CKRH | |
# chaque vendredi soir à 20:00, heure d’Halifax. | |
# | |
# Executer regulièrement via cron : | |
# 59 7 * * 6 ckrhetcget.sh > /dev/null | |
set -e |
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
// Use at your own risk. Will not work for all Japanese addresses. | |
const regex = /^(.+[都道府県])?(.+?[市郡区町村]+)([^0-90-9ー- -]*)([0-90-9]+[丁目番地のー--]*(?:[0-90-9]+[番ー--]?(?:[0-90-9]+号?)?)?)?[\s ー-~-]*(.*)?/ | |
const getMatch = (matches, index) => (matches ? matches[index] : null) || '' | |
const parseJpAddress = (str) => { | |
if (!str || !str.length) return {} | |
const matches = `${str}`.trim().match(regex) |
NewerOlder