Write KFC
with one-line-script using the string “Kentucky Fried Chicken” once.
for w in $(echo "Kentucky Fried Chicken" | tr " " "\n"); do echo -n ${w:0:1}; done;
import random | |
import rich | |
emojis = ( | |
":nerd_face:", | |
":scream:", | |
":smile:", | |
":sunglasses:", | |
":thinking_face:", |
Math trick: works with any number
(Source: https://twitter.com/Perspective_pic/status/399718664540520448)
class Bee: | |
def __str__(self): | |
return "🐝" | |
class Dog: | |
def stepped_on(self, something): | |
... | |
if isinstance(something, Bee): | |
raise SystemExit("😱🥴") |
def shortenize(words: str): | |
""" | |
>>> shortenize("Causses et Vallée de la Dordogne") | |
"Cauvaldor" | |
""" |
""" | |
Compute and display the Earth-Mars distance in light-seconds, light-minutes | |
and kilometers. | |
The easiest way is to install both ``skyfield`` & ``skyfield-data`` to compute | |
this: | |
$ pip install skyfield skyfield-data | |
You can also install `skyfield` only, but it'll force you to download the |
I forked a repo dzen/omgcats
a couple weeks ago on duboisnicolas/omgcats
. I missed some commits so I need to resynchronize dzen/omgcats
on duboisnicolas/omgcats
.
$ git clone git://github.com/duboisnicolas/omgcats.git
$ cd omgcats
# New branch for latest commits:
$ git checkout -b upstream/master
# Add new remote upstream from original repo:
Find a 9 letter string of characters that contains only letters from
acdegilmnoprstuw
such that the hash(the_string) is
910897038977002