A Aisle
B Bdellium
C Czar
D Djinn
E Eureka
#!/bin/bash | |
cleanup () { | |
tput cnorm | |
exit 0 | |
} | |
clear | |
trap cleanup EXIT TERM | |
tput civis | |
while true; do |
Object.defineProperty(window, 'maybe', { get: function() { return Math.random() < 0.5; } }); |
alias please='sudo "$BASH" -c "$(history -p !!)"' |
☀️ ☁️ ☁️ | |
🌈 ☁️ | |
☁️ | |
🌲🌳🌲 🌷 🌲🌳🌲 |
alias please='sudo $(fc -nl -1)' |
A Aisle
B Bdellium
C Czar
D Djinn
E Eureka
sudo ifconfig en0 ether <MAC address> |
import pandas as pd | |
import matplotlib as mpl | |
def label_bar( | |
s: pd.Series, | |
horizontal: bool = False, | |
**kwargs | |
) -> mpl.axes.Axes: | |
"""Creates a Matplotlib bar chart with values in the bars | |
from a Pandas Series.""" |
Sometimes you've got some incorrectly-encoded text that you want to fix. If you encode it to bytes and decode it back to a string, you can select the source and target encodings and fix the encoding in Python.
'Microsoft® Windows™ 10 is Patrick’s favourite OS'.encode('utf-8').decode('latin-1')
'Microsoft® Windowsâ\x84¢ 10 is Patrickâ\x80\x99s favourite OS'.encode('latin-1').decode('utf-8')
<div class="container"> | |
<div id="cube"> | |
<div class=""><div class="front">THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES</div></div> | |
<div class="a1"><div class="front">THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES</div></div> | |
<div class="a2"><div class="front">THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES</div></div> | |
<div class="a3"><div class="front">THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES</div></div> | |
<div class="a4"><div class="front">THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES</div></div> | |
<div class="a5"><div class="front">THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES</div></div> | |
<div class="a6"><div class="front">THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES<br/>THE CUBES</div></div> | |
<div class="a7"><div class="front">THE CUBES<br/>THE CUBES<br/> |