What’s New for January 2022
We haven’t heard from you in a long time, but we haven’t abandoned the project. We are going back to work more motivated than before thanks to your support. Here’s what’s new this month: The…
We haven’t heard from you in a long time, but we haven’t abandoned the project. We are going back to work more motivated than before thanks to your support. Here’s what’s new this month: The…
package main import ( “fmt” “math/rand” “strconv” “time” ) func random(min, max int) int { rand.Seed(time.Now().UTC().UnixNano()) return rand.Intn(max-min) + min } func main() { myrand := random(1, 91) fmt.Println(strconv.Itoa(myrand)) }
Let’s take the example of having to select all the div with the data-lang attribute different from “it”: div:not([data-lang=it]) { // Your CSS here. } If you want to select elements that have an attribute…
var jsElm = document.createElement(“script”); jsElm.type = “application/javascript”; jsElm.src = “https://cdn.dotmaui.com/libs/jquery/3.6.0/jquery.min.js”; document.head.appendChild(jsElm);
.Maui Beautify Format your Javascipt, CSS or HTML minimized files with .Maui Beuatify. Make your files easier to read with our free web tool, without advertising or tracking. Enjoy the new website: https://beautify.dotmaui.com/
Create an Event object and pass it to the dispatchEvent method of the element: let my_element = document.getElementById(‘my_select’); let event = new Event(‘change’); my_element.dispatchEvent(event);
<?php // Get current protocol. $protocol = stripos($_SERVER[‘SERVER_PROTOCOL’],’https’) === 0 ? ‘https://’ : ‘http://’; // Get current domain. $domain = $_SERVER[‘HTTP_HOST’]; // Get current path to the current file. $path = $_SERVER[‘SCRIPT_NAME’]; // Get current…
With PIP you can update your SSL certificate directory with the following piece of code: pip install –upgrade certifi
The code consists of three lines of Javascript:
Here are two methods to remove all HTML tags from a string in C# without removing the contents of the tag: Method 1 with a regular expression: public static string StripHTML(string input) { return Regex.Replace(input,…