Skip to content

Instantly share code, notes, and snippets.

View skylerkatz's full-sized avatar

Skyler Katz skylerkatz

View GitHub Profile
@skylerkatz
skylerkatz / e360_pwa_files.md
Created September 15, 2020 18:48
Basic PWA Manifest Files (as of September 2020)

Here is what our default worker.js file includes

importScripts("https://storage.googleapis.com/workbox-cdn/releases/5.1.2/workbox-sw.js");
if (workbox) {
  workbox.setConfig({
    debug: false,
  });
  workbox.loadModule("workbox-core");
  workbox.loadModule("workbox-precaching");
  workbox.loadModule("workbox-strategies");
@skylerkatz
skylerkatz / prayer-acknowledgement.php
Created August 15, 2018 23:37
Use AJAX to submit prayer acknowledgement link
<?php
$prayers = getContent(
'prayer',
'display:list',
'before_show:__pagination__',
'emailencode:no',
'json',
'nocache'
);
?>
@skylerkatz
skylerkatz / DnsLookup.php
Created February 2, 2018 17:07
A quick and dirty PHP wrapper around the dig command for basic DNS inforamtion about a domain.
<?php
class DnsLookup
{
public static function dig($url)
{
$host = $url;
$digClassArray = ['A', 'MX', 'NS', 'SOA', 'CNAME'];
$finalOutput = [];