Skip to content

Instantly share code, notes, and snippets.

View seidtgeist's full-sized avatar
🏢

Stephan Seidt seidtgeist

🏢
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ehd on github.
  • I am ehd (https://keybase.io/ehd) on keybase.
  • I have a public key whose fingerprint is B2E9 025D 1D32 6545 E790 67AB 7CB7 54CD 6EBF 962F

To claim this, I am signing this object:

'use strict';
/*
BAT SHIT FUCKING CRAZY IDEA DROP ZONE:
1. don't have a central server. have any peer be a server.
will jsondiffpatch's "server" stuff work in a browser though?
*/

voxatar - distributed voxel avatars

  1. When joining game ask for username
  2. Look for username.github.com/voxatar/voxatar.png
  3. Use as skin

Auth can be added later, a central hub where people can also upload voxatars can also be added later (I grabbed voxatar.com)

(name credit goes to @rolnaaba)

@seidtgeist
seidtgeist / bound.js
Last active December 18, 2015 12:29
// Motivation:
//
// I see myself writing this quite often:
f(_.bind(obj.m, obj))
// but I could write:
f(bound(obj, 'm'));

Keybase proof

I hereby claim:

  • I am ehd on github.
  • I am ehd (https://keybase.io/ehd) on keybase.
  • I have a public key whose fingerprint is A9CE E967 3C80 1787 6F0F 0E02 21DB 73E9 9403 D1BE

To claim this, I am signing this object:

function couldThrow(hopefullyJSON) {
var object = JSON.parse(hopefullyJSON);
return Promise.fulfilled(object);
}
function safe(hopefullyJSON) {
return Promise.fulfilled().then(function() {
return couldThrow(hopefullyJSON);
});
}
Verifying that +ehd is my blockchain ID. https://onename.com/ehd

AWS IoT questions

  • Can I use IoT to send messages between phones and web browsers? (I’ve previously set up DynamoDB, Cognito & Lambda for signup and messaging)
  • Is there anything tying multiple devices together to social identities? (E.g. my iPhone, iPad, Safari on macOS)
  • Any limitations that would come to mind with the above use cases?
#!/bin/sh
# First argument is video URL or ID
# Second argument is the question
# set -uo pipefail
# Get video ID from URL
VIDEO_ID=$(echo $1 | cut -d'=' -f 2)
#!/bin/zsh
set -euo pipefail
SYSTEM_PROMPT=$(cat <<EOF
You're given text extracted from a PDF or OCRed from an image.
It's relating to a payment.
Analyze it step by step: