// 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
<!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 = @() |
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 { |
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
$(document).ready(function(){ | |
$('textarea').ckeditor({ | |
contentsCss: '/css/ckeditor_custom.css', //external CSS to set body{margin:0;} | |
uiColor: '#FFFFFF', | |
scayt_autoStartup: true, //spellcheck auto-enabled | |
autoGrow_onStartup: true, | |
enterMode: CKEDITOR.ENTER_BR, //I hate this but our users request it | |
removePlugins: 'elementspath, resize', | |
extraPlugins: 'autogrow,confighelper', //confighelper allows HTML5-like placeholder text | |
extraAllowedContent: 'img[alt,dir,id,lang,longdesc,!src,title]{*}(*)', //needed to allow image pasting without an image button |
NewerOlder