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
---SQL CODE--- | |
/* Create Our Tables */ | |
CREATE TABLE recgroup | |
( | |
groupname VARCHAR(15) NOT NULL, | |
leadsinger VARCHAR(15), | |
yearformed VARCHAR(20) NOT NULL, | |
genre VARCHAR(15), |
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
CREATE TABLE authors | |
( | |
au_id CHAR(3) NOT NULL, | |
au_fname VARCHAR(15) NOT NULL, | |
au_lname VARCHAR(15) NOT NULL, | |
phone VARCHAR(12) , | |
address VARCHAR(20) , | |
city VARCHAR(15) , | |
state CHAR(2) , | |
zip CHAR(5) , |
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 { AsBind } from "as-bind"; | |
const wasm = fetch("./path-to-my-wasm.wasm"); | |
const asyncTask = async () => { | |
const asBindInstance = await AsBind.instantiate(wasm); | |
// You can now use your wasm / asbind instance! | |
const response = asBindInstance.exports.myExportedFunctionThatTakesAString( | |
"Hello World!" |
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
// '../node_modules/as-bind/*' should be the relative path to this directory in your project | |
export * from "../node_modules/as-bind/lib/assembly/asbind.ts"; |
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
asc ./node_modules/as-bind/lib/assembly/as-bind.ts your-entryfile.ts [...other cli options...] |
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
# How to create systemd services: http://neilwebber.com/notes/2016/02/10/making-a-simple-systemd-file-for-raspberry-pi-jessie/ | |
# Digital ocean on a mongodb service: https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-16-04 | |
[Unit] | |
Description=Run SystemD as users | |
After=network.target | |
[Service] | |
Type=simple | |
User=[USER HERE] | |
WorkingDirectory=[USER HOME] |
OlderNewer