Simple hacky dark mode for any site
As I type now, I am sleepy an in a dark room with my laptop. It hurts my eyes looking at most websites with white backgrounds and dark text. So, I thus present to you a bookmarklet that will hack …
As I type now, I am sleepy an in a dark room with my laptop. It hurts my eyes looking at most websites with white backgrounds and dark text. So, I thus present to you a bookmarklet that will hack …
CSS3 is powerful and fun! Using SVG and CSS animations, you can do so many wonderful things! Using CSS animations is more efficient than using Javascript giving smoother transitions and less processing power for the browser. The animation is rather …
Sometimes, devs can rely on jQuery a little too much, and forget how to check for a className without a framework to help. Granted
$(elem).hasClass("className");is easy. But sometimes, one must go jquery free!
el.classList.contains(className);However, the .contains is not …
I, like many of you, grew up playing MadLibs® – and I sure do miss them! So, I decided to try to make some of my own using WordPress and the Advanced Custom Fields plugin. The way I set this …
Support for older browsers that cannot run array.includes(“searchForThis”). Here is a workaround for that in your code!
if (![].includes) {
Array.prototype.includes = function (searchElement /*, fromIndex*/) {
'use strict';
var O = Object(this);
var len = parseInt(O.length) || 0;
if
Ever want to make a bookmarklet? Well, this will help. (Comes in handy to hack things in place before a major fix/build goes out – i.e. changing iframe sources that have a bad url)
Just drag the link that this …
Here are some of the common php things I use, and always have to look up:
Mysql:
[php]
$result = mysqli_query($con,"SELECT * FROM Persons");</code>
<code>while($row = mysqli_fetch_array($result)) {
echo $row['FirstName'] . " " . $row['LastName'];
echo "
";
}
[/php]
Oh, unicode. OH unicode!
So, with unicode, you can make some fun characters!
Could we pretend that ✈s in the ☽ ☁ are like ==✶s?
Could we pretend that ✈s in the ☽ ☁ are like ==✶s?
But, here are …
Getting files from a directory can be useful if you want to access your files but forgot what subfolder names you put there (if you’ve turned indexing off, you can’t just look at the dir url and see an autogenerated …