Skip to content

Instantly share code, notes, and snippets.

View rhamses's full-sized avatar

Rhamses rhamses

View GitHub Profile
@rhamses
rhamses / race.html
Created February 13, 2023 18:35
Race Track - SVG and AnimeMotion
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Race Track - SVG and AnimeMotion</title>
</head>
<body>
<svg
@rhamses
rhamses / unicode.js
Last active June 6, 2022 11:13
Sorting string by Unicode Block (Language Identity)
/*
All blocks at
https://en.wikipedia.org/wiki/Unicode_block
This is an example explained at
https://rhams.es/content/usando-unicode-para-identificar-idiomas
*/
const ArabicBlock = new RegExp('[\u0621-\u064A]','g')
const ThaiBlock = new RegExp('[\u0E00-\u0E7F]','g')
@rhamses
rhamses / rename.sh
Last active July 17, 2019 21:09
Rename files in buljk on bash
for file in *; do mv -- "$file" "$file.png"; done