Skip to content

Instantly share code, notes, and snippets.

@prime31
prime31 / gist:5675017
Last active May 28, 2024 11:37
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
@RohitBittu
RohitBittu / index.html
Created October 29, 2016 09:37 — forked from anonymous/index.html
SVG Download Progress
<div id="container">
<svg version="1.1"
width="180px" height="180px" viewBox="0 0 180 180">
<defs>
<filter id="glow" y="-50%" height="180%">
<feGaussianBlur stdDeviation="3" result="coloredBlur"/>
<feMerge>
<feMergeNode in="coloredBlur"/>