Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
from bertopic import BERTopic
from hdbscan import HDBSCAN
from sentence_transformers import SentenceTransformer
from sklearn.feature_extraction.text import CountVectorizer
from umap import UMAP
import pandas as pd
import pickle
import csv
library(magrittr)
library(dplyr)
library(stringr)
library(words)
f.solve_wordle <- function(
len=5, # Length of the word to guess
phrase="", # Correct letters in the right position. Use . as wildcard.
correct_chars="", # List of correct letters and the incorrect positions (order does not matter)
incorrect_chars="" # Incorrect letters (order does not matter)
@Kudusch
Kudusch / twitter_functions_v2.py
Created February 5, 2021 13:54
Python functions for the Twitter API v2
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests
import datetime
import math
import csv
import json
import traceback
import time

Keybase proof

I hereby claim:

  • I am Kudusch on github.
  • I am kudusch (https://keybase.io/kudusch) on keybase.
  • I have a public key whose fingerprint is 2F5D 45EB 9AE9 9C3F 7AEF F555 0B1E 3407 7758 540D

To claim this, I am signing this object:

<?php
/*
Made by Kudusch (blog.kudusch.de, kudusch.de, @Kudusch)
---------
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
<?php
/*
Made by Kudusch (blog.kudusch.de, kudusch.de, @Kudusch)
---------
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
@Kudusch
Kudusch / Memoclone
Last active December 12, 2015 02:49
<?php
//execution time
$startTime = microtime('get_as_float');
// set date and time
date_default_timezone_set("Europe/Berlin");
$day = date('d');
$month = date('m');
$dayName = date('jS');
$monthName = date('F');