Skip to content

Instantly share code, notes, and snippets.

View ryandoss's full-sized avatar

Ryan Doss ryandoss

View GitHub Profile
@ryandoss
ryandoss / NotificationHandler.php
Last active November 8, 2018 21:10 — forked from CarterBland/PushTokenTrait.php
Push Notifications for Laravel and Expo
<?php
namespace App\Services;
/**
* Model that holds the Expo Push Tokens
*
* Related to App\User
*/
use App\PushToken;
@ryandoss
ryandoss / gist:b580bd54ea461f965965
Created February 16, 2016 22:30
Prodcut Feed Needs
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
<channel>
{exp:channel:entries channel="product" limit="3000" category="{segment_3}" dynamic="no"}
{exp:store:product entry_id="{entry_id}" disable_javascript="yes" disable_form="yes"}
<item>
<title><![CDATA[{title}]]></title>
<link>{url_title_path="products/single"}</link>
<description><![CDATA[{product_description}]]></description>
<g:id>{entry_id}</g:id>
$to = "[email protected]";
$subject = "Battery Outfitters :: LifeCycle Program";
$message = "Message";
$headers = array();
$headers[] = "MIME-Version: 1.0";
$headers[] = "From: Battery Outfitters <[email protected]>";
$headers[] = "Content-type: text/html; charset=iso-8859-1";
$headers[] = "Bcc: JJ Chong <[email protected]>";
mail($to, $subject, message, implode("\r\n", $headers));