This is content converted from Markdown!
Here's a JSON sample:
{
"foo": "bar"
}| # 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> |
| <html> | |
| <head> | |
| <style> | |
| h1 { | |
| font-family: Calibri; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <h1>Hello World!</h1> |
| <system.webServer> | |
| <rewrite> | |
| <rules> | |
| <rule name="AngularJS Routes" stopProcessing="true"> | |
| <match url=".*" /> | |
| <conditions logicalGrouping="MatchAll"> | |
| <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
| <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> | |
| <add input="{REQUEST_URI}" pattern="^/(api)" negate="true" /> | |
| </conditions> |
| using Ionic.Zip; | |
| [HttpPost] | |
| public void ZipFiles(FormCollection collection) | |
| { | |
| using (ZipFile zip = new ZipFile()) | |
| { | |
| zip.AlternateEncodingUsage = ZipOption.AsNecessary; | |
| var file_collection = _repository.GetListOfFiles(); |
| //https://forums.asp.net/t/2071573.aspx?Call+SQL+Server+Function+with+UDT+as+input+parameter | |
| public async Task<int> MainCategorySort(int BrandId, IEnumerable<MainCategoryViewModel> vm, string ModifiedBy) | |
| { | |
| var udt = new DataTable(); | |
| udt.Columns.Add("MainCategoryId", typeof(int)); | |
| udt.Columns.Add("CMSOrder", typeof(int)); | |
| foreach(var item in vm) |
| <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> |
| 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() | |
| } |
| 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 |
| 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 |