Skip to content

Instantly share code, notes, and snippets.

View Karendev's full-sized avatar
🏠
Working from home

Karen Johnstone Karendev

🏠
Working from home
  • Gold Coast, Australia
View GitHub Profile
<script>
var time = new Date();
var dayOfWeek = time.getDay();
// Set office opening time to 8:15am
var startTime = new Date().setHours(8,15);
// Set office closing time to 4:15pm
var endTime = new Date().setHours(16,15);
<?php
/**
* Add skip-lazy class to first image in content.
*/
add_filter( 'the_content', function( $content ) {
// Check if we have no content.
if ( empty( $content ) ) {
return $content;
}
@Karendev
Karendev / Contract Killer 3.md
Created April 11, 2019 06:01
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post