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 / 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