Skip to content

Instantly share code, notes, and snippets.

View jrichardsz's full-sized avatar

JRichardsz jrichardsz

View GitHub Profile
# Freelancing Reviews Samples
=======================================================================
****
=======================================================================
## Buyer Reviews to Sellers
=======================================================================
@jrichardsz
jrichardsz / Server.js
Last active January 12, 2023 17:40 — forked from harsh317/Server.js
comments code sample
const express = require("express");
const app = express();
const server = require("http").Server(app);
const { v4: uuidv4 } = require("uuid");
const io = require("socket.io")(server);
const { ExpressPeerServer } = require("peer");
const url = require("url");
const peerServer = ExpressPeerServer(server, { // Here we are actually defining our peer server that we want to host
debug: true,
});
@jrichardsz
jrichardsz / d3-barchart.html
Last active November 8, 2022 16:31 — forked from achillesp/d3-barchart.html
barchart using d3 with scale and axes, barchart bar chart
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Simple Bar Chart</title>
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<style>
.bar:hover {
fill: cyan;
@jrichardsz
jrichardsz / submit.md
Last active November 1, 2022 18:17 — forked from tanaikech/submit.md
nodejs snippert Multipart-POST Request Using Node.js multipart/form-data

Multipart-POST Request Using Node.js

Here, I introduce 2 scripts for uploading files to Slack using Node.js as samples. These 2 sample scripts are for uploading files to Slack.

Sample script 1:

  • You can upload the zip file by converting byte array as follows.
    • At first, it builds form-data.
    • Adds the zip file converted to byte array and boundary using Buffer.concat().
    • This is used as body in request.
@jrichardsz
jrichardsz / index.html
Created October 18, 2022 04:56 — forked from teyc/index.html
Monitoring Health Checks
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Health Check Status</title>
<link href="//unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="index.css">
@jrichardsz
jrichardsz / index.html
Created October 18, 2022 04:54 — forked from ClearlyElevated/index.html
Status Monitor
<h1>STATUS MONITOR</h1>
<fieldset>
<legend>DISCORD BOT STATUS</legend>
<table>
<tr>
<td>Lutu Beta</td>
<td class="value"><span>Online</span></td>
</tr>
<tr>
<td>Boost Bot</td>
@jrichardsz
jrichardsz / 200.html
Created October 18, 2022 04:49 — forked from michel47/200.html
status code 200
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>200 - This page on your side of the Universe</title>
<!-- Google font -->
@jrichardsz
jrichardsz / status.html
Created October 18, 2022 04:47 — forked from binout/status.html
Status Page
<html>
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
</head>
<body>
<h1 class="title">💚 Alan - Status</h1>
<section class="section">
@jrichardsz
jrichardsz / beautiful.rest.api.docs.in.markdown.md
Created August 10, 2022 21:05 — forked from azagniotov/beautiful.rest.api.docs.in.markdown.md
Example to create beautiful REST API docs in Markdown, inspired by Swagger API docs.
/
# API Design Patterns And Use Cases
This document lists various useful patterns for API design. We encourage API developers to consider the following patterns as a guide while designing APIs for services.
### Document Semantics, Formatting, and Naming
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC 2119](https://www.ietf.org/rfc/rfc2119.txt).