This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Quill from 'quill'; | |
const Module = Quill.import('core/module'); | |
const BlockEmbed = Quill.import('blots/block/embed'); | |
class ImageBlot extends BlockEmbed { | |
static blotName = 'image'; | |
static tagName = ['figure', 'image']; | |
static create(value) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[...] | |
<div class="wrapper"> | |
<header> | |
<h1>Logo</h1> | |
<nav> | |
<ul> | |
<li><a href="link-1.html">Link 1</a></li> | |
<li><a href="link-2.html">Link 2</a></li> | |
<li><a href="link-3.html">Link 3</a></li> | |
</ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img data-src="unicorn.jpg" loading="lazy" alt=".." class="lazyload"/> | |
<script> | |
// Select all images with the class "lazyload" | |
const images = document.querySelectorAll("img.lazyload"); | |
// Check if the browser supports the "loading" attribute | |
if ('loading' in HTMLImageElement.prototype) { | |
// If so, we'll update all <img src> to point to the data-src instead | |
images.forEach(img => { | |
img.src = img.dataset.src; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Poetry, words, and tag test</title> | |
<blockquote>Poetry is thoughts that breathe, and words that burn.</blockquote> Thomas Gray | |
<hr> | |
<h4>Definitions</h4> | |
<h5>Fare:</h5> | |
<ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<header> | |
<h1>Super duper best blog ever</h1> | |
<nav> | |
<a href="/">Home</a> | |
<a href="/about">About</a> | |
<a href="/archive">Archive</a> | |
</nav> | |
</header> | |
<main> | |
<article> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var cacheVersion = 1; | |
var currentCache = { | |
offline: 'offline-cache' + cacheVersion | |
}; | |
const offlineUrl = 'offline.html'; | |
this.addEventListener('install', event => { | |
event.waitUntil( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set resolution options | |
var rp = [72,150,300]; | |
// Set EXPORT presets | |
app.pngExportPreferences.exportResolution = 72; | |
app.pngExportPreferences.antiAlias = true; | |
app.pngExportPreferences.pngQuality = PNGQualityEnum.MAXIMUM; | |
app.pngExportPreferences.pngColorSpace = PNGColorSpaceEnum.RGB; | |
app.pngExportPreferences.pngExportRange = PNGExportRangeEnum.EXPORT_RANGE; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The following script will deploy a Laravel 5 applicaion on AWS Elastic Beanstalk. | |
# Add to .ebextensions at the root of your application and name your commands file (e.g., commands.config) | |
# -------------------------------- Commands ------------------------------------ | |
# Use "commands" key to execute commands on the EC2 instance. The commands are | |
# processed in alphabetical order by name, and they run before the application | |
# and web server are set up and the application version file is extracted. | |
# ------------------------------------------------------------------------------ | |
commands: | |
01updateComposer: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Title</title> | |
<link href="stylesheets/main.css" rel="stylesheet" /> | |
</head> | |
<body> | |
<header> | |
<hgroup> |