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

There's a bug in the keyboard driver...(dear liza)

Password Security Challenge - Last Pass & 1Password

What is Multi Factor Authentication (MFA / 2FA)?? and Why does it matter??

About the Book - Geek Wisdom

The Programmer's Dilemma

Despite of how it looks - I'm not part of a coup d'etat

Brad's Weekend of Coding - Day 1 - Summary

The Most Dangerous Software on the Internet!

Eco Cycle Planning Resources, Toastmasters & Unicorns

IT Security Myths & Legends