Skip to content

Instantly share code, notes, and snippets.

View coplate's full-sized avatar

Matthew Carlson coplate

  • Kansas City, Kansas, USA
View GitHub Profile
@coplate
coplate / datafill.log
Last active April 10, 2019 23:41
results from running datafill test program
Writing files random-######## with seed 1554864670
Wrote 1024 MiB random data to random-00000000 with 1896.910910 MiB/s
Wrote 1024 MiB random data to random-00000001 with 950.170716 MiB/s
Wrote 1024 MiB random data to random-00000002 with 148.799383 MiB/s
Wrote 1024 MiB random data to random-00000003 with 140.361438 MiB/s
Wrote 1024 MiB random data to random-00000004 with 127.098821 MiB/s
Wrote 1024 MiB random data to random-00000005 with 126.964903 MiB/s
Wrote 1024 MiB random data to random-00000006 with 134.211018 MiB/s
Wrote 1024 MiB random data to random-00000007 with 128.113493 MiB/s
Wrote 1024 MiB random data to random-00000008 with 120.479619 MiB/s
@coplate
coplate / 1.d.cpp
Last active August 29, 2015 14:07
/r/dailyprogrammer: [2014-02-09] [difficult] challenge #1
/*
https://www.reddit.com/r/dailyprogrammer/comments/pii6j/difficult_challenge_1/
we all know the classic "guessing game" with higher or lower prompts.
lets do a role reversal;
you create a program that will guess numbers between 1-100,
and respond appropriately based on whether users say that the number is too high or too low.
Try to make a program that can guess your number based on user input and great code!
*/
#include <iostream>
#include <vector>
@coplate
coplate / 1.i.cpp
Last active August 29, 2015 14:07
/r/dailyprogrammer: [2014-02-09] [intermediate] challenge #1
/*
https://www.reddit.com/r/dailyprogrammer/comments/pihtx/intermediate_challenge_1/
create a program that will allow you to enter events organizable by hour. There must be menu options of some form, and you must be able to easily edit, add, and delete events without directly changing the source code.
(note that by menu i dont necessarily mean gui. as long as you can easily access the different options and receive prompts and instructions telling you how to use the program, it will probably be fine)
*/
#include <iostream>
#include <vector>
@coplate
coplate / 1.e.cpp
Last active August 29, 2015 14:07
/r/dailyprogrammer: [2014-02-09] [easy] challenge #1
/*
https://www.reddit.com/r/dailyprogrammer/comments/pih8x/easy_challenge_1/
create a program that will ask the users name, age, and reddit username. have it tell them the information back, in the format:
your name is (blank), you are (blank) years old, and your username is (blank)
*/
#include <iostream>
int main(int argc, char *argv[]) {
@coplate
coplate / hexbitmap.cbl
Created October 16, 2014 03:40
/r/dailyprogrammer: [7/16/2014] Challenge #171 [Intermediate] Zoom, Rotate, Invert Hex Picture - Source
IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO-WORLD.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 BMP-TABLE.
02 BMP-TEXT OCCURS 5 TIMES INDEXED BY TEXT_IDX.
04 BMP-CHAR PIC X OCCURS 24 TIMES INDEXED BY BMP_IDX.
01 HEX-LOOKUP VALUE '0123456789ABCDEF'.
@coplate
coplate / stacks.c
Created October 14, 2014 21:43
/r/dailyprogrammer [10/13/2014] Challenge #184 [Easy] Smart Stack List
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int Z = 0;
struct LinearNode {
int value;
int N;
struct LinearNode *prev;
struct LinearNode *next;
@coplate
coplate / HexBitmap.txt
Last active August 29, 2015 14:04
/r/dailyprogrammer: [7/16/2014] Challenge #171 [Intermediate] Zoom, Rotate, Invert Hex Picture - OUTPUT
Compiling main.cobc source code....
$cobc -c -free -x main.cobc 2>&1
Linking the program....
$cobc -x -o demo main.o 2>&1
Executing the program....
$demo
@coplate
coplate / ZoomMatrix.cbl
Last active August 29, 2015 14:04
/r/dailyprogrammer: [7/16/2014] Challenge #171 [Intermediate] Zoom, Rotate, Invert Hex Picture - COBOL
IDENTIFICATION DIVISION.
PROGRAM-ID. ZoomMatrix.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 BMP-TABLE.
02 BMP-TEXT OCCURS 5 TIMES INDEXED BY TEXT_IDX.
04 BMP-CHAR PIC X OCCURS 24 TIMES INDEXED BY BMP_IDX.
01 HEX-LOOKUP VALUE '0123456789ABCDEF'.
@coplate
coplate / StringIndex.cbl
Created July 14, 2014 03:41
/r/dailyprogrammer: [6/27/2014] Challenge #168 [Easy] String Index - COBOL
IDENTIFICATION DIVISION.
PROGRAM-ID. StringIndex.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 tmp PIC 99.
01 srcString PIC X(1000) VALUE "...You...!!!@!3124131212 Hello have this is a --- string Solved !!...? to test @
@coplate
coplate / Rummy.cbl
Last active August 29, 2015 14:03
/r/dailyprogrammer: [7/9/2014] Challenge #170 [Intermediate] Rummy Checker - COBOL
IDENTIFICATION DIVISION.
PROGRAM-ID. Rummy.
AUTHOR. Coplate.
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT VarLengthRecFile ASSIGN TO "input.txt"
ORGANIZATION IS LINE SEQUENTIAL.