Skip to content

Instantly share code, notes, and snippets.

@eldipa
eldipa / foo.py
Last active March 6, 2022 12:18
Minimal example of how to load plugins in Python. `load_plugin_bad.py` does not support invoking subprocess of part of the plugins while `load_plugin_workaround.py` it does.
# Save this file into plugins/foo.py
class Foo:
@classmethod
def sayhi(cls):
print("Hi!")
/*
FUSE: Filesystem in Userspace
Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu>
This program can be distributed under the terms of the GNU GPLv2.
See the file COPYING.
*/
/** @file
*
@eldipa
eldipa / LICENSE.md
Last active August 6, 2017 03:58
Mindcraft

Copyright 2017 Di Paola Martin

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all