Skip to content

Instantly share code, notes, and snippets.

View gramian's full-sized avatar
☯️

Christian Himpe gramian

☯️
View GitHub Profile
@gramian
gramian / versioninfo.m
Created February 7, 2019 12:20
Clone of Julia's versioninfo for Octave and MATLAB on Linux
function v = versioninfo()
%%% project: versioninfo (clone of Julia's versioninfo for Octave and MATLAB)
%%% version: 1.0 ( 2019-02-07 )
%%% authors: C. Himpe ( 0000-0003-2194-6754 )
%%% license: BSD 2-Clause License ( opensource.org/licenses/BSD-2-Clause )
%%% summary: Collect compute environment and version information on Linux
% Interpreter name
if(exist('OCTAVE_VERSION','builtin'))
v.name = 'OCTAVE';
@gramian
gramian / arcadedbsql-cheatsheet.md
Last active February 18, 2024 19:58
ArcadeDB SQL Cheat Sheet | build: pandoc arcadedb-cheatsheet.md -f markdown -o arcadedb-sql.pdf -V geometry:margin=1.5cm,landscape -V pagestyle=empty -V colorlinks=true

ArcadeDB SQL Cheat Sheet

CRUD

INSERT INTO <type>|BUCKET:<bucket>|<index> [(<field>[,]*) VALUES (<expression>[,]*)[,]*]|
$~~~~~~~~~~~~~~~~~~~$[SET <field> = <expression>|<command>[,]*]|[CONTENT {<json>}] [RETURN <expression>] [FROM <query>]

SELECT [<projections>] [FROM <target> [LET <assignment>*]] [WHERE <condition>*] [GROUP BY <field>*] [ORDER BY <fields>* [ASC|DESC]*]
$~~~~~~~~~~~$[UNWIND *] [SKIP ] [LIMIT ] [TIMEOUT []]

@gramian
gramian / init.sh
Last active November 16, 2022 20:21
ArcadeDB initialization
#!/bin/bash
# Usage: ./init.sh localhost 2480 mydb root password myscript.sql
## Assign input commandline arguments
HOST=$1
PORT=$2
NAME=$3
USER=$4
@gramian
gramian / Dockerfile
Created February 28, 2023 23:58
Chicken Scheme Dockerfile
## Chicken Scheme Dockerfile
# Build: docker build -t chicken:latest .
# Usage: docker run -it chicken
FROM alpine:latest
RUN apk add --no-cache chicken
RUN chicken-install linenoise
# RUN chicken-install other-egg
RUN adduser -D -g '' chicken
USER chicken
WORKDIR /home/chicken