Skip to content

Instantly share code, notes, and snippets.

@jrosell
jrosell / gist:c275501cbec4c2e2cfdf16bb755d6273
Created May 29, 2018 20:18 — forked from winterbe/gist:5958387
Reading the Body Text of a javax.mail.Message
private boolean textIsHtml = false;
/**
* Return the primary text content of the message.
*/
private String getText(Part p) throws MessagingException, IOException {
if (p.isMimeType("text/*")) {
String s = (String)p.getContent();
textIsHtml = p.isMimeType("text/html");
@jrosell
jrosell / amazon-autocomplete
Created April 5, 2018 07:54 — forked from derekmartinla/amazon-autocomplete
Leverage Amazon To Find High Commercial Intent Keywords
/**********************************************************************************************************************
* Amazon Autocomplete Tool
* Leverage the Amazon Autocomplete feature to find highly commercial keyword opportunities.
* Export the results for efficient importing into Google Adwords
* Version 1.0
* Created By: Derek Martin
* DerekMartinLA.com or MixedMarketingArtist.com
**********************************************************************************************************************/
var hashMapResults = {};
@jrosell
jrosell / google_trends_query.js
Created November 24, 2017 19:57 — forked from hanxue/google_trends_query.js
Google Apps Script for querying Google trends
@jrosell
jrosell / Make Exact Match Exact.js
Created October 31, 2017 10:11 — forked from BrainlabsDigital/Make Exact Match Exact.js
Adds negatives for any search query that doesn't actually *exactly* match an exact match keyword.
/**
*
* Make Exact Match Exact
*
* Adds negatives for any search query that doesn't actually exactly match an exact
* match keyword.
*
* Version: 2.0
* Google AdWords Script maintained on brainlabsdigital.com
*
@jrosell
jrosell / .htaccess
Created August 1, 2016 12:56 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/