Skip to content

Instantly share code, notes, and snippets.

View chrismessina's full-sized avatar
:atom:
Tap tap tapping

Chris Messina chrismessina

:atom:
Tap tap tapping
View GitHub Profile
<script type="text/javascript">
function doLogin(doneUrl) {
/* Tell XAuth.org that a user has just signed into Google on this browser. */
XAuth.extend({
// reveals "someone is logged into Google"
token: "1",
// Expires after 24 hours or if the user explicitly logs out
expire: new Date().getTime() + 60*60*24*1000,
// Allow any domain to read this info (could also be a whitelist of partners)
extend: ["*"],
<html xmlns:og="http://opengraphprotocol.org/schema/">
<head>
<title>The Rock (1996)</title>
<meta property="og:title" content="The Rock" />
<meta property="og:type" content="movie" />
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
...
</head>
...
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:activity="http://activitystrea.ms/spec/1.0/">
<entry>
<title>...</title>
<link rel=”alternate”>...</link>
<id>...</id>
<updated>...</updated>
<author>
<activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
<name>...</name>
handlers:
- url: '/'
static_files: 'index.html index.htm readme.txt readme.markdown readme.md'
upload: '.*'
- url: '/'
static_files: '/'
- url: /favicon\.ico
static_files: favicon.ico
{
"author" : "Chris",
"verb" : "share",
"annotation" : "You go to it",
"object" :
{
"objectType" : "activity",
"recipients" : [
{
"displayName" : "Adina Levine",
@chrismessina
chrismessina / experiments.xml
Last active December 31, 2015 02:39
Facebook iOS 6.8 Experiments
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<string>FBPlaceAttachmentButtonExperimentContext</string>
<string>FBTimelineHeaderCoverDownloadExperimentContext</string>
<string>FBQuickPromotionDebugLogger</string>
<string>FBStorySeenStateExperimentContext</string>
<string>FBTimelineStoriesChunkRequestExperimentContext</string>
<string>FBTimelineStoriesInfiniteScrollingExperimentContext</string>
@chrismessina
chrismessina / uber-in-slack.txt
Created March 30, 2016 00:23
Uber Slack Commands
/uber help
Lists all available commands
/uber estimate to
Gives you a Fare and Time estimate
/uber ride to
Requests an UberX (or equivalent)
/uber status
@chrismessina
chrismessina / ff.py
Last active December 6, 2018 23:21 — forked from elaineo/ff.py
Follow Friday
# -*- coding: utf-8 -*-
from TwitterAPI import TwitterAPI
from collections import Counter
import json
import time
import logging
# Edit ff.py for your account. Go to https://developer.twitter.com/ to get your API keys.
# Don't forget to fill in your screen name (or someone else's).
@chrismessina
chrismessina / facebook.strings
Last active April 9, 2020 22:39
Updates in Facebook.app
# Free Delivery
"\"To help reduce the financial impact of coronavirus (COVID-19), we're offering free delivery labels for new and existing listings in most categories until 30 June 2020. To use this benefit, select {use a free shipping label} as your delivery method. Neither you nor your buyer will be charged a delivery fee. Labels are provided by Facebook. {ShipEngine terms link}\""
"\"We're offering free delivery labels on Marketplace for items in most categories until 30 June 2020. Neither you nor your buyer will be charged a delivery fee when using this delivery method.\""
"\"To use this benefit, you'll create a free label after an order is placed, print out the label, attach it to the package, and schedule a USPS pick-up or drop the package off at your local USPS facility within three working days. Labels are provided by Facebook.\""
"\"Introducing free delivery labels\""
# Instagram Shopping
"Set up Instagram Shopping";
"You'll need a Facebook Page to connect a product catalogue to Instagram. You can choose an existing Facebook Page or make a new one.";
# Identity verification
"\"Verification needed\"",
"\"To verify your information, we'll deposit two small amounts into your bank account and email instructions on what to do next.\"",