Skip to content

Instantly share code, notes, and snippets.

View wnm's full-sized avatar
😀

Wolfram Müller wnm

😀
  • https://presskithero.com
  • Freiburg, Germany
View GitHub Profile
@equivalent
equivalent / README.md
Last active September 29, 2024 08:09
Rails 7 importmaps dropzone.js direct upload ActiveStorage

This is simple implementation of technologies in hobby project of mine built in Rails7 where I need direct upload to S3.

@cbruegg
cbruegg / rewe-lieferservice-verfuegbarkeit.js
Last active July 31, 2024 21:22
Scriptable REWE Lieferservice Verfügbarkeit
let zipCode = "33100"
let widget = new ListWidget()
widget.setPadding(8, 8, 8, 8)
widget.url = "https://shop.rewe.de/"
await createWidget()
Script.setWidget(widget)
Script.complete()
@JasonTrue
JasonTrue / searchkick_and_elasticsearch_guidance.md
Last active July 17, 2024 10:01
Searchkick and Elastic Search guidance

Resources:

https://github.com/ankane/searchkick

Indexing

By default, simply adding the call 'searchkick' to a model will do an unclever indexing of all fields (but not has_many or belongs_to attributes).

In practice, you'll need to customize what gets indexed. This is done by defining a method on your model called search_data

def search_data