Check if a string is an integer in javascript

Small function in pure Javascript to check if a string is an integer or not. function isInteger(value) { var intRegex = /^\d+$/; return intRegex.test(value); } isInteger(5); // true isInteger(undefined); // false isInteger(“1”); // true isInteger(“1.3”);…

Get query string parameters with jQuery

$.urlParam = function (name) { var results = new RegExp(‘[\?&]’ + name + ‘=([^&#]*)’) .exec(window.location.href); if (results == null) { return 0; } return results[1] || 0; } console.log($.urlParam(‘dotmaui’)); //cool

Weekend of working at dotmaui.com

Weekend of working at dotmaui.com, here are the main news:  – HTML Beautifier v 1.4.0 released, we have completely replaced the script for a better result– HTML Minify API version 1.1 has left beta status…

Vulture CSS alpha 6 released with new features!

 Vulture CSS alpha 6 released with new features! – New online tool to remove unused CSS from HTML code.https://dotmaui.com/vulture-css/html-css.jsp -API version 1.1 with new features.https://api.dotmaui.com/vulturecss/#1.1 – Bug fixes and other minor improvements.

Premium plan restored!

Free offer for three months of .Maui premium. See all the features! It is thanks to your support that we can continue to offer a reliable service without advertising or tracking personal data. Thank you. 

.Maui Code to Text Ratio

Do not underestimate the importance of the percentage ratio between the code and the text of your website! Use our newly updated tool “.Maui Code to Text Ratio” to analyze your site. https://dotmaui.com/code-to-text-ratio/

Java: view all the headers in tomcat

Source Code for RequestHeader Example import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class RequestHeaderExample extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType(“text/html”); PrintWriter out = response.getWriter(); Enumeration…