Skip to content

Instantly share code, notes, and snippets.

@Andresdst
Andresdst / categories.js
Last active August 14, 2023 19:10 — forked from urielhdz/categories.js
CRUD de categories
const Category = require('../models').Category;
module.exports = {
create: function(req,res){
Category.create({
title: req.body.title,
color: req.body.color
}).then(result =>{
res.json(result);
@willurd
willurd / web-servers.md
Last active May 17, 2024 05:43
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000