Skip to content

Instantly share code, notes, and snippets.

@strarsis
strarsis / max_width_email.html
Created Sep 25, 2020 — forked from elidickinson/max_width_email.html
Email Template trick: max-width with outlook
View max_width_email.html
<!--[if mso]>
<center>
<table><tr><td width="580">
<![endif]-->
<div style="max-width:580px; margin:0 auto;">
<p>This text will be centered and constrained to 580 pixels even on Outlook which does not support max-width CSS</p>
</div>
<!--[if mso]>
@strarsis
strarsis / datetime.js
Created Jul 2, 2020
Complied DateTime.ts from Litepicker
View datetime.js
var DateTime = /** @class */ (function () {
function DateTime(date, format, lang) {
if (date === void 0) { date = null; }
if (format === void 0) { format = null; }
if (lang === void 0) { lang = 'en-US'; }
if (format) {
this.dateInstance = (DateTime.parseDateTime(date, format, lang));
}
else if (date) {
this.dateInstance = (DateTime.parseDateTime(date));
@strarsis
strarsis / spec.json
Last active May 30, 2020
OpenAPI Generator issue reproducing JSON
View spec.json
{
"openapi": "3.0.0",
"info": {
"title": "Test REST-API",
"version": "1.0"
},
"servers": [
{
"url": "https://api.example.com/v1"
}
View down.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:d9fb0329e0b313f4d00b2ec53f11eaa8
Complete name : input.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (mp42/mp41/isom/avc1)
File size : 7,07 MiB
Duration : 20s 160 ms
Overall bit rate : 2 943 kb/s
Encoded date : UTC 2017-06-20 10:37:33
Tagged date : UTC 2017-06-20 10:37:33
View bow-contures.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View shell.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View shell.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View db-06.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View postcss.config.js
module.exports = {
map: {
inline: false,
},
plugins: [
require('postcss-css-variables'),
],
}
You can’t perform that action at this time.