Skip to content

Instantly share code, notes, and snippets.

View fboes's full-sized avatar

Frank Boës fboes

View GitHub Profile
@fboes
fboes / morse_code.ino
Last active November 14, 2023 20:45
Arduino Morse Code Table for ASCII
// morseCodes[asciiCode - 32]
// Non-existend codes are represented by ""
String morseCodes[65] = {
" ", // 32 - [SPACE]
"-.-.--", // 33 - !
".-..-.", // 34 - "
"", // 35 - #
"...-..-",// 36 - $
"", // 37 - %
@fboes
fboes / npm-publish.sh
Last active October 28, 2022 10:03
Publishing project version for Git & NPM
#!/bin/bash
set -e
cd `dirname ${0}`/..
VERSION=${1}
if [[ ! "${1}" ]]; then
echo "Choose on of [patch|minor|major]"
read -r -p "Version bump [patch]: " VERSION
fi
VERSION=${VERSION:-patch}
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]:\[\033[00;95m\]$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo -)\[\033[00m\]\$ '
export PS1
alias la="ls -lah"
# Put me in `.bash_aliases`, works like an alias.
# See https://stackoverflow.com/a/7131683
export DEFAULT_DOCKER_SERVICE=web
_docker() {
case "${1}" in