Skip to content

Instantly share code, notes, and snippets.

View olvresc's full-sized avatar
💭
I may be slow to respond.

olvresc olvresc

💭
I may be slow to respond.
View GitHub Profile
@olvresc
olvresc / HttpStatusCode.ts
Created July 11, 2022 16:36 — forked from scokmen/HttpStatusCode.ts
Typescript Http Status Codes Enum
"use strict";
/**
* Hypertext Transfer Protocol (HTTP) response status codes.
* @see {@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes}
*/
enum HttpStatusCode {
/**
* The server has received the request headers and the client should proceed to send the request body
@olvresc
olvresc / parent-child-typedef-jsdoc.js
Last active April 9, 2021 14:34
Extend parent and child typedef in JSDoc
/**
* Extend `typedef` example for array of objects
*
* ---
* @typedef {object} Parent
* @property {string|number} id
* @property {object[]} fields
* @property {string} fields[].code
* @property {*} fields[].value
*
@olvresc
olvresc / docker-compose.yml
Created May 23, 2020 10:53 — forked from linuxsimba/docker-compose.yml
docker-compose for MongoDB and Mongoose UI
version: '2'
networks:
mongodb_net:
driver: bridge
ipam:
driver: default
config:
# Change this subnet range if it conflicts with your personal/work network
- subnet: 192.168.213.0/24