This is content converted from Markdown!
Here's a JSON sample:
{
"foo": "bar"
}
<html> | |
<head> | |
<style> | |
h1 { | |
font-family: Calibri; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Hello World!</h1> |
<div class="card"> | |
<div class="card-body"> | |
<app-pagination #pagination [collectionSize]="tableContent.length" [pageSize]="10" [firstLastButtons]="true" [maxSize]="2"> | |
</app-pagination> | |
<table class="table table-sm"> | |
<tbody> | |
<tr | |
*ngFor="let t of tableContent | slice : (pagination.currentPage - 1) * pagination.pageSize : pagination.currentPage * pagination.pageSize"> | |
<td>{{ t.name }}</td> |
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/javascript-node/.devcontainer/base.Dockerfile | |
# [Choice] Node.js version: 16, 14, 12 | |
ARG VARIANT="16-buster" | |
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT} | |
# [Optional] Uncomment this section to install additional OS packages. | |
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | |
# && apt-get -y install --no-install-recommends <your-package-list-here> |
const express = require('express') | |
const multer = require('multer') | |
const app = express() | |
const upload = multer() | |
app.post('/api/parse', upload.any(), async (req, res) => { | |
const body = req.body |
const jwt = require('jsonwebtoken'); | |
const authMiddleware = (req, res, next) => { | |
const authHeader = req.get('Authorization') | |
if (!authHeader) { | |
req.error = "No authentication header found." | |
req.isAuth = false | |
return next() | |
} |
DECLARE @SQL varchar(max) | |
SET @SQL = (SELECT ' TRUNCATE TABLE [' + TABLE_SCHEMA +'].['+ TABLE_NAME + '];' | |
FROM INFORMATION_SCHEMA.TABLES | |
ORDER BY TABLE_SCHEMA DESC | |
FOR XML PATH('')) | |
-- Print Statement | |
-- SELECT @SQL |
function createDownloadLink(str, fileName, contentType) { | |
var blob = new Blob([str], { | |
type: "application/json;charset=utf-8" | |
}); | |
var blobUrl = URL.createObjectURL(blob); | |
var a = document.createElement("a"); | |
a.href = blobUrl; | |
a.setAttribute("download", fileName + ".json"); | |
document.body.appendChild(a); | |
a.click(); |
const asc = (a, b) => a - b | |
const desc = (a, b) => b - a | |
array = array.map(a => new Date(a.dob)).sort(desc)//.reverse() // Date | |
array = array.map(a => a.pocketMoney).sort(asc)//.reverse() // Number | |
console.log(array) |
git reset --soft HEAD^ | |
git push origin [+branchName(master)] --force |