Skip to content

Instantly share code, notes, and snippets.

View eda-ricercatore's full-sized avatar
🎯
Focusing... Publish, publish, publish!!!

Zhiyang Ong eda-ricercatore

🎯
Focusing... Publish, publish, publish!!!
View GitHub Profile
@eda-ricercatore
eda-ricercatore / analysis.draft.md
Created December 9, 2021 20:58 — forked from MattPD/analysis.draft.md
Program Analysis Resources (WIP draft)
@eda-ricercatore
eda-ricercatore / analysis.draft.md
Created December 9, 2021 20:57 — forked from andreypopp/analysis.draft.md
Program Analysis Resources (WIP draft)

Add the following clause to the MIT License, when I include them in my projects.

"The Software shall be used for Good, not Evil."

This quote from Mr. Douglas Crockford was first added to the MIT License by himself for his JSMin software in 2002.

Reference:

  • Wikipedia contributors, "Douglas Crockford," in Wikipedia, The Free Encyclopedia: American computer programmers, Wikimedia Foundation, San Francisco, CA, February 3, 2014. Available online from Wikipedia, The Free Encyclopedia: Data serialization formats at: https://en.wikipedia.org/wiki/Douglas_Crockford; February 9, 2014 was the last access date.
@eda-ricercatore
eda-ricercatore / switch_statement_examples.py
Last active June 27, 2020 06:18
Trying out solutions from [Sceenivasan, 2017] to implement switch statements in Python 3.x. See source code for the reference.
#!/usr/local/bin/python3
"""
This is written by Zhiyang Ong to try out Solutions 1-4
from [Sceenivasan, 2017].
Reference for Solutions 1, 2, 3, and 4 [Sceenivasan, 2017]:
Sreeram Sceenivasan, "How to implement a switch-case statement
in Python: No in-built switch statement here," from JAXenter.com,
Software {\rm \&}\ Support Media {GmbH}, Frankfurt, Germany,
@eda-ricercatore
eda-ricercatore / switch_statement_examples.py
Created June 27, 2020 06:05
Trying out solutions from [Sceenivasan, 2017] to implement switch statements in Python 3.x.
#!/usr/local/bin/python3
"""
This is written by Zhiyang Ong to try out Solutions 1-4
from [Sceenivasan, 2017].
Reference for Solutions 1, 2, 3, and 4 [Sceenivasan, 2017]:
Sreeram Sceenivasan, "How to implement a switch-case statement
in Python: No in-built switch statement here," from JAXenter.com,
Software {\rm \&}\ Support Media {GmbH}, Frankfurt, Germany,