- 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?
This file contains 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
from pprint import pprint | |
import random | |
import string | |
from vertexai.generative_models import GenerationConfig, GenerativeModel | |
from google.api_core.exceptions import InvalidArgument | |
random.seed(1337) | |
prompt = "Respond according to the JSON schema." | |
num_properties = 40 |
This file contains 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
import pytz | |
from datetime import datetime, timedelta | |
import csv | |
timezones = [ | |
"Europe/Berlin", | |
"Australia/Sydney", | |
] | |
timezones = pytz.common_timezones |
This file contains 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/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: |
This file contains 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 | |
# 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) |
This file contains 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
Verifying that +ehd is my blockchain ID. https://onename.com/ehd |
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:
This file contains 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
'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? | |
*/ |
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:
This file contains 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
function couldThrow(hopefullyJSON) { | |
var object = JSON.parse(hopefullyJSON); | |
return Promise.fulfilled(object); | |
} | |
function safe(hopefullyJSON) { | |
return Promise.fulfilled().then(function() { | |
return couldThrow(hopefullyJSON); | |
}); | |
} |
NewerOlder