Vulture CSS pre alpha 2 Released
Remove dead CSS from your stylesheets. We’ve improved page rendering. Before controlling the use of CSS rules, Vulture CSS expects the DOM to be loaded and processed by any Javascript. Try it now: Vulture CSS.
Remove dead CSS from your stylesheets. We’ve improved page rendering. Before controlling the use of CSS rules, Vulture CSS expects the DOM to be loaded and processed by any Javascript. Try it now: Vulture CSS.
function isInt(value) { return !isNaN(value) && parseInt(Number(value)) == value && !isNaN(parseInt(value, 10)); } Tests: isInt(7) // true isInt(“7”) // true isInt(7e5) // true isInt(“7e7″) // true isInt(” 7 “) // true isInt(“”) // false isInt(“…
With a small snippet of jQuery code you can detect whether the user is viewing the site from a mobile device. The script can be downloaded from http://detectmobilebrowsers.com/download/jquery or copied from below: var isMobile =…
One of the peculiarities of the ASP.NET framework is definitely postback, often used in many controls within the same page. Each time an item, such as a select or a checkbox, changes status, and the…
Here is a simple function to prevent Sql Injection with PHP. Just recall it and check both GET and POST parameters <?php function checkInjection() { $badchars = array("DROP", "SELECT", "UPDATE", "DELETE", "INSERT", "TRUNCATE", "UNION ALL",…
To make JS Minify more and more complete, we started implementing some options. Version 1.3.2 provides: remove unreachable code drop unreferenced functions and variables join consecutive var statements preserve comments discard calls to console.* functions…
Continue our programming pills series in VB.net, in this case: how to perform a Group By in Linq to Sql. Dim spirit = From s In db.Spirit Where s.AlcoholContent >= 40 Group By n =…
In this post i extend an example found on stackoverflow.com, here’s how to launch two simultaneous threads and stop them after 5 seconds. import threading import time def doit(arg): t = threading.currentThread() while getattr(t, “do_run”,…
.Maui Image Resizing API is a useful tool for creating thumbnails for your applications. Resize an image with PHP is damn easy, it’s free and without any form of advertising. Download the client from GitHub…
Imagine you have to make a left join between the user table and the jobs table, where there may be no items related to the user table in the jobs table. Dim users = From…