Skip to content

Instantly share code, notes, and snippets.

Arel Cheatsheet on Steroids

A (more) complete cheatsheet for Arel, including NamedFunction functions, raw SQL and window functions.

Tables

posts = Arel::Table.new(:posts)
posts = Post.arel_table # ActiveRecord

Table alias

@yankovskiid
yankovskiid / iterm2.md
Created April 5, 2022 15:45 — forked from fnzv/iterm2.md
iterm2 shortcut cheat sheet

Note: You may have to go into Preferences (⌘,) -> Profiles -> Keys and enable Left option (⌥) key acts as: +Esc for the option commands to work.

Modifier Symbol
Option
Command
Control
Caps Lock
Shift
@yankovskiid
yankovskiid / Gilb_metric
Created December 10, 2015 17:54
Gilb_metric
program Jilb_metric;
{$optimization off}
{$APPTYPE CONSOLE}
uses
SysUtils,Windows,
RegExpr in 'regexpr.pas';
const
PATH='D:\Documents and Settings\yankovskiid\Рабочий стол\Метрология\Gilb.txt';
@yankovskiid
yankovskiid / Spen_metric
Created December 7, 2015 22:30
Spen_metric
program Spen_metric_v3;
{$APPTYPE CONSOLE}
uses
Windows,
SysUtils,
RegExpr in 'D:\Documents and Settings\yankovskiid\Рабочий стол\Метрология\regexpr.pas';
type