Skip to content

Instantly share code, notes, and snippets.

View angiejones's full-sized avatar
💭
coding...

Angie Jones angiejones

💭
coding...
View GitHub Profile
@angiejones
angiejones / book-reviews.js
Last active September 14, 2023 14:06
Completed code from Web5.js Workshop (v0.7.11)
import {Web5} from '@tbd54566975/web5';
const {web5, did: userDid} = await Web5.connect();
console.log(userDid);
await web5.did.resolve(userDid).then(console.log);
//Schema we'll use for Book Reviews
const schema = {
"context": 'https://schema.org/',
"type": 'Review',
@angiejones
angiejones / bookreviews.js
Created July 28, 2023 07:50
ChatGPT-generated book reviews
const schema = {
"context": "https://schema.org/",
"type": "Review",
get uri() { return this.context + this.type}
}
let reviews = [
{
"@context": schema.context,
"@type": schema.type,
@angiejones
angiejones / ShadowDomTests.java
Last active September 11, 2020 21:35
Shadow Dom Elements with Selenium
WebElement shadowRoot = (WebElement)((JavascriptExecutor)driver)
.executeScript(
"return arguments[0].shadowRoot",
driver.findElement(By.id("component-id")));
shadowRoot.findElement(By.id("child-element")).getText();