Skip to content

Instantly share code, notes, and snippets.

@lkopacz
lkopacz / .block
Last active February 26, 2019 20:49
Reading - Line Chart with Circles D3 V4
license: gpl-3.0
@lkopacz
lkopacz / .block
Created April 28, 2019 20:14
Simple d3.js bar chart
license: mit
@lkopacz
lkopacz / index.html
Last active April 19, 2022 17:40
Skip to content
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<a class="focusable visually-hidden" href="#main">Skip to Content</a>
<header>
<!-- All the Navigation Links and your logo -->
@lkopacz
lkopacz / index.html
Last active May 15, 2019 17:05
Semantic HTML buttons
<!DOCTYPE html>
<html lang="en">
<head>
<title>Title of the document</title>
</head>
<body>
<!--This doesn't work when you press Enter and
there's a click event -->
<div id="button-1" role="button" tabindex="0">
Open
@lkopacz
lkopacz / index.html
Created May 15, 2019 17:04
JavaScript Event Listeners
<!DOCTYPE html>
<html lang="en">
<head>
<title>Title of the document</title>
</head>
<body>
<button id="button">
Open
</button>
<script src="script.js"></script>
@lkopacz
lkopacz / index.html
Created May 30, 2019 00:12
VSCode Code Example Headers
<header>
<nav>
<ul>
<li><a href="http://"></a></li>
<li><a href="http://"></a></li>
<li><a href="http://"></a></li>
</ul>
</nav>
</header>
@lkopacz
lkopacz / .block
Last active July 11, 2019 15:45
Pie Chart (d3js v4)
license: mit
@lkopacz
lkopacz / example.test.js
Created July 25, 2019 17:07
testing library - debug!
import React from "react";
import { render, cleanup } from "@testing-library/react";
import MyComponent from "../MyComponent";
afterEach(cleanup);
it("expects it to test something", () => {
const { debug } = render(<MyComponent />);
@lkopacz
lkopacz / .block
Last active September 18, 2019 20:13
Simple line graph with v4
license: mit
@lkopacz
lkopacz / .block
Created September 18, 2019 19:18
Multiple line graph in v4
license: mit