This file contains 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
Transform: AWS::Serverless-2016-10-31 | |
Globals: | |
Function: | |
Runtime: nodejs18.x | |
Description: "Full stack email subscription application for kiosks architected by B.Shelling" | |
Parameters: | |
ROOTDOMAIN: | |
Type: "String" |
This file contains 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
//Create a Custom Gutenberg Block in Wordpress | |
// Author: bshelling | |
// Link: | |
import { registerBlockType } from '@wordpress/blocks'; | |
const homeBlock = <div className="homepage-section-block"><h1 className="title">Headline</h1><p className="description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce in dui sapien. Donec tincidunt diam in libero porttitor, quis feugiat diam mollis. | |
</p><button>Read More</button></div>; | |
registerBlockType('bshelling/hm-section-block',{ |
This file contains 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 os | |
import csv | |
import requests | |
import time | |
imageDir = os.listdir('./players') | |
with open('fifaplayers.csv',newline='') as playersFile: | |
players = csv.reader(playersFile,delimiter=",") | |
for player in players: | |
r = requests.get(player[1]) |
This file contains 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 markdown file | |
*/ | |
const chaperOne = require(‘../Chapter_01/chapter01.md’); | |
/** | |
* CDN Bootstrap stylesheet | |
*/ | |
const markdownCss = ‘https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css'; | |
/** | |
* Create link tag |
This file contains 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>Markdown Example</title> | |
<link rel=”stylesheet” href=”src/style.css”> | |
</head> | |
<body> | |
<div id=”container”></div> | |
<script type=”text/javascript” src=”bundle.js”></script></body> |
This file contains 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>Markdown Example</title> | |
<link rel=”stylesheet” href=”src/style.css”> | |
</head> | |
<body> | |
<div id=”container”></div> | |
<script type=”text/javascript” src=”bundle.js”></script></body> |
This file contains 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
const path = require('path'); | |
const HtmlWebPlugin = require('html-webpack-plugin'); | |
const marked = require('marked'); | |
const renderer = new marked.Renderer(); | |
module.exports = { | |
entry: './src/index.js', | |
output: { | |
filename: 'bundle.js', | |
path: path.resolve(__dirname,'dist') | |
}, |
This file contains 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
const path = require('path'); | |
const HtmlWebPlugin = require('html-webpack-plugin'); | |
const marked = require('marked'); | |
const renderer = new marked.Renderer(); | |
module.exports = { | |
entry: './src/index.js', | |
output: { | |
filename: 'bundle.js', | |
path: path.resolve(__dirname,'dist') | |
}, |
This file contains 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
{ | |
"name": "markdown_article", | |
"version": "1.0 .0 ", | |
"main": "index.js", | |
"license": "MIT", | |
"scripts": { | |
"serve": "./node_modules/.bin/webpack-dev-serve" | |
}, | |
"dependencies": { | |
"html-loader": "0.5.5", |
This file contains 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
{ | |
"markdown.styles": [ | |
"css/mystylesheet.css", | |
"https://cdn.example.com/fontStyle.css" | |
] | |
} |
NewerOlder