There are two types of errors
:
- Recoverable Errors
- Unrecoverable Errors
Rust uses Result<T, E>
for handling recoverable errors
and the panic!
macro to for unrecoverble errors.
// Takes an array of characters or a string | |
function analyze(input){ | |
var chars = undefined; | |
var obj = {}; | |
if(input instanceof Array){ | |
chars = input; | |
} else if(typeof input === 'string' || input instanceof String) { | |
chars = input.split(""); | |
} else return null; | |
git log --all --decorate --oneline --graph |
echo "ABC" | base64 |
sudo -u postgres psql -c 'create database test;' | |
sudo -u postgres psql -c 'grant all privileges on database test to username;' |
wget -r <web address> |
#!/bin/bash | |
for i in *.avi; | |
do ffmpeg -i "$i" -c:v libx264 -preset ultrafast "$(basename "$i" .avi)".mp4; | |
done |
amixer -D pulse sset Master 100% | |
# sets the volume to 100% |
I hereby claim:
To claim this, I am signing this object: