| Font Name | Description | Common Uses | Vibes |
|---|---|---|---|
Lato |
A modern, clear font with strong structure | Web design, print, corporate identity | Professional, clean |
Martel Sans |
A versatile, easy-to-read font | Digital media, advertising, logos | Friendly, approachable |
Nunito Sans |
A light, rounded font | User interfaces, mobile apps, children's books | Soft, playful |
Quicksand |
A geometric, light font | Posters, logos, print media | Modern, minimalist |
Rubik |
A bold, cube-like font | Headings, logos, signage | Strong, impactful |
Varela Round |
A rounded, sans-serif font | Web design, mobile apps, logos | Casual, friendly |
Open Sans |
A humanist sans-serif font | Web and print design, mobile apps | Neutral, simple |
Roboto |
A mechanical sans-serif font | User interfaces, mobile apps, web design | Modern, geometric |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| power_cycle_usb() { | |
| # Check if no arguments are passed | |
| if [[ $# -eq 0 ]]; then | |
| power_cycle_usb -h; | |
| return; | |
| fi; | |
| # Define local variables | |
| local quiet=false verbose=false help=false sleep_time=0.5 wait_finish=true choice=false device | |
| local RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[0;33m' BLUE='\033[0;34m' NC='\033[0m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>File Upload and Regex Matcher</title> | |
| <!-- Include jQuery for simplicity --> | |
| <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> | |
| <!-- Include FileSaver.js CDN for saving results --> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/bash | |
| # Check if running as root. | |
| function check_sudo() { | |
| if [[ "$EUID" -ne 0 ]]; then | |
| clear | |
| echo " This script must be run as root!" | |
| exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const quasiHash = (ms: number = 1, d: Date = new Date()) => ( // 3-digit, semi-unique timehash | |
| Number(Number(d).toString().slice(-3)).toString(36) + | |
| Number(Math.floor(Math.random() * 35) + 1).toString(36) | |
| ) | |
| // examples outputs: gc6, szb, c0r, etc. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const hash = Number(new Date).toString(36) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function print_files() { | |
| # Check for help flag | |
| if [[ $1 == "-h" || $1 == "--help" ]]; then | |
| printf "Usage: print_files [-f filter] [regex]\n" | |
| printf "Options:\n" | |
| printf " -f filter Select files with fzf using the specified filter\n" | |
| printf " -h Show this help message\n" | |
| return | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.models | |
| import kotlinx.serialization.* | |
| import kotlinx.serialization.json.Json | |
| @Serializable | |
| data class Message(val role :String, var content :String) { | |
| override fun toString(): String = "${(role+":").padEnd(11)} ${content}" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/zsh | |
| function write_on_terminal() { | |
| local row=$1 | |
| local column=$2 | |
| local text=$3 | |
| # Save the cursor position | |
| printf "\033[s" |
-
Install the
readline-syncpackage by running the following command in your terminal:npm install readline-sync -
Import the
readline-syncmodule in your JavaScript file:const readlineSync = require('readline-sync');