top of page
  • Writer: VC Healy
    VC Healy
  • Dec 16, 2020
  • 1 min read

Whilst going through a course by @coryalthoff I have done a little updating to his war.py code.


Bringing it up to date with f strings and tidying up the code to be easier to read whilst giving a nice playing experience.



Link to original is in description of my code on GitHub.

And also Here




 
 
  • Writer: VC Healy
    VC Healy
  • Dec 14, 2020
  • 1 min read

Anyone that has been using VS Code will have noticed that some of the right click options do not have a keybinding. That gets a bit annoying repeatedly 'right-click' and finding the option wanted.


One such item is 'Run Python in terminal'


When writing code and wanting to test that a user input will accept or decline said input running the code in terminal is needed and there is no key binding by default for this option.


In VS Code, hold down CTRL and press K then S and the key binding list will appear.

If changing a known command, type the name of the command into the search bar at the top to filter the list. double click on the entry, hold the new key binding, release and press enter.


Remember, try not to use a key binding already in use. That will cause two commands to action when pressing that keybinding.

 
 

Updated: Dec 8, 2020

I have been testing out a few linux distros, on a duel boot laptop. It was been a bit painful at first as Windows 10 kept changing the bios boot sequence put itself first. Even will all the bells n whistles that was supposed to stop this. I can only think it was because of installing different distros.


The biggest pain was that Windows was block the break in keystrokes. So advanced startup was required but it had moved from I first knew it to be. Thanks m$! It was a bit of button pressing to get there. My solution, write a little script to stop all the repetitive pain.


A little batch file to kick it off with Python doing the lifting. It didn't stop Windows shouting 'Me First! but at least it meant I could quickly get back into the bios when Windows stepped in front of the distro I was testing.




 
 

© 2020 by Vincent Healy. Proudly created with Wix.com

bottom of page