Removing Github Commits

By | May 3, 2017

To rewrite history (not usually a good thing to do) you can do the following: git reset –hard <commit hash> git rebase -i HEAD~2 (the 2 goes back 2 commits) git push origin +master refresh github and you should see your commits disappear.

Hello World HTML

By | May 3, 2017

In case you forget how to create the most basic html page ever, here is a reminder:   <html> <header> <title>This is title</title> </header> <body> Hello world </body> </html>  

How do callbacks work?

By | April 14, 2017

Confused about how callbacks work? Check out this really neat example. def say_hello(value, callback): print value callback() def say_name(): print “Fra” say_hello(“ciao”, say_name) Ref: https://bytesforlunch.wordpress.com/2012/03/15/simple-callback-implementation-in-python/

Useful Windows Commands

By | April 3, 2017

Windows + R, then: winver – will show you your windows version. shell:startup – will open explorer to the place where if you place short cuts to batch files, these will auto run on start up. netplwiz – will allow you to remove password on boot.  

Day 6 – Etec Practical Course

By | March 20, 2017

After arriving nice and early at 7:30am, I proceeded to screw all the face plates in, the power sockets and checked my motor control again. We then livened the board and tested the lights, and the sockets and then the motor control. The lights and sockets were fine. The motor control had a few issues.… Read More »