Skip to content

Instantly share code, notes, and snippets.

@judsonmitchell
judsonmitchell / index.js
Created April 16, 2021 14:48
RESTful API using express and sqlite3
const sqlite3 = require('sqlite3').verbose();
const db = new sqlite3.Database('wedding.db');
const express = require('express');
const restapi = express();
restapi.get('/', function(req, res){
db.all('SELECT * FROM wedding', function(err, rows){
res.json(rows);
});
})
@judsonmitchell
judsonmitchell / quiz2_rubric.md
Created April 15, 2019 18:34
Quiz 2 Grading Rubric

Part 1 (10 points)

  • quiz2.js file is properly named and in correct directory (2)
  • properly created string (2)
  • properly created number variables (2)
  • properly created function which follows the assignment (2)
  • when called, function returns the correct information (2)

Part 2 (10 points)

1. Javascript Review. [See here](https://jsbin.com/doquji/7/edit?js,console)
2. Create an HTML File
3. Add jquery and a css file.
4. Be able to do headings, paragraphs, forms, lists, hyperlinks, and tables.
5. Apply jQuery to the HTML and either modify the page or return some data.
@judsonmitchell
judsonmitchell / quiz1key.md
Created February 9, 2019 20:06
Answers to Quiz 1

Quiz 1 grading key:

  1. (4 points). Directory properly created and correctly named file placed in directory
  2. (4 points). No, the file has not been modified
 
 sha256sum phone_dump.csv
 
@judsonmitchell
judsonmitchell / Markdown Preview Bookmarklet
Last active December 1, 2015 14:28 — forked from fklingler/Markdown Preview Bookmarklet
This bookmarklet gives you a markdown editor/previewer in your browser in a single click.
data:text/html, <script type="text/javascript" src="https://cdn.rawgit.com/MrMitch/downatello/develop/downatello.js"></script><style type="text/css">#md,#html{position:absolute;top:0;bottom:0;padding:5px;border:none;outline:none;font-family:monaco,consolas,sans-serif;font-size:1em}#md{resize:none;left:0;width:48%;border-right:1px solid black}#html{left:50%;right:0;font-family:sans-serif}</style><textarea id="md" oninput="document.getElementById('html').innerHTML=downatello.toHtml(document.getElementById('md').value);"></textarea><div id="html"></div>

Keybase proof

I hereby claim:

  • I am judsonmitchell on github.
  • I am judsonmitchell (https://keybase.io/judsonmitchell) on keybase.
  • I have a public key whose fingerprint is 0150 6206 C29E 82B0 B8C6 C300 0CCE 0DE6 05AC 57B5

To claim this, I am signing this object:

@judsonmitchell
judsonmitchell / crimbook-on-ipfs.png
Last active February 15, 2018 03:24
Publishing My App to IPFS
crimbook-on-ipfs.png