I no longer mantain this list. There are lots of other very comprehensive JavaScript link lists out there. Please see those, instead (Google "awesome JavaScript" for a start).
<?php | |
function strip_word_html($text, $allowed_tags = '<b><i><sup><sub><em><strong><u><br>') | |
{ | |
mb_regex_encoding('UTF-8'); | |
//replace MS special characters first | |
$search = array('/‘/u', '/’/u', '/“/u', '/”/u', '/—/u'); | |
$replace = array('\'', '\'', '"', '"', '-'); | |
$text = preg_replace($search, $replace, $text); | |
//make sure _all_ html entities are converted to the plain ascii equivalents - it appears | |
//in some MS headers, some html entities are encoded and some aren't |
Function:
function shorten_text($text, $max_length = 140, $cut_off = '...', $keep_word = false)
{
if(strlen($text) <= $max_length) {
return $text;
}
if(strlen($text) > $max_length) {
It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.
<!-- | |
https://stackoverflow.com/questions/45396280/customizing-increment-arrows-on-input-of-type-number-using-css | |
https://www.w3schools.com/jsref/met_number_stepup.asp | |
--> | |
<link media="all" rel="stylesheet" href="./style.css"> | |
<div> | |
<button type="button" onclick="this.parentNode.querySelector('[type=number]').stepDown();"> | |
- |
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
After you've downloaded and installed WAMP Server, follow these steps:
- Generate SSL certificate using OpenSSL:
-
Add
C:\wamp64\bin\apache\apache2.4.27\bin
directory to the PATH so you can accessopenssl
command from the command prompt (WAMP comes with its own version of OpenSSL already integrated, so you don't need to install it. You'll find it in this directory.).IMPORTANT: Please note that the path of your installation depends on your version of Apache! DO NOT copy and paste the paths presented in this gist as they will not match with yours!
-
Navigate to your user directory (
C:\Users\%YOUR_USERNAME%\
), create a new folder (.openssl
), navigate to it with Powershell and run these commands:openssl genrsa -aes256 -out private.key 2048
openssl rsa -in private.key -out private.key