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
weights = { | |
"0": 0, | |
"1": 1, | |
"2": 2, | |
"3": 3, | |
"4": 4, | |
"5": 5, | |
"6": 6, | |
"7": 7, | |
"8": 8, |
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
fn b_to_s(bytes: &[u8]) -> String { | |
let hex : String = bytes.iter() | |
.map(|b| format!("{:02x}", b).to_string()) | |
.collect::<Vec<String>>() | |
.join(""); | |
hex | |
} |
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 script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.src = 'https://cdnjs.cloudflare.com/ajax/libs/howler/2.2.3/howler.min.js'; | |
document.head.appendChild(script); | |
const url = '/filebrowser/api/raw/230827_095441/TRACK07.m4a?auth=...' | |
const audioElement = document.createElement('audio'); | |
audioElement.src = url; | |
document.body.appendChild(audioElement); |
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
@property --x { | |
syntax: '<percentage>'; | |
inherits: false; | |
initial-value: 0%; | |
} | |
@keyframes colorChange { | |
0% { | |
--x:0%; | |
} |
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 Hex = (props) => { | |
const canvasRef = React.useRef(null); | |
React.useEffect(() => { | |
const a = (2 * Math.PI) / 6; | |
const r = 40; | |
const canvas = canvasRef.current; | |
const ctx = canvas.getContext("2d"); |
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
<html> | |
<head> | |
<style> | |
body { background-color: #29a; } | |
.bubble { | |
border-radius: 50%; | |
border: 3px solid black; | |
width: 50px; | |
height: 50px; |
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
#include <thread> | |
#include <ranges> | |
#include <mutex> | |
#include <array> | |
#include <iostream> | |
#include <chrono> | |
#include <map> | |
#include <format> | |
#include <random> |
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
ISO-10303-21; | |
HEADER; | |
/* Generated by software containing ST-Developer | |
* from STEP Tools, Inc. (www.steptools.com) | |
*/ | |
/* OPTION: strings as raw bytes, not using required /X/ escapes */ | |
FILE_DESCRIPTION( | |
/* description */ ('Unknown'), | |
/* implementation_level */ '2;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
version: '3' | |
services: | |
cockroachdb: | |
container_name: cockroachdb | |
image: cockroachdb/cockroach:latest-v20.2 | |
command: start-single-node --insecure --store=attrs=ssd,path=/var/lib/cockroach/ | |
restart: "no" | |
volumes: | |
- data:/var/lib/cockroach | |
expose: |
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
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#include <avr/wdt.h> | |
#include <util/delay.h> | |
#include <SPI.h> | |
//#define pSS | |
#define pDATA 0b00001000 | |
#define pCLK 0b00100000 |
NewerOlder