Skip to content

Instantly share code, notes, and snippets.

View schnoddelbotz's full-sized avatar
💭
❤️ 🌱 fresh ideas

Jan Hacker schnoddelbotz

💭
❤️ 🌱 fresh ideas
View GitHub Profile
@schnoddelbotz
schnoddelbotz / zahlenstrahl.php
Created November 9, 2023 19:41
Zahlenstrahl (number line) & Brüche (fractions)
<?php
require('fpdf.php'); // from fpdf.org
function BruchZahlenStrahl($pdf, $yOff) {
$yBase = 2;
$lnX1 = 20;
$lnX2 = 200;
$lineLength = $lnX2 - $lnX1;
$lnY = $yOff * 14 + $yBase;
// Ada as rotating planet. A hack. Maybe wrong approach etc.
//EXAMPLE OF SPHERE
//Files with predefined colors and textures
#include "colors.inc"
#include "glass.inc"
#include "golds.inc"
#include "metals.inc"
#include "stones.inc"
@schnoddelbotz
schnoddelbotz / README.md
Last active June 20, 2022 19:21
#LINUX #FORTUNE with Leisure Suit Larry 1 #Cabaret #JOKES - Use at your own risk - from: https://gamefaqs.gamespot.com/pc/917513-leisure-suit-larry-1-in-the-land-of-the-lounge-lizards/faqs/36594/cabaret-jokes

#Fortune have you must

/opt/homebrew/opt/fortune/share/games/fortunes

On mac.

Put the lsl1.txt without .txt extion there.

Obviously: brew install fortune first.

@schnoddelbotz
schnoddelbotz / call-x.pl
Last active August 29, 2015 14:08
Place a call from terminal using your iPhone - by providing contact's (partial) name (works for local/OnMyMac Contacts.app/AddressBook records only)
#!/usr/bin/perl
# call-x
# no beauty but some joy:
# use osx address book from terminal for (i)phone dialing purposes.
#
# usage:
# $ call-x your-pal's-name...or-partial-number...
#
# In response to the wonderful link max shared with me: