Search

Search Code by entering the text above.
php
Quick tool to convert time into decimal
...

I needed a quick tool that can convert say 20 minutes into decimal, as im doing this a lot these days. Here is what i come up with, well you can google it as well and that works, but this form is a bi..

12:55 am, November 16, 2020
js
enable tinymce on a target textarea by id
...

this is useful if you have multiple textareas on a page and want to enable tinymce on, also included are buttons to enable and disable on all textareas on the page

12:15 am, August 19, 2020
javascript
stop tinymce replacing urls with relative url's
...

If you have been using tiny mce for your content editing, you will sometimes find that it replaces your full url strings with its relative ones. This can be annoying so this is how you can disable it..

12:55 am, August 18, 2020
php
convert a string to uppercase with php
...

use this function to convert a lower case or sentence case string into its uppercase form

12:31 am, July 14, 2020
php
php convert date now into a sql timestamp
...

an easy way to get the current date from php into a mysql or sql timestamp format, this uses the server time

12:43 am, November 25, 2019
javascript
Using the Spread Operator to Evaluate Arrays In-Place Tests
...

My tests using the Spread Operator rather than the apply function. In the 1st function show_max_array i use the apply operator to convert the array into comma seperated values. In the show_max_array..

1:02 am, October 14, 2019
javascript
using arrow functions to convert small functions into one line statement functions
...

in this exercise i will take a function variable and write it in one line using the arrow function

12:09 am, October 1, 2019
php
function to create a uid from html
...

this function converts a html string into a uid or unique id type string, its not actually unique, but its a string that can be used to make the title of something that contains html into a usable str..

12:44 am, March 22, 2019
php
Date Conversion PHP
...

Convert 1/1/2011 into 2011-01-01 00:00:00

10:40 pm, January 14, 2019
php
convert all images into base64 encoded
...

if you have a bunch of html with inline image links this will convert them into base64 images inline. <?php $html = "my html string with multiple image tags..."; $dom = new DOMD..

6:20 am, August 31, 2018
js
stacktable jQuery plugin for stacking tables on small screens
...

stacktable.js The purpose of stacktable.js is to give you an easy way of converting wide tables to a format that will work better on small screens. It creates a copy of the table that is converted in..

6:20 am, August 31, 2018
html
form elements australian state list
...

A list of the Australian States converted into a form element select option dropdown. Sorted in alphabetical order.

6:20 am, August 31, 2018
html
copy image to data uri using chrome base64 encode
...

Update: 26 Aug 2020 - Fixed video and original image link all should be working now in chrome. Found this one useful if you want to convert an image to base64 encode and link it directly in css or ht..

6:20 am, August 31, 2018
html
form elements new zealand region list
...

A list of the Regions of New Zealand converted into a form element select option dropdown. Sorted in alphabetical order. Demo Please Select Auckland Bay of Plenty Canterbury Gisborne..

6:20 am, August 31, 2018
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

❤👩‍💻🕹

Random Quote
For a long time it had seemed to me that life was about to begin - real life. But there was always some obstacle in the way, something to be gotten through first, some unfinished business, time still to be served, or a debt to be paid. Then life would begin. At last it dawned on me that these obstacles were my life.
Alfred D. Souza