This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# whitespace separated list of source directories and desired products | |
sources = common server client | |
products = server client | |
# compiletime flags, constant | |
CXXFLAGS = -Wall -std=c++11 | |
# Initialize the obj and source lists for an arbitrary directory | |
define init | |
$(1)_src = $(wildcard $(1)/*.cpp) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python3 | |
""" Silly little dag calculator language on ints. """ | |
# ops are defined to return lists for a very good reason | |
ops = {"I": lambda a:[a], \ | |
"A": lambda b:[b,b], \ | |
"X": lambda c, d: [d,c], \ | |
"+": lambda e, f: [e+f], \ | |
"-": lambda g, h: [g-h], \ | |
"*": lambda i, j: [i*j], \ |
NewerOlder