Skip to content

Instantly share code, notes, and snippets.

View travelton's full-sized avatar

Travis Swientek travelton

View GitHub Profile
$(document).on('DOMNodeInserted', function(e) {
$('.robin-message--message', e.currentTarget).each(function() {
if (/[\u0080-\uFFFF]/.test($(this).text())) {
$(this).parent().remove();
}
if($(this).text().indexOf("Robin Autovoter") > 0){
$(this).parent().remove();
}
if($(this).text().indexOf("voted") > 0){
$(this).parent().remove();
javascript:(function(){setInterval(function() { $('.robin-chat--vote-increase').click(); console.log("Growing.") }, 1000); })()
@travelton
travelton / gist:7680617
Created November 27, 2013 18:22
Send iCal with Mailgun PHP SDK
<?php
require 'vendor/autoload.php';
use Mailgun\Mailgun;
use Sabre\VObject;
// Instantiate the Mailgun Client
$mg = new Mailgun("MG-API-KEY");
$domain = "Your Domain";
$Email = new CakeEmail();
$from = "travis@myreallycooldomain.com";
$to = "my.address@rackspace.com";
$subject = "Test Message!";
$message = "Hey, this is the body of the message.";
$Email->from($from)
->bcc($to)
->replyTo($from)