I hereby claim:
- I am freshyill on github.
- I am freshyill (https://keybase.io/freshyill) on keybase.
- I have a public key ASCQl-BDW0UfZrr4mEIklk7u774J8jmiNn0I1gY7WRYd-Ao
To claim this, I am signing this object:
module.exports = function(eleventyConfig) { // This only happens once in your template! | |
// Blah blah, whatever other Eleventy stuff you need. | |
eleventyConfig.addLiquidShortcode("youtube", (youtubeId, aspectRatio) => { | |
return `<div class="aspect-ratio" style="--aspect-ratio: ${aspectRatio}"><iframe class="youtube-player video video--youtube" src="https://www.youtube.com/embed/${youtubeId}/" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>`; | |
}); | |
// Blah blah, whatever other Eleventy stuff you need. | |
function smoothScroll() { | |
const internalLinks = document.querySelectorAll('a[href^="#"]'); | |
internalLinks.forEach( | |
function(currentLink) { | |
const linkHref = currentLink.getAttribute('href'); | |
currentLink.addEventListener("click", function(event) { | |
document.querySelector(linkHref).scrollIntoView({ |
for f in * [14:00:21] | |
do | |
zip -r "${f}.zip" "$f" | |
done |
COUNTER=0; | |
for files in *; | |
do | |
if test -f "$files"; then | |
LINES=`wc -l $files | awk '{print $1}'` | |
fi | |
COUNTER=`expr $COUNTER + $LINES`; | |
done |
const fs = require("fs"); | |
const transform = require("camaro"); | |
const dedent = require("deline"); | |
const xmlDir = "test_xml"; | |
fs.readdir(xmlDir, (err, files) => { | |
files.forEach(file => { | |
const xml = fs.readFileSync(xmlDir + "/" + file, "utf-8", (err, data) => { | |
if (err) throw err; |
I hereby claim:
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Child</title> | |
<style media="screen"> | |
#child { | |
color: fuchsia; | |
font-weight: bold; |
const fs = require('fs'); | |
const convert = require('xml2json'); | |
const xmlDir = 'final_xml'; | |
fs.readdir(xmlDir, (err, xmlList) => { | |
for (let xmlFile of xmlList) { | |
fs.readFile(xmlDir + "/" + xmlFile, "utf-8", (err, fileContents) => { |
<?php | |
// PHP memory limit for this site | |
define( 'WP_MEMORY_LIMIT', '128M' ); | |
// Explicitely setting url | |
define( 'WP_HOME', 'http://domain.com' ); | |
define( 'WP_SITEURL', 'http://domain.com' ); | |
// Set url to... whatever. | |
define( 'WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] ); |