Brad's Weekend of Coding - Day 1 - Summary

Today I was a bit distracted, as we are looking at renovating our kitchen, so the guy was in taking measurements, and my wife and I went out to look at appliances. Still, though I think i got a lot accomplished:

1) PHP -> gwCodes($filename,$suffix)

   Allows you to generate a sequence of 'codes' for later reuse for whatever purpose you want

Usage:

       
include("../org/geekwisdom/web/gwCodes.lib");
$n=new gwCodes("./codes/test.array",".code");
$e=0;
//To 'make' a code
$code["name"]="50% off";
$code["value"]=50;
$the_code=$n->make_code(json_encode($code));
//$the_code is a unique code that can be consumed later (eg: aCd2


To use the code

$use_code = $n->consume_code('ACd2')
//returns the array for 50% off

}

Note: If the 'special' option 'consumable' is set to 1 ($code["consumable"]=1) the 
code is deleted immediately after being used to prevent r-use

2) Added 'Geek Wisdom logo to the end of AppleSoft Basic Quiz from Grade 11

3) Used gwCOdes from #1 above to REDO the GeekWisdom.org level rotation to store player info and use "Experiance Points (XP)" to calculate level/level name

If you liked this post please consider sharing via your favorite social networks!!

and ..if you like my blogging, video, audio, and programming - please consider becoming a patron and get exclusive access @ Patreon.com/GeekWisdom

Comments

Popular posts from this blog

Programming Rant - Stop the Insanity!! - .NET 7 is not the successor to .NET 4.8

Everything in Moderation...

So I started a Podcast ! - The G33k Dream Team .

Way back then...Apple ][

Diabetes is not caused by eating too much sugar !!!

Buy Local - the online way

You should be able to do that...

Software Tools - Productivity or Distraction?

Child Rights and Confidentiality

ChatGPT and Artificial General Intelligence