r/PowerShell • • Sep 18 '19

Parenting Through PowerShell

My 8 year old decided to pretend to be sick so he would get sent home from school the other day. So after we finished all the work the teach gave us, I decided to make him some extra work. Since they are learning double digit addition I wrote a quick script that will generate a page with 25 problems on it. I kept printing him off new sheets until the end of the regular school day.

I thought I'd share it in case anyone else has a 2nd grader who likes to play hooky. https://www.dowst.dev/homework-double-digit-addition-without-carrying/

Does anyone else have any examples of parenting through PowerShell?

229 Upvotes

67 comments sorted by

View all comments

3

u/insufficient_funds Sep 18 '19 edited Sep 18 '19

so I dropped your script into ISE and got a number of errors. Not sure if I copied it out wrong or what though... I think some formatting got screwey and is messing with it.

edit: i changed the $bodytop = @" to start the '.xl65' on a new line and that looks to have fixed it.

5

u/mdowst Sep 18 '19

Thanks for the heads up. Looks like the plugin I'm using didn't like the HTML code inside of the code block. I switched it to a standard code block without the fancy color coding, and it is working now.

3

u/tkecherson Sep 18 '19

There we go; I was trying to tweak what was there in the fancy plugin with my (extrememly rudimentary) knowledge of HTML/CSS and was failing miserably. Thanks for the edit!