Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<title>Words</title>
<script src="https://unpkg.com/react@17/umd/react.development.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js" crossorigin></script>
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
</head>
<body>
<div id='root'></div>
<html>
<head>
<title>React CDN Template</title>
<script src="https://unpkg.com/react@17/umd/react.development.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js" crossorigin></script>
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
</head>
<body>
<div id='root'></div>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
body > div {
width: 100px;
height: 100px;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
body > div {
width: 100px;
height: 100px;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<h1>File Reader</h1>
<input type='file' />
@ericpkatz
ericpkatz / fullstack_setup.md
Last active November 28, 2023 17:19
Minimal setup for full stack node app using Sequelize / pg and React

package.json

{
  "name": "full-stack-demo",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "build": "webpack",
//app
const express = require('express');
const app = express();

//sequelize
const Sequelize = require('sequelize');
const conn = new Sequelize(process.env.DATABASE_URL || 'postgres://localhost/acme_db');
const User = conn.define('user', {
 name: Sequelize.STRING
@ericpkatz
ericpkatz / seven-commands-to-brand-new-environment.md
Last active March 10, 2024 13:39
Cloud 9 - Setting Up Full Stack Environment by installing postgres and setting up credentials with github
@ericpkatz
ericpkatz / acme_api.md
Last active May 30, 2020 14:27
Grab User from Acme API

ACME API can be found here

  • The API allows CORS requests
  • The models described in the API
    • Users
    • Products
    • Companies
    • Offerings (Many to Many Relationship between Company and Product)
    • CompanyProfits (Belong to a Company)
    • FollowingCompany (Many to Many between User and Company)