This file contains 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
/* | |
npm install axios cheerio fs-extra | |
*/ | |
// Import the necessary libraries | |
const axios = require('axios'); | |
const cheerio = require('cheerio'); | |
const fs = require('fs-extra'); | |
const path = require('path'); |
This file contains 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
import numpy as np | |
import matplotlib.pyplot as plt | |
from sklearn.preprocessing import StandardScaler, MinMaxScaler, RobustScaler, MaxAbsScaler, Normalizer | |
# Generate demonstration data ensuring positivity | |
better_datasets = [ | |
np.random.rand(100, 2) * 20 + 10, | |
np.random.rand(100, 2) * 100, | |
np.random.beta(100, 2, size=(100, 2)), | |
np.random.f(100, 2, size=(100, 2)), |
This file contains 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
let verts = new Float32Array( [ 0, 2, 0, -1, 0.2, 0, 1, 0.2, 0 ] ); | |
let v = base64_test( verts ); | |
function base64_test( fary ){ | |
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
// ENCODING TEST | |
console.log("Origin Data", fary ); | |
let uint = new Uint8Array( fary.buffer ); | |
console.log( "Convert F32 to Uint8 : Byte Length Test", fary.length * 4, uint.length ); |
This file contains 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 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> |
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 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 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. |
NewerOlder