Allows to resize a file input image before upload to the server. The resized image will be attached to original file input. Then you can submit your form without ajax or handle it as you need.
<form>
<label>Select image</label>
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Extensions.Hosting; | |
public class Program | |
{ | |
public static void Main(string[] args) => | |
Host.CreateDefaultBuilder(args) | |
.ConfigureWebHostDefaults(webBuilder => |
<# | |
Downsample PDF and convert to gray if necessary. | |
Requires Ghostscript (gswin64c). | |
#> | |
param ( | |
[string]$indir, | |
[string]$outdir = $indir, | |
[string]$gs = "gswin64c", | |
[string]$dpi = "150" |
html, body, div, span, | |
h1,h2,h3,h4,h5,h6,hgroup, | |
ul,ol,dd, | |
p,figure, | |
pre,table,fieldset,hr, | |
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
font-size: 100%; |
module.exports = new Ajax(); | |
function Ajax() { }; | |
Ajax.prototype.get = function (url, callback, error) { | |
var req = this.makeRequest('GET', url, callback, error); | |
req.send(); | |
}; | |
Ajax.prototype.post = function (url, data, callback, error) { |
public class LinkHeader | |
{ | |
public string FirstLink { get; set; } | |
public string PrevLink { get; set; } | |
public string NextLink { get; set; } | |
public string LastLink { get; set; } | |
public static LinkHeader LinksFromHeader(string linkHeaderStr) | |
{ | |
LinkHeader linkHeader = null; |
USE master | |
GO | |
IF OBJECT_ID('dbo.calendar') IS NOT NULL | |
DROP TABLE dbo.calendar; | |
IF OBJECT_ID('dbo.fn_generate_calendar') IS NOT NULL | |
DROP FUNCTION dbo.fn_generate_calendar; | |
GO |
CREATE SCHEMA [Geo] | |
GO | |
CREATE TABLE [Geo].[Continent]( | |
[Code] [char](2) NOT NULL PRIMARY KEY, | |
[Name] [nvarchar](25) NULL | |
) | |
GO | |
------------------------------ |
# Creates new self-signed certificate for testing purposes | |
new-selfsignedcertificate -dnsname "*.domain.local" -friendlyname "*.domain.local Development Certificate" -certstorelocation "cert:\LocalMachine\My" -notafter (get-date).AddYears(100) |