Skip to content

Instantly share code, notes, and snippets.

View vanlummelhuizen's full-sized avatar

Micha Hulsbosch vanlummelhuizen

  • Radboud University
  • Nijmegen
View GitHub Profile
@vanlummelhuizen
vanlummelhuizen / index.html
Created May 9, 2022 07:56
Pyodide with upload file form
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">window.languagePluginUrl = 'https://pyodide-cdn2.iodide.io/v0.15.0/full/';</script>
<script src="https://pyodide-cdn2.iodide.io/v0.15.0/full/pyodide.js"></script>
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<!--
This piece of code uses jquery-resizable (https://github.com/RickStrahl/jquery-resizable) by Rick Strahl (https://github.com/RickStrahl).
I also used information from https://www.bootply.com/BZQYq01ABC.
-->
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
@vanlummelhuizen
vanlummelhuizen / class_decorator_with_method_overriding.py
Created July 26, 2018 14:34
Class decorator with method overriding
def my_class_decorator(cls):
class NewClass(cls):
def my_method(self, *args, **kwargs):
print("I am the extended my_method.")
super(NewClass, self).my_method(*args, **kwargs)
print("I am the extended my_method, again.")
return NewClass
@my_class_decorator
class MyClass: