Skip to content

Instantly share code, notes, and snippets.

View tantek's full-sized avatar
👋
he/him

Tantek Çelik tantek

👋
he/him
View GitHub Profile
@apparentlymart
apparentlymart / Proposal.md
Created December 5, 2015 20:17
HTML Social Network

HTML Social Network

Back in July of 2008 I started thinking about HTML microformats for linking together and discovering social objects on the web.

I later discussed this with folks at the Internet Identity Workshop and after a few rounds of discussion we ended up working on Activity Streams instead, which shifted the focus to machine-readable descriptions of actions on social objects. However, the social object research here was the initial basis of what went on to become the "Object Types" in Activity Base Schema, after many iterations.

@otherjoel
otherjoel / webmention.php
Last active February 20, 2023 20:57 — forked from adactio/webmention.php
Add simple file logging
<?php
# Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
# http://creativecommons.org/publicdomain/zero/1.0/
#
# Webmention Emailer
# ------------------
#
# An incremental evolution of Jeremy Keith's "minimum viable" webmention,
# I've added some minimal code to have webmentions emailed to an address
@aaronpk
aaronpk / webmention.html
Last active March 17, 2019 14:06
Display webmention count with no jQuery or external Javascript libraries
<span id="webmention-count"></span>
<script type="text/javascript">
function loadWebmentions(data){
document.getElementById("webmention-count").innerHTML = data.count + " mentions";
}
</script>
<script type="text/javascript" src="http://webmention.io/api/count?jsonp=loadWebmentions&amp;target=http://example.com/page/100"></script>
@aaronpk
aaronpk / indieauth-client.php
Created September 9, 2012 16:44
Simple PHP example of using the indieauth.com API
<?php
session_start();
if(array_key_exists('token', $_GET)) {
// Verify the token with indieauth.com
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://indieauth.com/session?token=' . $_GET['token']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$auth = json_decode(curl_exec($ch));
// If we got a reply, store the domain in the session