Skip to content

Instantly share code, notes, and snippets.

View Firesphere's full-sized avatar
🐮
I may be slow to respond.

Simon Erkelens Firesphere

🐮
I may be slow to respond.
View GitHub Profile
@Baldinof
Baldinof / Caddyfile
Created July 8, 2021 16:06
PHP-fpm with Caddy web server
{
supervisor {
php-fpm
}
}
:8080
php_fastcgi 127.0.0.1:9000
root * .
function isEven(a) {
   a = a.toString().replace(/[^0-9.]/g, "");
   var stack = [];
   var rev = a.split('').reverse();
   for (var ix = 0; ix < rev.length; ix++) {
       if (rev[ix] == ".") stack.push("dot")
       else if (rev[ix] == "1" || rev[ix] == "3" || rev[ix] =="5" || rev[ix] == "7" || rev[ix] == "9")
          stack.push("oneven")
       else
          stack.push('even')