Skip to content

Instantly share code, notes, and snippets.

View dennysjmarquez's full-sized avatar
💭
🤜🤛🤓

Dennys José Márquez Reyes dennysjmarquez

💭
🤜🤛🤓
View GitHub Profile
@dennysjmarquez
dennysjmarquez / index.html
Created February 25, 2020 13:45
Web Share API + AddThis Sharing Buttons
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width = device-width,initial-scale = 1.0">
<title>Web Share API + AddThis Sharing Buttons</title>
<meta name="description" content="Learn how to use Web Share API with conditional AddThis Sharing Buttons">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
<button id="shareButton" onclick="share(this)">
<i class="fas fa-share-alt"></i>
@dennysjmarquez
dennysjmarquez / gist:f93b31850912fdbbb8a8df74f5e368ba
Created November 22, 2019 12:27 — forked from prime31/gist:5675017
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array
@dennysjmarquez
dennysjmarquez / polyfill.js
Created November 7, 2018 15:45 — forked from katio/polyfill.js
Collection of JavaScript polyfills of MDN (Mozilla Developer Network) https://developer.mozilla.org. Polyfill definition in MDN (https://developer.mozilla.org/en-US/docs/Web/Guide/Terminology) "A polyfill is a piece of code that implements a common API that isn't natively supported by a browser". This file can be used in XPages SSJS (Server Side…
"use strict";
/*Start of developer.mozilla.org Polyfill*/
/*WARNING FOR SERVER SIDE JAVASCRIPT IN XPAGES: http://xomino.com/2014/03/02/prototypal-inheritance-of-ssjs-across-the-whole-server-in-xpages/ http://stackoverflow.com/questions/26695434/how-to-clean-ssjs-in-domino-server-after-someone-used-javascript-*/
/*
* Polyfill:
Array.isArray
Array.prototype.indexOf
Array.prototype.lastIndexOf
Array.prototype.forEach
Array.prototype.some
@dennysjmarquez
dennysjmarquez / 18-simple-styles-for-horizontal-rules-hr-css-design.markdown
Created November 3, 2018 19:51
18 Simple Styles for Horizontal Rules (hr CSS Design)