graph TD;
3 --> 1((1))
3 --> 2((2))
6 --> 4((4))
6 --> 5((5))
10 --> 8((8))
10 --> 9((9))
13 --> 11((11))
13 --> 12((12))
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
[package] | |
name = "rust-sqlite-test" | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
anyhow = "1.0.72" | |
byteorder = "1.4.3" |
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 resolve from '@rollup/plugin-node-resolve'; | |
export default { | |
input: 'index.js', | |
output: { | |
dir: 'output', | |
format: 'cjs', | |
}, | |
onwarn: (error) => { | |
console.log(error); |
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
# Initialize npm module | |
npm init | |
# Install eslint | |
npm i -D eslint | |
# Initialize eslint | |
npx eslint --init | |
# To check syntax, find problems, and enforce code style | |
# JavaScript modules (import/export) |
This document: https://tinyurl.com/ybk38mfh
Slides from intro presentation: https://tinyurl.com/y8hxgrq2
In this workshop we’re going to cover tools for building engaging apps, for real users, dealing with real data. We’ll focus on JavaScript app building and we’ll show you simple and fast ways to add IPFS, IPNS, and even potentially Filecoin so you can create interoperable & unstoppable data for your users.
We'll cover in introduction to Textile’s Threads, Buckets, and Hub tools. We’ll also cover some command-line (CLI) actions, and Textile’s JavaScript Client(s). To prepare, we encourage you to install a few things before we get started:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
I hereby claim:
- I am carsonfarmer on github.
- I am carsonfarmer (https://keybase.io/carsonfarmer) on keybase.
- I have a public key ASDg9OIITd2PRxa3AilDjevMta2t0QVv2d1ofwbC7_zwuwo
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
#!/usr/bin/env node | |
import { cac } from 'cac' | |
import textile, { Block, FeedItem } from '@textile/js-http-client' | |
import readline from 'readline' | |
import chalk from 'chalk' | |
import { emojify } from 'node-emoji' | |
const cli = cac('txtl') | |
const { log } = console |
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
diff --git a/index.js b/index.js | |
index 963d96f..6e7bfc1 100644 | |
--- a/index.js | |
+++ b/index.js | |
@@ -3,6 +3,8 @@ | |
const cli = require('cac')('txtl') | |
const textile = require('@textile/js-http-client').default | |
var readline = require('readline') | |
+const chalk = require('chalk') | |
+const { emojify } = require('node-emoji') |
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
diff --git a/index.js b/index.js | |
index 598b1d1..963d96f 100644 | |
--- a/index.js | |
+++ b/index.js | |
@@ -31,7 +31,31 @@ cli.command('', 'Starts an interactive chat session in a thread.') | |
// Only subscribe to text events on the specified thread | |
textile.subscribe.stream(['TEXT'], opts.thread) | |
.then((stream) => { | |
- log('do something') | |
+ // All js-http-client stream endpoints return a ReadableSream |
NewerOlder