View find_el_causing_hscroll.html
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"/> | |
</head> | |
<body> | |
<div id="outer"> | |
<div id="inner"> | |
<div id="third" style="width: 2500px;"> | |
This is probably the issue. |
View rainbow.html
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> | |
<title>The Rainbow</title> | |
<style> | |
body { | |
background-color: #333; | |
font-weight: bold; | |
font-size: 64px; | |
color: white; |
View sse.go
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
package webutil | |
import ( | |
"net/http" | |
"time" | |
) | |
// ByteWriter is a one-off utility type for writing to http.ResponseWriter | |
type ByteWriter struct { | |
http.ResponseWriter |
View gomaps.go
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
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"runtime" | |
"strconv" | |
"sync" | |
"time" | |
) |