Skip to content

Instantly share code, notes, and snippets.

View dahelg's full-sized avatar
:octocat:

Helge Drews dahelg

:octocat:
View GitHub Profile
[tooltip-position='left']::before{
left:0%;
top:50%;
margin-left:-12px;
transform:translatey(-50%) rotate(-90deg)
}
[tooltip-position='top']::before{
left:50%;
}
[tooltip-position='bottom']::before{
[tooltip]:hover::after,[tooltip]:hover::before {
opacity:1
}
@dahelg
dahelg / step1-tooltip.css
Created October 26, 2024 21:23
step1-tooltip.css
button{
margin:auto;
background: #3498db;
font-family: Arial;
color: #ffffff;
font-size: 14px;
}
[tooltip]{
margin:20px;
position:relative;
@dahelg
dahelg / twitter-utils.js
Last active December 8, 2024 19:25
A simple hack to like all twitter posts currently loaded in a thread. Can be used directly within the browser's dev tools console.
document.querySelectorAll("div:nth-child(3) > div > div > div > svg").forEach(item => item.parentNode.click())
@dahelg
dahelg / replace_umlaute.py
Last active September 3, 2020 19:57 — forked from frruit/replace_umlaute.py
Small example hot to convert german special characters from unicode to utf-8 and back to unicode
# Small example how to convert german special characters from unicode to utf-8 and back to unicode
# http://www.utf8-zeichentabelle.de/unicode-utf8-table.pl?start=128&number=128&names=-&utf8=string-literal
#
umlaute_dict = {
'\xc3\xa4': 'ae', # U+00E4 \xc3\xa4
'\xc3\xb6': 'oe', # U+00F6 \xc3\xb6
'\xc3\xbc': 'ue', # U+00FC \xc3\xbc
'\xc3\x84': 'Ae', # U+00C4 \xc3\x84
'\xc3\x96': 'Oe', # U+00D6 \xc3\x96