Skip to content

Instantly share code, notes, and snippets.

@BimManager
BimManager / alias_matchers.md
Created May 2, 2023 16:45 — forked from JunichiIto/alias_matchers.md
List of alias matchers in RSpec 3

This list is based on aliases_spec.rb.

You can see also Module: RSpec::Matchers API.

matcher aliased to description
a_truthy_value be_truthy a truthy value
a_falsey_value be_falsey a falsey value
be_falsy be_falsey be falsy
a_falsy_value be_falsey a falsy value
@BimManager
BimManager / calc.c
Created July 7, 2020 14:09 — forked from rj00a/calc.c
Pratt Parser Calculator in C
// (Public domain, created by Ryan Johnson)
// A simple calculator in C using Pratt parsing.
// compile with `cc -lm calc.c`
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <inttypes.h>
#include <ctype.h>
#include <math.h>
@BimManager
BimManager / syntax.mk
Created May 25, 2019 10:04
Syntax for Make scripts
# Simplified form of a rule
target1 target2 target3: prerequisite1 prerequisite2
command1
command2
command3
# Additional dependencies appended to target
vpath.o: vpath.c make.h config.h getopt.h gettext.h dep.h
vpath.o: filedef.h hash.h job.h commands.h variable.h vpath.h
@BimManager
BimManager / syntax.s
Created May 25, 2019 10:03 — forked from mishurov/syntax.s
AT&T assembly syntax and IA-32 instructions
# --------
# Hardware
# --------
# Opcode - operational code
# Assebly mnemonic - abbreviation for an operation
# Instruction Code Format (IA-32)
# - Optional instruction prefix
# - Operational code