npm init -y
Create a folder called src and add an empty index.js file. The code that webpack compiles goes in here including any Javascript modules and the main Tailwind file.
<html lang="en"> | |
<head> | |
<meta charset="utf-8"/> | |
<meta name="viewport" content="width=device-width"/> | |
</head> | |
<body style="height: 300vh"> | |
<svg style="position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);" | |
width="655" height="209" viewBox="0 0 655 209" fill="none" xmlns="http://www.w3.org/2000/svg"> | |
<path d="M653 207V62C653 28.8629 626.228 2 593.091 2C519.318 2 391.639 2 292.675 2C270.583 2 252.717 19.9124 252.717 42.0038C252.717 63.5378 252.717 81.7221 252.717 81.7221C252.717 81.7221 252.717 81.7221 252.717 81.7221V167C252.717 189.091 234.808 207 212.717 207H2" | |
stroke="#EAECF0" stroke-width="4" stroke-linecap="round"/> |
# %% | |
import replicate | |
model = replicate.models.get("prompthero/openjourney") | |
version = model.versions.get("9936c2001faa2194a261c01381f90e65261879985476014a0a37a334593a05eb") | |
PROMPT = "mdjrny-v4 style 360 degree equirectangular panorama photograph, Alps, giant mountains, meadows, rivers, rolling hills, trending on artstation, cinematic composition, beautiful lighting, hyper detailed, 8 k, photo, photography" | |
output = version.predict(prompt=PROMPT, width=1024, height=512) | |
# %% | |
# download the iamge from the url at output[0] | |
import requests |
import base64 | |
import ecdsa | |
def generate_vapid_keypair(): | |
""" | |
Generate a new set of encoded key-pair for VAPID | |
""" | |
pk = ecdsa.SigningKey.generate(curve=ecdsa.NIST256p) | |
vk = pk.get_verifying_key() |
>>> import base64, binascii, uuid | |
>>> | |
>>> def encode(uid: uuid.UUID) -> str: | |
... return base64.urlsafe_b64encode(uid.bytes).decode().rstrip("=") | |
... | |
>>> def decode(uid: str) -> uuid.UUID: | |
... return uuid.UUID(binascii.b2a_hex(base64.urlsafe_b64decode(uid_b64 + "==")).decode()) | |
... | |
>>> uid = uuid.UUID("12546fd8-6dd9-4923-9c0a-f1fefadd3e2b") | |
>>> uid |
# http://names.mooseroots.com/stories/5165/most-popular-gender-neutral-names | |
Avery | |
Riley | |
Peyton | |
Logan | |
Taylor | |
Ryan | |
Jordan | |
Cameron |
brew cask reinstall vagrant | |
# this might take a long time | |
vagrant plugin update |
✨ - New feature
👾 - Bugfix
🎨 - UI and style
🔨 - Code refactoring, dependency upgrade, improving code quality
🚧 - Work in progress
<div id="messages"> | |
{% for message in messages %} | |
<div {% if message.tags %}class="alert alert-dismissable alert-{{ message.tags }}"{% endif %}> | |
<a class="close" data-dismiss="alert" href="#">×</a> | |
{{ message }} | |
</div> | |
{% endfor %} | |
</div> |
import re | |
emoji_pattern = re.compile( | |
u"(\ud83d[\ude00-\ude4f])|" # emoticons | |
u"(\ud83c[\udf00-\uffff])|" # symbols & pictographs (1 of 2) | |
u"(\ud83d[\u0000-\uddff])|" # symbols & pictographs (2 of 2) | |
u"(\ud83d[\ude80-\udeff])|" # transport & map symbols | |
u"(\ud83c[\udde0-\uddff])" # flags (iOS) | |
"+", flags=re.UNICODE) |