Skip to content

Instantly share code, notes, and snippets.

View joankaradimov's full-sized avatar

Joan Karadimov joankaradimov

View GitHub Profile
(function( $ ) {
$.fn.simulateDragDrop = function(options) {
return this.each(function() {
new $.simulateDragDrop(this, options);
});
};
$.simulateDragDrop = function(elem, options) {
this.options = options;
this.simulateEvent(elem, options);
};
@joankaradimov
joankaradimov / main.cpp
Created December 13, 2022 16:35
Python C API Example
#include <Python.h>
static PyObject* increment(PyObject* self, PyObject* args)
{
double value, unused;
if (!PyArg_ParseTuple(args, "dd", &value, &unused))
return NULL;
value += 42;