This is a simple example on how to stream HTML with Elysia in Bun with TailwindCSS (through twind).
This uses the latest @twind/core API.
Please suggest any speed improvements in the comments 🙏
This is a simple example on how to stream HTML with Elysia in Bun with TailwindCSS (through twind).
This uses the latest @twind/core API.
Please suggest any speed improvements in the comments 🙏
| // ON THE SERVER | |
| import { generatePresignedPost } from "./s3"; | |
| const {url, fields} = await generatePresignedPost(...); // fill with your own parameters. | |
| // send the above url, fields to the Client. | |
| // ON THE CLIENT/BROWSER |
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| export ZSH="$HOME/.oh-my-zsh" | |
| VI_MODE_RESET_PROMPT_ON_MODE_CHANGE=true | |
| VI_MODE_SET_CURSOR=true | |
| MODE_INDICATOR="%F{red}N%f" | |
| INSERT_MODE_INDICATOR="%F{green}I%f" |
Data scraped from https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes
| name | calling_code | alpha2 | alpha3 | |
|---|---|---|---|---|
| Afghanistan | 93 | AF | AFG | |
| Albania | 355 | AL | ALB | |
| Algeria | 213 | DZ | DZA | |
| American Samoa | 1-684 | AS | ASM | |
| Andorra | 376 | AD | AND | |
| Angola | 244 | AO | AGO | |
| Anguilla | 1-264 | AI | AIA | |
| Antarctica | 672 | AQ | ATA | |
| Antigua and Barbuda | 1-268 | AG | ATG |
Automatically updates a domain (registered with DigitalOcean)'s record with the current IP of the machine. Ideal for home-labs with dynamic IPs who want to avoid services like NoIP or can't use cloudflare domains.
Designed for Linux
Requires: Python 3.6.9 or later, requests library installed.
| import java.util.Scanner; | |
| import java.util.Random; | |
| public class SortArray { | |
| public static void main(String[] args) { | |
| Scanner s = new Scanner(System.in); | |
| System.out.println("1. Bubble sort\n2. Selection sort\n3. Insertion sort\n"); | |
| System.out.println("Enter integer:"); | |
| int choice = s.nextInt(); |
| module.exports = { | |
| root: true, | |
| extends: ["eslint:recommended", "prettier"], | |
| ignorePatterns: ["*.cjs"], | |
| rules: {}, | |
| env: { | |
| es2017: true, | |
| node: true | |
| } | |
| }; |
| <script lang="ts"> | |
| import Auth from "./lib/components/Auth.svelte"; | |
| import Code from "./lib/components/Code.svelte"; | |
| let sentLink = false; | |
| let token = localStorage.getItem("token"); | |
| async function getUser() { | |
| if (!token) return; | |
| try { |