I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
// PDO Connection to MySQL | |
$conn = new PDO('mysql:host=localhost;dbname=yourdbname', 'username', 'password'); | |
// PDO Connection to PostgreSQL | |
$conn = new PDO('pgsql:host=localhost;dbname=yourdbname', 'username', 'password'); | |
// A quick Select Query with For Loop | |
foreach ($conn->query("SELECT * FROM profile") as $row) | |
echo $row['fullname']; |
<link rel="import" href="../core-pages/core-pages.html"> | |
<link rel="import" href="../paper-progress/paper-progress.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
<?php | |
function set_custom_post_types_admin_order($wp_query) { | |
if (is_admin()) { | |
// Get the post type from the query | |
$post_type = $wp_query->query['post_type']; | |
if ( $post_type == 'POST_TYPE') { |
function take(targetElem) { | |
// First render all SVGs to canvases | |
var elements = targetElem.find('svg').map(function() { | |
var svg = $(this); | |
var canvas = $('<canvas></canvas>'); | |
svg.replaceWith(canvas); | |
// Get the raw SVG string and curate it | |
var content = svg.wrap('<p></p>').parent().html(); | |
content = content.replace(/xlink:title="hide\/show"/g, ""); |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)
Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.
function isPWA() { | |
return window.navigator.standalone == true || // iOS PWA Standalone | |
document.referrer.includes('android-app://') || // Android Trusted Web App | |
["fullscreen", "standalone", "minimal-ui"].some( | |
(displayMode) => window.matchMedia('(display-mode: ' + displayMode + ')').matches | |
) // Chrome PWA (supporting fullscreen, standalone, minimal-ui) | |
} | |
console.log(isPWA()) // true |