I hereby claim:
- I am superstrong on github.
- I am robbiemitchell (https://keybase.io/robbiemitchell) on keybase.
- I have a public key whose fingerprint is 41B4 49F8 E294 3828 97D1 00F5 2EBA 8CA9 30C1 E063
To claim this, I am signing this object:
#!/bin/bash | |
# Set the ROOM_ID & AUTH_TOKEN variables below. | |
# Further instructions at https://www.hipchat.com/docs/apiv2/auth | |
ROOM_ID=XXX | |
AUTH_TOKEN=XXX | |
MESSAGE="Hello world!" | |
curl -H "Content-Type: application/json" \ |
/* gmail-refreshest: a custom gmail css by @roycifer */ | |
/* some button styles borrowed from twitter bootstrap */ | |
/* @match mail.google.com */ | |
body, td, input, textarea, select {font-family:"Helvetica Neue",helvetica,arial,sans-serif;} | |
.w-asV > .nH:last-child {display: none;} | |
.w-asV > .nH > .no , #gbx1, #gbx2{background-image: -webkit-linear-gradient(top,white,#F7F7F7);} | |
.w-as1.nr{height:27px;border-radius:3px;} | |
.w-asV.aiw{height:60px;} | |
.gbeti#gb .gbqldr, .gbet#gbqlw .gbqldr, .gbesi#gb .gbqldr, .gbes#gbqlw .gbqldr{max-height:35px;margin-top:3px;} |
I hereby claim:
To claim this, I am signing this object:
delay (2) | |
idle {} | |
on idle | |
my checkApp() | |
return 9 | |
end idle | |
on checkApp() | |
global frontApp, frontAppName, windowTitle |
javascript:window.location="https://gmail.com/#search/rfc822msgid:"+encodeURIComponent(window.document.body.innerHTML.match(/Message-ID: <(.*)>/)[1])+"/"+encodeURIComponent(window.location.search.toString().slice(1).split('&').filter(function(x){return x.slice(0,3) == "th="})[0].slice(3)); |
<html> | |
<head> | |
<title>{{ content.html_title }}</title> | |
<meta name="description" content="{{ content.meta_description }}"/> | |
<meta name="robots" content="noindex"> | |
<style> | |
.spinner { | |
position: fixed; | |
top: 50%; | |
left: 50%; |
// Example use in a cell: "=map(90210)" (without quotes) | |
// Example output: "Beverly Hills, CA 90210" | |
function map(zip_code) { | |
// Make HTTP Request | |
var url = 'http://api.zippopotam.us/us/' + zip_code; | |
var response = UrlFetchApp.fetch(url); | |
var json = response.getContentText(); | |
var data = JSON.parse(json); |
This code is for a website that collects email addresses but no registrations (e.g., passwords, etc.). The requirements for the project go further, but this is a necessary first step. | |
Project requirements: | |
- Simplify tracking implementation | |
- Use a userId, not email address, as primary key | |
- Avoid using a database on email-only website | |
Segment is useful as a canonical tracker -- a single place to track identity, pageviews. It works best, though, when a server generates a userId and calls `identify`, ensuring the userId passed through to all connected services. | |
Here, in lieu of a server-generated userId, we check for a Segment userId in the cookie. If it exists, we use it. If it doesn't, we grab Segment's anonymousId and re-use it as userId. This, along with the other form fields in a simple form, are used in an `identify` call that ensures all connected services get the same userId. |
userId is a better way to join data at the user level across various tracking/email/etc. services. Why? | |
- UserId is stable (e.g., update a user's email address from anywhere by calling Segment identify with the same userId.) | |
- UserId is not PII (e.g., Google Analytics explicitly forbids using PII as a userId) | |
So, in addition to manually adding a subscriber to your Mailchimp list, this will explicitly assign a userId to each new subscriber and identify the user via Segment. | |
Quick steps: | |
- Get your Mailchimp list embed code here: Lists -> {list} -> Signup forms -> Embedded forms | |
- Use it to replace the three values in the "action" line below with your own. Also change "us6" if yours is different. | |
- In the hidden input field with id "bot-field", replace the name with the one from your own embed code. |