Skip to content

Instantly share code, notes, and snippets.

View joshuaavalon's full-sized avatar
🎯
Focusing

Joshua Avalon joshuaavalon

🎯
Focusing
View GitHub Profile
# Atom Beautify - Debugging information
The following debugging information was generated by `Atom Beautify` on `Wed Jan 04 2017 11:25:25 GMT+0800 (China Standard Time)`.
---
## Table Of Contents
- [Versions](#versions)
- [Original file to be beautified](#original-file-to-be-beautified)
- [Original File Contents](#original-file-contents)
@joshuaavalon
joshuaavalon / semver.sh
Created January 13, 2021 02:38
Parse semantic version
#!/usr/bin/env sh
function semverParseInto() {
local RE='[^0-9]*\([0-9]*\)[.]\([0-9]*\)[.]\([0-9]*\)\([0-9A-Za-z-]*\)';
eval $2=`echo $1 | sed -e "s#$RE#\1#"`;
eval $3=`echo $1 | sed -e "s#$RE#\2#"`;
eval $4=`echo $1 | sed -e "s#$RE#\3#"`;
eval $5=`echo $1 | sed -e "s#$RE#\4#"`;
}
@joshuaavalon
joshuaavalon / snippets.json
Created October 6, 2023 07:01
VSCode user snippets
{
"uuid": {
"prefix": "uuid",
"body": "${UUID}",
"description": "Generate UUID"
},
"now-date": {
"prefix": "now-date",
"body": "$CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE",
"description": "Generate current date YYYY-MM-DD"