Skip to content

Instantly share code, notes, and snippets.

View darthmall's full-sized avatar

Evan Sheehan darthmall

View GitHub Profile
@darthmall
darthmall / README.md
Last active March 7, 2023 00:37
Suggestions for edyother.com

First off, I hope this isn’t overwhelming. 😅 Don’t feel any obligation to make any of these changes if you don’t want to, these are just suggestions. I’ve tried to provide explanations for each change, so hopefully you can understand why I’m suggesting it and apply it to the rest of your site, if you so choose. If anything’s unclear, don’t hesitate to ask.

I’ve made a number of changes to fix some malformed HTML and improve the semantics of the markup, which will help assistive technology parse your site. I made notes of all of the changes along with some recommendations for additions to your CSS.

@darthmall
darthmall / base.njk
Created August 29, 2022 20:32
Eleventy global data in computed frontmatter
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{ site.title }}</title>
</head>
<body>
<h1>{{ site.title }}</h1>
<img src="{{ hero_img }}">
{{ content | safe }}
@darthmall
darthmall / search.html
Last active January 23, 2019 21:35
Drop down search with no (well, minimal) JavaScript
<!DOCTYPE html>
<head>
<title>Pure CSS Search Form Test</title>
<style>
html {
box-sizing: border-box;
}
*, *::before, *::after {
@darthmall
darthmall / index.html
Last active November 21, 2018 20:10
Example files for a Neovim bug
<script>
var x = {
}
</script>
@darthmall
darthmall / main.js
Last active April 21, 2018 14:46
Convert data formatted as a tabular array into an array of objects for easier use with D3
var table = [
[“STATE”, “DATE”, “ANOTHERTHING”], // Header row
[“ALABAMA”, “2000”, “MORESTUFF”],
[“ALASKA”, “2000”, “OTHERSTUFF”]
];
var data = tableToArray(table[0], table.slice(1));
data[0] // {"STATE": "ALABAMA", "DATE": "2000", "ANOTHERTHING": "MORESTUFF"}
@darthmall
darthmall / .block
Created April 7, 2018 13:47 — forked from jonasius/.block
nested data svg example
license: mit
@darthmall
darthmall / .block
Created March 31, 2018 13:11
fresh block
license: mit
@darthmall
darthmall / .block
Last active March 31, 2018 13:18
Grouped Bars with nest()
license: mit
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
<title>Simon-Ehrlich Wager</title>
</head>
<body>
We couldn’t find that file to show.