- SC1000 $ is not used specially and should therefore be escaped.
- SC1001 This
\o
will be a regular 'o' in this context. - SC1003 Want to escape a single quote? echo 'This is how it'\''s done'.
- SC1004 This backslash+linefeed is literal. Break outside single quotes if you just want to break the line.
- SC1007 Remove space after = if trying to assign a value (or for empty string, use var='' ... ).
- SC1008 This shebang was unrecognized. ShellCheck only supports sh/bash/dash/ksh. Add a 'shell' directive to specify.
- SC1009 The mentioned parser error was in ...
- SC1010 Use semicolo
A map of the sky that uses an azimuthal equidistant projection with star data. Longitudes and latitudes for the geo projection are obtained from declination and right ascension respectively (longitude is also inverted, because, unlike the earth globe, the celestial sphere is seen from the inside).
The boreal (northern) sky is shown at left, while the austral (southern) at right. Because right ascension is given in hours, both maps are divided in 24 slices. A circle is shown every 10 degrees of declination.
Star size indicates magnitude. Bigger circles depict brighter stars.
#!/bin/bash | |
notags() { | |
while read line; do | |
echo $line | sed -e "s/<[^>]*>/ /g" -e "s/ / /g" | |
done | |
} | |
user=$1 | |
wanted=$2 |
/* | |
* This is free and unencumbered software released into the public domain. | |
* | |
* For more information, please refer to <https://unlicense.org> | |
*/ | |
//Regular text | |
#define BLK "\e[0;30m" | |
#define RED "\e[0;31m" | |
#define GRN "\e[0;32m" |
#!/bin/bash | |
require() { | |
for what in $*; do | |
if !(which $what >& /dev/null); then | |
echo "error: $what is required to run this script, please install it" | |
exit 1 | |
fi | |
done | |
} |
This is yet another explanation of why async
and return await
is pointless, coming from this post.
// async means that this:
const fn = async (...args) => {/* stuff */};
// is basically the equivalent of this:
const proxies = new WeakMap; | |
const hyphen = name => name.replace(/([a-z])([A-Z])/g, '$1-$2'); | |
const handler = { | |
get: (el, name) => el.getAttribute(hyphen(name)), | |
set: (el, name, value) => { | |
el.setAttribute(hyphen(name), value); | |
return true; | |
} | |
}; | |
const set = el => { |
Marked is an OSX application to preview Markdown syntax in HTML. It’s possible to configure AsciiDoc as an custom Markdown processor to create the HTML for your AsciiDoc files.
function is_integer () { | |
# exit code 0 - the string is an integer | |
# exit code 1 - the string is not an integer | |
local string=$1 | |
[[ $string == ${string//[^0-9]/} ]] | |
} |