Skip to content

Instantly share code, notes, and snippets.

View anish2690's full-sized avatar

Anish George anish2690

View GitHub Profile
// manage assets pre render
render: {
bundleRenderer: {
shouldPreload: (file, type) => {
return ['script', 'style', 'font'].includes(type)
}
}
}
// use custom loader
<table class="c6668" style="box-sizing: border-box; height: 150px; margin: 0 auto 10px auto; padding: 5px 5px 5px 5px; width: 100%; max-width: 550px; background-color: #f5f5f5;" width="100%" height="150" bgcolor="#f5f5f5">
<tbody style="box-sizing: border-box;">
<tr style="box-sizing: border-box;">
<td class="c6692" style="box-sizing: border-box; font-size: 12px; font-weight: 300; vertical-align: top; color: rgb(111, 119, 125); margin: 0; padding: 0;" valign="top">
<table class="c6941" style="box-sizing: border-box; height: 80px; margin: 0 auto 10px auto; padding: 5px 5px 5px 5px; width: 100%;" width="100%" height="80">
<tbody style="box-sizing: border-box;">
<tr style="box-sizing: border-box;">
<td class="c6965" style="box-sizing: border-box; font-size: 12px; font-weight: 300; vertical-align: top; color: rgb(111, 119, 125); margin: 0; padding: 0; width: 20%; text-align: center;" width="20%" valign="top" align="center">
<img src="https://
@anish2690
anish2690 / UploadToCloudinary.swift
Created October 18, 2017 09:47
Cloudinary Code to Upload PDF,DOC,DOCX,XLS etc Swift
let params = CLDUploadRequestParams()
//params.setRawConvert("illegal") // this is producing some error as illegal is not a valid argument
params.setResourceType(.auto)
cloudinary.createUploader().upload(url: documentUrl, uploadPreset: "wyfi3884", params: params,completionHandler: { (response, error) in
urlCloudinary = response?.url
resp = response
error = error
})