This file contains 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
// Copyright 2014-2016 Nicolaus Anderson | |
template<class T> | |
struct ComplexNumber | |
{ | |
T real; | |
T imag; // imaginary component | |
ComplexNumber() |
This file contains 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
/* | |
Test program for testing Linus Listor for C++ | |
Author: Nic Anderson | |
Date: June 15, 2011 | |
*/ | |
#include <iostream> // search the system directory for iostream and add it | |
#include <string> | |
#include "LinusListorCp.cpp" // search the locale directory for LinusListorCp.cpp and add it |
This file contains 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
/* | |
Cedar Cocoon | |
(c) 2011, Nicolaus Anderson | |
This is free and opensource software. | |
This software is provided AS IS without any guarantee that it will function. | |
The program is supposed to convert .mqo files to .obj files and vice versa. | |
Some functionality is not built in, thus certain aspects of models will not carry over | |
to the output file during conversion. |
This file contains 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
# Utilities # | |
makeVect = [x y] { | |
ret([x=x y=y]) | |
} | |
movedVectX = [vect x]{ | |
vect.x = +(vect.x: x:) | |
ret(vect) | |
} |
This file contains 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
// For getting the text from file | |
#include <string> | |
#include <fstream> | |
#include <sstream> | |
// printf for making sure the characters are correct | |
#include <cstdio> | |
// Original includes of the example | |
#include <stdio.h> |
This file contains 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
#! /bin/sh | |
BRCH=$1 ; | |
f() { | |
if [ -z "$(ls ./.git/refs/heads)" ] ; then | |
printf "ERROR: No head. Please make a commit first for a reference point.\n" | |
fi | |
BV=$(git rev-parse --abbrev-ref --verify --quiet "$BRCH") | |
if [ -n "$BV" ] && [ "$BRCH" != "HEAD" ] ; then | |
CURR=$(git rev-parse --abbrev-ref HEAD) ; | |
TRACK="_WS_ADDED_$CURR.txt" ; |