Eva(Tzuni) HsiehUse getattr() to get attributes/methods dynamicallyI have a handy script which helps me to handle a lot of things, and the structure looks like this:Jan 25, 2019Jan 25, 2019
Eva(Tzuni) HsiehUse Python to do Switch CaseThe switch statement can be very useful sometimes, and it is pretty easy to handle multiple conditions instead of writing a lot of if…Jan 16, 2019Jan 16, 2019
Eva(Tzuni) HsiehGo — append/prepend item into sliceIn Go, you can use append to insert the item into slice very easily by using function append.Jan 16, 2019Jan 16, 2019
Eva(Tzuni) HsiehOptimize Python with CythonThere are may ways to make your Python code faster, using Cython is one of them. If you need to optimize your Python code, especially for…Jan 16, 2019Jan 16, 2019
Eva(Tzuni) HsiehGit commit with gitpython and SSH keyUsing Python to commit files to Git is easy, but having a fully CI/CD automation process to setup Git SSH for the Python script is not so…Jan 5, 20194Jan 5, 20194