Skip to content

Instantly share code, notes, and snippets.

Outputs:

NoLeft
Leftmost (Start (0, 4))
Leftmost (Start (1, 5))
Leftmost (Start (1, 5))
Leftmost (Start (1, 7))
### Keybase proof
I hereby claim:
* I am nike4613 on github.
* I am danike (https://keybase.io/danike) on keybase.
* I have a public key ASAzV4Cp5pEzY9beW2h8WXMPU-G5W_Tt9Lo96mpGKESkUAo
To claim this, I am signing this object:
@nike4613
nike4613 / ctype_async_raise.py
Created January 6, 2018 03:58 — forked from liuw/ctype_async_raise.py
Nasty hack to raise exception for other threads
#!/usr/bin/env python
# liuw
# Nasty hack to raise exception for other threads
import ctypes # Calm down, this has become standard library since 2.5
import threading
import time
NULL = 0
using namespace std;
bool unpack(char* fc){
int pos = 0;
char[48] name = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00";
char[4] inta = "\x00\x00\x00\x00";
int intb = 0;
}