|
|
|
codepad
|
|
|
|
Saved pastes by rplantiko:
// Track differences - a component for automatic numeric tests
#include <iostream>
#include <sstream>
#include <stdio.h>
|
| view (128 lines, 4 lines of output) |
# Since the DRY violation of repeating color codes in CSS bothered me,
# I made a meta-CSS in the form of a simplistic perl file
# The simplest way to do this in Perl is by using the built-in
# variable substitution mechanism (interpolation)
|
| view (43 lines, 17 lines of output) |
// Mimic a "public readonly" attribute (as in C# and ABAP)
// Inspired by Peter Ammon, http://bytes.com/topic/c/answers/62093-read-only-data-members
class F {
private:
|
| view (21 lines, 2 lines of output) |