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 / basics
Last active February 20, 2023 21:24
C
<=SEARCH PATH=>
// to find the default search directory list
cpp -v /dev/null -o /dev/null
#define "foo.h" => in relative to the directory of the current file
#define <foo.h> => in a preconfigured list of standard system directories
cpp -I/path/to/headers -iquote/path/to/quoted_headers -isystem/path/to/angle_bracketed_headers
cpp -nostdinc
@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>
#include <stdio.h>
/*
** prototypes
*/
void test1();
void test2();
void test3();
/*
@BimManager
BimManager / basics
Last active June 22, 2023 22:30
RevitAPI
Revit API Exploration Tools
RevitLookup
BipChecker
AdnRevitApiLabsXtra
RevitPythonShell
Revit SDK
the_building_coder_samples
// how to embed a page into a Revit add-in
@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