This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ctypes as c | |
class PyObject_HEAD(c.Structure): | |
_fields_ = [ | |
('HEAD', c.c_ubyte * (object.__basicsize__ - | |
c.sizeof(c.c_void_p))), | |
('ob_type', c.c_void_p) | |
] | |
_get_dict = c.pythonapi._PyObject_GetDictPtr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def stringify_nodes(data): | |
if isinstance(data, list): | |
return [stringify_nodes(x) for x in data] | |
elif isinstance(data, dict): | |
dkeys = list(data.keys()) | |
for i,k in enumerate(dkeys): | |
try: | |
dkeys[i] = k.decode() | |
except: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
████████╗██████╗ █████╗ ███╗ ██╗███████╗██╗ █████╗ ████████╗███████╗ | |
╚══██╔══╝██╔══██╗██╔══██╗████╗ ██║██╔════╝██║ ██╔══██╗╚══██╔══╝██╔════╝ | |
██║ ██████╔╝███████║██╔██╗ ██║███████╗██║ ███████║ ██║ █████╗ | |
██║ ██╔══██╗██╔══██║██║╚██╗██║╚════██║██║ ██╔══██║ ██║ ██╔══╝ | |
██║ ██║ ██║██║ ██║██║ ╚████║███████║███████╗██║ ██║ ██║ ███████╗ | |
╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝ | |
UltrafunkAmsterdam |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class IBAN: | |
def __init__(self, iban: str): | |
if len(iban) < 15: | |
raise ValueError('not a valid IBAN (too short or not in format CC00BANK01234567). got: {}'.format(iban)) | |
self._iban = iban | |
self.get() | |
@staticmethod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
com.unity3d.player.NativeLoader#load(Ljava/lang/String;)Z@0xc44a41e0 | |
com.unity3d.player.NativeLoader#unload()Z@0xc44a4420 | |
com.unity3d.player.UnityPlayer#initJni(Landroid/content/Context;)V@0xb890ad50 | |
com.unity3d.player.UnityPlayer#nativeDone()V@0xb890adbc | |
com.unity3d.player.UnityPlayer#nativePause()Z@0xb890adfc | |
com.unity3d.player.UnityPlayer#nativeRecreateGfxState(ILandroid/view/Surface;)V@0xb890af80 | |
com.unity3d.player.UnityPlayer#nativeRender()Z@0xb890afdc | |
com.unity3d.player.UnityPlayer#nativeResume()V@0xb890ae50 | |
com.unity3d.player.UnityPlayer#nativeLowMemory()V@0xb890aeb4 | |
com.unity3d.player.UnityPlayer#nativeFocusChanged(Z)V@0xb890aef8 |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
finalize | |
<init> | |
<init> | |
<init> | |
finalize | |
createFromParcel | |
finalize | |
newArray | |
toString | |
newArray |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import functools | |
import time | |
__all__ = ['Retry'] | |
class Retry(object): | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Controller: | |
import asyncio | |
import threading | |
""" | |
create an threaded environment with a asynchronous event loop | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# *_* coding: utf-8 *_* | |
""" | |
module docstring - short summary | |
If the description is long, the first line should be a short summary that makes sense on its own, | |
separated from the rest by a newline | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<scheme name="GitHub 3 copy" version="142" parent_scheme="Default"> | |
<metaInfo> | |
<property name="created">2018-10-17T08:02:22</property> | |
<property name="ide">Python</property> | |
<property name="ideVersion">2018.1.4.0.0</property> | |
<property name="modified">2018-10-17T08:02:37</property> | |
<property name="originalScheme">GitHub 3 copy</property> | |
</metaInfo> | |
<colors> | |
<option name="CARET_ROW_COLOR" value="fffbdd" /> |