Skip to content

Instantly share code, notes, and snippets.

View torch2424's full-sized avatar
🥁
Makin' Beats

Aaron Turner torch2424

🥁
Makin' Beats
  • Oceanfront Online
  • Long Beach, CA
  • 11:58 (UTC -07:00)
View GitHub Profile
@torch2424
torch2424 / JDBC SQL Database Project
Last active April 1, 2019 21:15
SQL For creating the database for the JDBC project
---SQL CODE---
/* Create Our Tables */
CREATE TABLE recgroup
(
groupname VARCHAR(15) NOT NULL,
leadsinger VARCHAR(15),
yearformed VARCHAR(20) NOT NULL,
genre VARCHAR(15),
@torch2424
torch2424 / SqlPractice
Last active April 16, 2019 21:24
Lab 3 Databases, Sql practice for the lab exams
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) ,
@torch2424
torch2424 / as-bind-article-snippet.js
Created January 4, 2020 04:54
Asbind announcment article JavaScript snipper
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!"
@torch2424
torch2424 / as-bind-announcement-article.ts
Created January 4, 2020 04:56
as-bind announcement article assemblyscript snippet
// '../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";
@torch2424
torch2424 / as-bind-announcement-article.sh
Created January 7, 2020 09:12
Entry point addition for the as-bind assemblyscript compiler step
asc ./node_modules/as-bind/lib/assembly/as-bind.ts your-entryfile.ts [...other cli options...]
@torch2424
torch2424 / systemDAsUser.service
Last active May 6, 2024 18:12
Run a systemd service as a user
# 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]