Skip to content

Instantly share code, notes, and snippets.

Avatar

Dan Farino danfarino

  • ZipRecruiter.com
  • Santa Monica, CA
View GitHub Profile
@danfarino
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 {
DoStuff()
DoThings()
}
type thing1 struct {}
View len.sh
#!/bin/bash
set -Eeuo pipefail
cat > with.go <<EOF
package main
import (
"fmt"
"strings"
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\webpack.config.dev.js"
(Get-Content $file) -replace "useEslintrc: false", "useEslintrc: true" | Set-Content $file
@danfarino
danfarino / .block
Last active Sep 6, 2017 — forked from mbostock/.block
Animated Quadtree
View .block
license: gpl-3.0
height: 960