Skip to content

Instantly share code, notes, and snippets.

View chronologicaldot's full-sized avatar
🎈

Nic Anderson chronologicaldot

🎈
View GitHub Profile
@chronologicaldot
chronologicaldot / ComplexNumber.h
Created September 30, 2020 04:22
C++ Irrlicht Mandelbrot
// Copyright 2014-2016 Nicolaus Anderson
template<class T>
struct ComplexNumber
{
T real;
T imag; // imaginary component
ComplexNumber()
@chronologicaldot
chronologicaldot / LL_test_main.cpp
Created February 29, 2020 01:43
Open linked list (meaning you can pull it apart; useful for big data that means manual organization)
/*
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
@chronologicaldot
chronologicaldot / CedarCoccoon.h
Created February 29, 2020 01:40
Program that converts Metasequoia (.mqo) files to Wavefront Object (.obj) and vice versa
/*
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.
@chronologicaldot
chronologicaldot / tictactoe.cu
Created September 12, 2018 04:51
Tic Tac Toe game in Copper for Cupric Bridge
# Utilities #
makeVect = [x y] {
ret([x=x y=y])
}
movedVectX = [vect x]{
vect.x = +(vect.x: x:)
ret(vect)
}
@chronologicaldot
chronologicaldot / aggmain.cpp
Created February 18, 2018 21:56
Modified AGG freetype_test.cpp
// 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>
@chronologicaldot
chronologicaldot / git-switch
Created January 27, 2018 05:59
git-switch : Bash scripts for switching between Git branches with dirty workspaces. Save path: /usr/local/bin/git-switch and /usr/local/bin/git-switch-reset
#! /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" ;