This file contains hidden or 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" | |
) | |
func main() { | |
f := math.SmallestNonzeroFloat64 | |
fmt.Println(f == 5e-324) |
This file contains hidden or 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
panic: test timed out after 10m0s | |
running tests: | |
TestGORM (10m0s) | |
goroutine 43 [running]: | |
testing.(*M).startAlarm.func1() | |
/Users/wchargin/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:2373 +0x1dc | |
created by time.goFunc | |
/Users/wchargin/go/pkg/mod/golang.org/[email protected]/src/time/sleep.go:215 +0x44 |
This file contains hidden or 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 ( | |
"context" | |
"fmt" | |
"os" | |
"runtime/pprof" | |
"sync" | |
"time" |
This file contains hidden or 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
// Algebraic regular expression library. | |
package realg | |
import ( | |
"fmt" | |
"regexp" | |
"strings" | |
) | |
type Expr struct { |
This file contains hidden or 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> | |
<style> | |
@property --fac { | |
syntax: "<percentage>"; | |
initial-value: 0%; | |
inherits: true; | |
} | |
html, | |
body { | |
height: 100%; |
This file contains hidden or 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
FROM dart:3.7.0-sdk | |
RUN apt-get update | |
RUN apt-get install -y protobuf-compiler libprotobuf-dev | |
RUN dart pub global activate protoc_plugin |
This file contains hidden or 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
FROM dart:3.7.0-sdk | |
RUN apt-get update | |
RUN apt-get install -y protobuf-compiler libprotobuf-dev | |
RUN dart pub global activate protoc_plugin |
This file contains hidden or 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> | |
<style> | |
#form { | |
display: flex; | |
gap: 10px; | |
} | |
p { | |
margin: 0.5em 0; | |
} |
This file contains hidden or 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> | |
<div id="root"></div> | |
<script type="module"> | |
import React, { useEffect, useState } from "https://esm.sh/[email protected]"; | |
import ReactDOM from "https://esm.sh/[email protected]"; | |
import { animated, useSpring } from "https://esm.sh/@react-spring/[email protected]"; | |
import { usePrevious } from "https://esm.sh/@uidotdev/[email protected]"; |
This file contains hidden or 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
import * as turf from "@turf/turf"; // v7.0.0 | |
const coords = (pointFeature) => pointFeature.geometry.coordinates; | |
const pointToLineDistanceOptions = { method: "geodesic" }; | |
// ^ setting "planar" doesn't change things substantively | |
let maxError = -Infinity; | |
let argmaxError; | |
let nErrorOverOnePercent = 0; |
NewerOlder