Skip to content

Instantly share code, notes, and snippets.


Dan Farino danfarino

  • Santa Monica, CA
View GitHub Profile
danfarino / semantics.go
Last active Sep 25, 2020
Golang interface vs. pointer semantics in interfaces
View semantics.go
package main
import "fmt"
type Thinger interface {
type thing1 struct {}
set -Eeuo pipefail
cat > with.go <<EOF
package main
import (
View gist:7dcde6ca3bec51c0f67ad4c3cce19c0e
# This file is a hack that enables .eslintrc in a create-react-app in dev mode on Windows 10.
# Written and tested against react-scripts@2.0.5
# Make sure you replace the default "start" script in package.json with:
# "start": "PowerShell.exe \"%CD%\\enable-eslintrc.ps1\" && react-scripts start",
$file = "node_modules\react-scripts\config\"
(Get-Content $file) -replace "useEslintrc: false", "useEslintrc: true" | Set-Content $file
danfarino / .block
Last active Sep 6, 2017 — forked from mbostock/.block
Animated Quadtree
View .block
license: gpl-3.0
height: 960