This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Contact Us</title> | |
</head> | |
<body> | |
<?php | |
if ($_POST['message']) { | |
$message = $_POST['message']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function displayTimeLeft (endDate) { | |
var msUntilDate = endDate - (new Date).getTime(); | |
var secs = Math.floor(msUntilDate / 1000) // total seconds until end date | |
, mins = Math.floor(secs / 60) // total minutes until end date | |
, hours = Math.floor(mins / 60) // total hours until end date | |
, days = Math.floor(hours / 24); // total days until end date | |
secs = secs % 60; // seconds remaining after dividing by 60 -- for display in countdown | |
mins = mins % 60; // minutes remaining after dividing by 60 -- for display in countdown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getScript(source, callback) { | |
var scriptElement = document.createElement('script'); | |
var priorScriptElement = document.getElementsByTagName('script')[0]; | |
scriptElement.async = 1; | |
scriptElement.onload = scriptElement.onreadystatechange = function( _, isAbort ) { | |
if (isAbort || !scriptElement.readyState || /loaded|complete/.test(scriptElement.readyState) ) { | |
scriptElement.onload = scriptElement.onreadystatechange = null; | |
scriptElement = undefined; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $activeEpisodes = $(".episodecell"); | |
var episodesReversedElements = $activeEpisodes.toArray().reverse(); | |
var lastPodcastName; | |
episodesReversedElements.forEach(function (elem) { | |
var $activeEpisode = $(elem); | |
var podcastName = $activeEpisode.find(".titlestack div:first-child").text(); | |
var podcastImgSrc = $activeEpisode.find(".art").attr("src"); | |
if (podcastName !== lastPodcastName) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mailgun = require('mailgun-js')({apiKey: api_key, domain: domain}); | |
const twilio = new require('twilio')(accountSid, authToken); | |
export default function notify (to, msg, options) { | |
if (Array.isArray(to)) { | |
to.forEach((toSingle) => notify(toSingle, msg, options)); | |
return; | |
} | |
if (to.includes("@")) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $activeEpisodes = $(".episodecell"); | |
var episodesReversedElements = $activeEpisodes.toArray().reverse(); | |
var lastPodcastName; | |
episodesReversedElements.forEach(function (elem) { | |
var $activeEpisode = $(elem); | |
var podcastName = $activeEpisode.find(".titlestack div:first-child").text(); | |
var podcastImgSrc = $activeEpisode.find(".art").attr("src"); | |
if (podcastName !== lastPodcastName) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener("keydown", (event) => { | |
if (event.keyCode === 32) { | |
event.preventDefault(); | |
if (player.paused) player.play(); else player.pause(); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// INSTRUCTIONS | |
// 1. paste in Google Chrome dev console | |
// 2. enjoy! | |
// don't display any chat messages by default | |
var style = document.createElement("style"); | |
style.appendChild(document.createTextNode("")); | |
document.head.appendChild(style); | |
style.sheet.insertRule("body .ember-chat .chat-messages .chat-line {display: none;}", 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am panphora on github. | |
* I am panphora (https://keybase.io/panphora) on keybase. | |
* I have a public key whose fingerprint is 516E 6816 D1C8 3E13 587F EE35 3D43 81AC 9975 8203 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Template.DiscoverPage.events({ | |
'click .tab-link': function (e, template) { | |
e.preventDefault(); | |
var $tabLink = $(e.currentTarget); | |
var tabName = $tabLink.data('tab-name'); | |
template.currentTab.set(tabName || 'recent projects'); | |
} | |
}); |