$ npm install
$ npx ts-node cmudict.ts hello world
hh-ah0-l-ow1 w-er1-l-d
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
foo |
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
{ | |
"metadata": { | |
"language": "Julia", | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
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/bash | |
# A short, straightforward bash script to run a solidity contract. | |
# | |
# Prerequisites (Mac with homebrew) | |
# | |
# * brew tap ethereum/ethereum | |
# * brew install ethereum | |
# * brew install solidity | |
# |
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 dotenv from "dotenv"; | |
import {Configuration, OpenAIApi} from "openai"; | |
dotenv.config(); | |
const prompt = process.argv.slice(2).join(" "); | |
const configuration = new Configuration({ | |
organization: process.env.OPENAI_ORG_ID, | |
apiKey: process.env.OPENAI_API_KEY, |
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
[dependencies] | |
active-win-pos-rs = "0.8.3" | |
dioxus = "0.4.3" | |
dioxus-desktop = "0.4.3" | |
dioxus-html = { version = "0.4.3", features = ["serialize", "native-bind"] } | |
wry = { version = "0.28.0", default-features = false, features = ["protocol", "file-drop"] } |