This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | |
<link href="https://fonts.googleapis.com/css2?family=Dosis&display=swap" rel="stylesheet"> | |
<link href="https://fonts.googleapis.com/css2?family=Bad+Script&display=swap" rel="stylesheet"> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | |
<link href="https://fonts.googleapis.com/css2?family=Dosis&display=swap" rel="stylesheet"> | |
<link href="https://fonts.googleapis.com/css2?family=Bad+Script&display=swap" rel="stylesheet"> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | |
<link href="https://fonts.googleapis.com/css2?family=Dosis&display=swap" rel="stylesheet"> | |
<link href="https://fonts.googleapis.com/css2?family=Bad+Script&display=swap" rel="stylesheet"> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> | |
<link href="https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap" rel="stylesheet"> | |
<!-- add the awesome font here i guess you can use i or span elements to include it within react code --> | |
<body> | |
<h1 id="top" class="text-center"> Markdown Previewer </h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const http = require('http'); | |
const hostname = '127.0.0.1'; | |
const fs = require('fs'); | |
const port = 4000; | |
const readline = require('readline'); | |
const server = http.createServer((req,res) => { | |
const { url }=req; | |
current_url = new URL(`http://${hostname}:${port}${url}`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mode_strip = (strips) => { | |
if (strips.length === 0) return []; | |
let shortestStrip = Infinity; | |
let total = []; | |
strips.forEach((strip) => { | |
if (strip.length < shortestStrip) shortestStrip = strip.length; | |
}); | |
for (let i = 0; i < shortestStrip; ++i) { |