Skip to content

Instantly share code, notes, and snippets.

View tjaartvdwalt's full-sized avatar

Tjaart van der Walt tjaartvdwalt

View GitHub Profile
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Tjaart Van der Walt",
"label": "Software Engineer, and open-source software enthusiast",
"image": "tjaart.jpg",
"email": "tjaart@tjaart.org",
"phone": "(805) 304-9973",
"url": "https://tjaart.org",
"#summary": "I am a full stack software engineer, and Free and Open-Source software advocate.",
### Keybase proof
I hereby claim:
* I am tjaartvdwalt on github.
* I am tjaartvdwalt (https://keybase.io/tjaartvdwalt) on keybase.
* I have a public key whose fingerprint is CD28 FA7E BC2E 83D0 52D4 3200 4FDC 131C C74E 1F54
To claim this, I am signing this object:
@tjaartvdwalt
tjaartvdwalt / spell_checker.rb
Last active April 27, 2017 16:07
OO: spell checker
# a list of sample client codes
# I use a value of 1 for each. In the original script this is the frequency of the word in the training data. This is not used in our algorith.
NWORDS = {
"T999" => 1,
"AB77" => 1,
"CD35" => 1,
"CD34" => 1,
"K574" => 1
}
@tjaartvdwalt
tjaartvdwalt / copy_config.sh
Created January 21, 2015 16:55
Copy my admiral configuration
# Copy my login configuration. It makes Bash your default shell at login.
cp /accounts/students/t/tav9wc/.login ~
# Copy my bashrc configuration. It allows you to use backspace in vim
cp /accounts/students/t/tav9wc/.bashrc ~
# Copy my vimrc configuration. This configuration allows for using the
# arrow keys for navigation in insert mode + it adds syntax highlighting.
cp /accounts/students/t/tav9wc/.vimrc ~
@tjaartvdwalt
tjaartvdwalt / final_score.cpp
Last active August 29, 2015 14:13
CS1250 - Chapter 1
// This program calculates your final score for CS1250
// We assume test1, test2, homework and projects are each out of 100
// The final exam is out of 200
//
// The final score is as in the syllabus:
// test1 + test2 - 25%
// homework - 10%
// projects - 45%
// exam - 20%
@tjaartvdwalt
tjaartvdwalt / oct2py.m
Last active August 29, 2015 14:06
Oct2py example
function [x, y, z] = oct2py (args)
b=[4,3,2,1]
c=3
x = args
y = b
z = c
disp("hello")
end
@tjaartvdwalt
tjaartvdwalt / template_inheritance.cpp
Created September 12, 2014 15:31
Template inheritance example
# include <list>
template <class T>
class Parent {
private:
std::list <Parent<T> *> children;
protected:
T value;
public: