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": "scrape", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", |
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
# .Brewfile | |
# To install: brew bundle install | |
# Thanks to Casey Liss for pointing me to this! | |
# https://www.caseyliss.com/2019/10/8/brew-bundle | |
cask_args appdir: "/Applications" | |
tap "homebrew/cask-fonts" | |
tap "homebrew/cask-versions" | |
tap "homebrew/cask-drivers" |
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
$count: 8; | |
#site-logo { | |
g[id^="logo"] { | |
opacity: 0; | |
animation-duration: 8s; | |
animation-timing-function: step-end; | |
animation-direction: reverse; // The `g` elements are layered last-to-first based on their names | |
animation-iteration-count: infinite; |
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
$count: 8; | |
@for $i from 1 through $count { | |
@keyframes logo#{$i} { | |
@if $i != 1 { | |
from { | |
opacity: 0; | |
} | |
} |
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
async function getZotero(req) { | |
let nextBtn = document.getElementById("loadNext"); | |
let prevBtn = document.getElementById("loadPrev"); | |
let content = document.getElementById("content"); | |
let links = {}; | |
await axios.get(req).then(function(response) { | |
content.innerHTML = ''; | |
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 sass = require('node-sass'); | |
const fs = require('fs'); | |
const scssFile = 'src/site/_includes/scss/style.scss'; | |
const cssFile = 'src/css/style.css'; | |
sass.render({ | |
file: scssFile, | |
sourceMap: true, | |
outputStyle: 'compressed', |
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 pluginRss = require("@11ty/eleventy-plugin-rss"); | |
module.exports = function(eleventyConfig) { | |
// Lots of other stuff probably goes here | |
eleventyConfig.addCollection("allUpdates", function(collection) { | |
return collection.getFilteredByGlob(["posts/*.md", "photos/*.md", "notes/*.md"]).sort(function(a, b) { | |
return b.date - a.date; | |
}); |
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
module.exports = function(eleventyConfig) { // This only happens once in your template! | |
// Blah blah, whatever other Eleventy stuff you need. | |
eleventyConfig.addLiquidShortcode("vimeo", (vimeoId, aspectRatio) => { | |
return `<div class="aspect-ratio" style="--aspect-ratio: ${aspectRatio}"><iframe src="https://player.vimeo.com/video/${vimeoId}" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen class="video video--vimeo"></iframe></div>`; | |
}); | |
// Blah blah, whatever other Eleventy stuff you need. | |
NewerOlder