This file contains 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 kotlinx.cinterop.* | |
import gtk3.* | |
// Note that all callback parameters must be primitive types or nullable C pointers. | |
fun <F : CFunction<*>> g_signal_connect(obj: CPointer<*>, actionName: String, | |
action: CPointer<F>, data: gpointer? = null, connect_flags: GConnectFlags = 0u) { | |
g_signal_connect_data(obj.reinterpret(), actionName, action.reinterpret(), | |
data = data, destroy_data = null, connect_flags = connect_flags) | |
} |
This file contains 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 python | |
import datetime | |
import logging | |
import requests | |
from plumbum import cli | |
from plumbum import local | |
from requests.auth import HTTPBasicAuth | |
logging.basicConfig(format="%(asctime)s %(message)s", datefmt="%Y-%m-%d %H:%M:%S") |