This is a SCRIPT-8 cassette.
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
// SPDX-License-Identifier: MIT | |
// by William Hilton (https://github.com/wmhilton) | |
// written using remix.ethereum.org | |
pragma solidity >=0.8.3 <0.9.0; | |
/** | |
* @dev ERC-721 interface for accepting safe transfers. | |
* See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md. | |
*/ | |
interface ERC721TokenReceiver { |
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
<div> | |
<input id="repository" type="text" style="width: 50em" title="Tip: enter a private repo URL to see the credentialManager plugin prompt for a password."> | |
<button type="button" id="cloneButton">Clone</button> | |
</div> | |
<output id="log" style="white-space: pre; font-family: monospace;"></output> | |
<script src="https://unpkg.com/magic-portal"></script> | |
<script> | |
let worker = new Worker("./worker.js") |
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
<div> | |
<input id="repository" type="text" style="width: 50em" title="Tip: enter a private repo URL to see the credentialManager plugin prompt for a password."> | |
<button type="button" onClick="clone()" id="cloneButton">Clone</button> | |
</div> | |
<output id="log" style="white-space: pre; font-family: monospace;"></output> | |
<script src="./proxyReceiver.js"></script> | |
<script src="./proxySender.js"></script> | |
<script> | |
let worker = new Worker("./worker.js") |
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
#b:: | |
Width := QueryScreenWidth() | |
if (Width = 3840) { | |
ChangeResolution(1920, 1080) | |
} else { | |
ChangeResolution(3840, 2160) | |
} | |
QueryScreenWidth() | |
{ |
Browser must have a global DatArchive
object. https://beakerbrowser.com/docs/apis/dat.html
I think these ones could be supported in a client-side script using BrowserFS
- new DatArchive(url)
- DatArchive.create(opts?)
- DatArchive.fork(url, opts?)
- DatArchive.selectArchive(opts?)
- DatArchive.resolveName(url)
- url
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
var signalhub = require('signalhub') | |
var hub = signalhub('my-app', [ | |
'https://signalhub-jccqtwhdwc.now.sh/' | |
]) | |
hub.subscribe('my-channel') | |
.on('data', function (message) { | |
console.log('new message received', message) | |
}) |
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
// MIT License, Copyright William Hilton <wmhilton@gmail.com> | |
// Implement the proposed W3C Quota Management API (circa 2017) | |
navigator.storageQuota = { | |
get supportedTypes () { | |
let types = [] | |
if (navigator.webkitTemporaryStorage) types.push('temporary') | |
if (navigator.webkitPersistentStorage) types.push('persistent') | |
return types | |
}, | |
queryInfo (type) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title></title> | |
</head> | |
<body> | |
<a href="/app.html">app.html</a> | |
<br> |
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 "wmhilton.id" is my Blockstack ID. https://onename.com/wmhilton |
NewerOlder