// Leaflet JS - note the *className* attribute
// [...]
L.tileLayer('https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', {
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
className: 'map-tiles'
}).addTo(map);
// [...]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // site/ready.php | |
// Blog/News Post Page - set reading time | |
$wire->addHookBefore('Pages::saveReady(template=news-post)', function(HookEvent $event) { | |
// Get values of arguments sent to hook (and optionally modify them) | |
$page = $event->arguments(0); | |
// Get the word count of all available text fields that make up the content of the page | |
$count['summary_word_count'] = count(wire('sanitizer')->wordsArray(strip_tags($page->summary_textarea))); | |
$count['article_word_count'] = count(wire('sanitizer')->wordsArray(strip_tags($page->rte))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>SVG Masking Test</title> | |
<style> | |
body { | |
background-color: #F0F; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ----------------------------------------------------------------------- | |
# | |
# Author : Baldwin D. | |
# Description : Empty Recycle Bin with Retention (Logoff Script) | |
# Source : http://baldwin-ps.blogspot.be/2013/07/empty-recycle-bin-with-retention-time.html | |
# | |
# ----------------------------------------------------------------------- | |
$Global:Collection = @() |
Retail option (many others):
- ~$1200 -- CaptionMaker & MacCaption
Free (and paid option) transcription editor:
Example using IBM Watson (or "Gentle") to auto-transcribe a video's audio stream to more easily transcribe (Option 2):
Free in-development (used in production) auto-transcribe tool (online version uses IBM Watson) autoEdit 2:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Copyright (c) 2005 Richard Heyes (http://www.phpguru.org/) | |
* | |
* All rights reserved. | |
* | |
* This script is free software. | |
*/ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Theme and Plugin Auto-Update | |
Description: Forces automatic updates of installed plugins and themes. Be sure to have backups running! | |
Version: 1.0 | |
Author: Brendon Kozlowski | |
Author URI: http://www.bytekick.com | |
License: MIT | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Convert RGB colors array into HSL array | |
* | |
* @param array $ RGB colors set | |
* @return array HSL set | |
*/ | |
function rgb_to_hsl($color){ | |
list($r, $g, $b) = is_array($color) ? $color : hex_to_rgb($color); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// import (and instantiate) the required 3rd party autoload class for all required classes | |
require_once('./path_to/PHPExcel.php'); | |
// Call a member method that automatically guesses and assigns cell properties (Date, Number, Text, etc.) | |
PHPExcel_Cell::setValueBinder( new PHPExcel_Cell_AdvancedValueBinder() ); | |
class ExcelHelper { |
NewerOlder