Skip to content

Instantly share code, notes, and snippets.

I want you to play the role of a human scientist and put forward a guess of an explanation for some phenomena that you have never heard before. As your assistant, I can run experiments to help you determine if your explanation is correct. Please choose something to explain that I can help you build confidence in using regular items an engineer would have. there is a concept of "risky guess" - one which, if confirmed, would be surprising, yet fits with a conjectured explanation that is consistent with all other known explanations. can you come up with hypotheses like this that are both novel and risky in this sense?
Once you disclose your hypothesis, before describing an experiment, first give a full explanation (citing existing knowledge as needed) to describe why the experiment may succeed in showing evidence of your hypothesis. Please be extremely detailed in your explanation, ensuring that you've made an explanation that would fully fit existing knowledge and be hard to vary.
You are a programming and shell assistant. You are also a voice to text robot. At the end of these instructions you will see a prompt. The first word of the prompt may be a command. Your output should always be a code block with no commentary. For the "say" command, you should just repeat what is said after the command in a code block with no commentary. For the "eval" command, you should simulate the execution of what is said as thought it was entered into a ruby interpreter (irb) and then emit what the interpreter would have evaluated it to into a code block, with no commentary. For the "ask" command, you are to answer the question following the command and put the answer, into a code block, with no commentary. For the "summarize" command, you are to write a brief article (up to 4 or 5 sections) of the information you know about whatever follows the command, in markdown, in a code block, without commentary. For the "tweet" command, you are to write a tweet of less than 280 characters based on the request fo
<html>
<head><script src="https://webspace.run"></script></head>
<body>
</body>
</html>
const ALLOWED_ORIGIN_SUFFIXES = ["notify.windows.com", "android.googleapis.com", "fcm.googleapis.com", "updates.push.services.mozilla.com", "gateway.push.apple.com"];
const CORS_PROXY_HOST = "https://proxy.web-push.workers.dev";
addEventListener("fetch", e => {
const request = e.request;
const origin = request.headers.get("Origin");
// eslint-disable-next-line no-useless-escape
const isCorsProxy = request.url.indexOf(CORS_PROXY_HOST) === 0;
const proxyUrl = new URL(CORS_PROXY_HOST);
@gfodor
gfodor / print.js
Created November 16, 2021 21:54
print all users to console
javascript:console.log(Object.values(window.APP.hubChannel.presence.state).map(v => v.metas[0].profile.displayName).join(" "));
javascript:(async function() {
const profile = window.APP.store.state.profile;
if (profile.avatarId === "9ioqyYv") {
profile.avatarId = "TG42nCt";
window.APP.store.update({ profile });
window.APP.hubChannel.endStreaming();
console.log("Exited streamer mode.")
} else {
profile.avatarId = "9ioqyYv";
window.APP.store.update({ profile });
@gfodor
gfodor / hubs-director.txt
Last active August 23, 2022 22:45
Hubs director bookmarklet
javascript:(async function() {
/* Hubs Director Mode bookmarklet - Lets you easily create a custom lerp/slerp
* of the camera, optionally tracking a user, for recording nice videos of hubs.
*
* Director state is stored in the URL, so you can pass URLs around to share shots.
*
* To use:
*
* Enter a hubs room, move to the desired start position, and run the bookmarklet.
* The page will refresh and drop you into the room again.
https://jel.app/i/jZQ8fQp
@gfodor
gfodor / gist:54df680698f4cc9721d6300547425273
Last active February 23, 2021 18:14
Jel Director Mode
This is a quick overview of the (very slapped together) director tools in Jel.
The tools let you:
- Switch to an external object, like a duck, as the camera
- Move the camera along a linear track (either once, or repeatedly back and forth) by 'marking' two points in 3d space
- Track the avatar with the camera, or have the camera maintain it's proper orientation
Simple walk through (after adding query variable ?director=true below)
- Go to a world
// Author : Greg Fodor
// License: MIT
const {
Color,
DepthTexture,
LinearFilter,
NoBlending,
RGBAFormat,
ShaderMaterial,