This file contains hidden or 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
BEGIN:VCARD | |
VERSION;TYPE=WORK:3.0 | |
FN:Steeve Levy | |
N:Steeve Levy;;;; | |
PROFILE:VCARD | |
ADR:;;21 Forest Court,Snaresbrook;London;;E11 1PL;United Kingdom | |
EMAIL:[email protected] | |
ORG:Nifty Drives | |
URL:http://www.theniftyminidrive.com | |
END:VCARD |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'json' | |
f = open('test/fixtures/raw_email.txt') | |
s = f.read | |
h = { email: s, options: 'long' } # the postmarkapp format | |
File.open('spam-check.json', 'w') { |f| f.write(h.to_json) } | |
results = `curl -X POST "http://spamcheck.postmarkapp.com/filter" -H "Accept: application/json" -H "Content-Type: application/json" -v -d @spam-check.json` | |
results = JSON.parse(results) | |
puts results['report'] |
This file contains hidden or 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
- if locals[:flash] | |
- flash = locals[:flash] | |
- if flash[:warn] || flash[:alert] | |
.alert #{flash[:warn]} #{flash[:alert]} | |
- if flash[:notice] || flash[:success] | |
.alert.alert-success #{flash[:notice]} #{flash[:success]} | |
- if flash[:info] | |
.alert.alert-info #{flash[:info]} | |
- if flash[:error] | |
.alert.alert-error #{flash[:error]} |
This file contains hidden or 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
Sub URL_Get_Query() | |
With ActiveSheet.QueryTables.Add(Connection:= _ | |
"URL;http://webservices.pcquote.com/cgi-" & _ | |
"bin/excelget.exe?TICKER=msft", _ | |
Destination:=Range("a1")) | |
.BackgroundQuery = True | |
.TablesOnlyFromHTML = True | |
.Refresh BackgroundQuery:=False | |
.SaveData = True |
This file contains hidden or 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
#!/bin/sh | |
# | |
# An example hook script that is called after a successful | |
# commit is made. | |
# | |
# To enable this hook, rename this file to "post-commit". | |
curl -d "[email protected]&subject=1 commit featbeat-code committed" http://featbeat.adamloving.com/api/inbound_email |
This file contains hidden or 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
gmail.com | |
yahoo.com | |
hotmail.com | |
aol.com | |
columbus.rr.com | |
sbcglobal.net | |
comcast.net | |
msn.com | |
insight.rr.com | |
earthlink.net |
This file contains hidden or 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
#!/usr/bin/env ruby | |
emails = open('test/fixtures/temp-emails-2.txt').read | |
emails = emails.split("\n") | |
cache = {} | |
found_domains = 0 | |
no_mail_domains = [] | |
found_emails = 0 | |
total_emails = 0 |
This file contains hidden or 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
require 'csv' | |
require 'iconv' | |
contents = open('adams_google_contacts.csv').read | |
contents = Iconv.iconv('UTF-8', 'UTF-16LE', contents).first | |
contents = contents[1..-1] | |
csv = CSV.parse(contents, :headers => true) | |
y = csv.map { |row| row['E-mail 1 - Value'] }.compact.uniq |
This file contains hidden or 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
// inject jQuery | |
(function(){var a=document.createElement("script");a.src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.js";a.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(a)})() | |
// output names and profile URLs | |
$('.UFICommentContent a').each(function(i, el) { console.log($(el).text(), $(el).attr('href')) }) | |