A (more) complete cheatsheet for Arel, including NamedFunction functions, raw SQL and window functions.
posts = Arel::Table.new(:posts)
posts = Post.arel_table # ActiveRecord
module ArelHelpers | |
extend self | |
def self.included(base) | |
base.extend self | |
end | |
def asterisk(arel_table_or_model) | |
arel_table, columns = case arel_table_or_model | |
when Arel::Table |
active_guide | |
argument-name | |
block_cursor | |
brackethighlighter.curly | |
brackethighlighter.tag | |
class | |
class-inheritance | |
class-name | |
comment | |
comment.block |
all: libsudoku.js sudoku.js sudoku | |
clean: | |
rm -f libsudoku.js sudoku.js sudoku | |
rm -f libsudoku.js.map sudoku.js.map | |
rm -f libsudoku.js.mem sudoku.js.mem | |
# library for using functions in hand written JavaScript code | |
libsudoku.js: libsudoku.c | |
emcc -g4 -Wall -Wextra -std=c11 $^ -o $@ \ | |
-s EXPORTED_FUNCTIONS="['_output', '_sudoku']" \ |