Skip to content

Instantly share code, notes, and snippets.

View vladyslav-dotsenko's full-sized avatar

Vlad Dotsenko vladyslav-dotsenko

View GitHub Profile
@vladyslav-dotsenko
vladyslav-dotsenko / rollSantas.js
Last active January 7, 2025 17:48
rollSantas.js
const shuffle = input => {
const array = [...input]
for (let i = array.length - 1; i >= 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[array[i], array[j]] = [array[j], array[i]];
}
return array
}
const slide1 = ([first, ...rest]) => ([...rest, first])
#!/bin/bash
# Check if the input file is provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <input-file.xcf>"
exit 1
fi
# Input XCF file
input_file="$1"
git checkout master &&
git branch -D gh-pages &&
git branch gh-pages &&
git checkout gh-pages &&
yarn install &&
yarn build &&
rm -rf node_modules public README.md src yarn.lock build-gh-pages.sh &&
mv build/* ./ &&
rm -rf build &&
git add . &&