Skip to content

Instantly share code, notes, and snippets.

View elliotlarson's full-sized avatar

Elliot Larson elliotlarson

View GitHub Profile
@briankung
briankung / docker-pry-rails.md
Last active January 2, 2025 05:19
Using pry-rails with Docker

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@donmccurdy
donmccurdy / .block
Last active July 8, 2024 20:30
Custom tiles in Google Maps
license: apache-2.0
@barryblando
barryblando / .eslintrc
Last active September 26, 2020 13:35
VSCode Setup Prettier + ESLint + StyleLint for React
{
"extends": [
"airbnb",
"prettier",
"prettier/react"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
@stevenchanin
stevenchanin / Modify Event
Created June 19, 2020 18:28
OpenLayers - Find point on polygon near mouse click
this.modifyInteraction = new Modify({
// source: this.vectorSource, // all features in vector source
features: this.selectInteraction.getFeatures(), // only selected features
condition: (event) => {
// clear out all selectedVertex properties on all features
this.vectorLayer.getSource().forEachFeature((feature) => {
feature.set("selectedVertex", undefined);
});