Skip to content

Instantly share code, notes, and snippets.

View jkubacki's full-sized avatar

Jakub Kubacki jkubacki

View GitHub Profile
@JasonTrue
JasonTrue / searchkick_and_elasticsearch_guidance.md
Last active March 7, 2024 14:42
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

@matthewisabel
matthewisabel / hexagons.js
Created December 6, 2012 07:47 — forked from zackthehuman/hexagons.js
Drawing a hexagonal grid with HTML canvas
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Canvas Hexagonal Map</title>
<style type="text/css">
canvas {
border:0;
display:block;
margin:0 auto;

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: