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
PyDict: | |
New reference: | |
PyDict_New | |
PyDict_Copy | |
PyDict_SetItem | |
PyDict_SetItemString | |
PyDict_Items | |
PyDict_Keys | |
PyDict_Values | |
Borrowed reference: |
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 requests | |
import re | |
class Twitter: | |
def __init__(self): | |
self.s = requests.Session() | |
self.get_tokens() | |
def get_tokens(self): |
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
// ==UserScript== | |
// @name T-Online Email - Add removal | |
// @version 1 | |
// @grant none | |
// @match *://email.t-online.de/* | |
// ==/UserScript== | |
// remove add elements | |
function removeElementById(id){ | |
var elem = document.getElementById(id); |
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
from PIL import Image | |
fp = "lena.png" | |
# extrahiere Nachricht vom Bild | |
extracted_bin = [] | |
with Image.open(fp) as img: | |
data = img.tobytes() | |
for i in range(0, len(data)//8): | |
extracted_bin.append(data[i]&1) |
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
from mwclient import Site | |
import os | |
import re | |
import json | |
from lib import PATH, resPath | |
page_path = os.path.join(resPath, 'pages') | |
pages = {fp: open(os.path.join(page_path, fp), 'rb').read().decode('utf8') for fp in os.listdir(page_path)} | |
# download pages |