Skip to content

Instantly share code, notes, and snippets.

View Artiavis's full-sized avatar

Jeff Rabinowitz Artiavis

View GitHub Profile
@Artiavis
Artiavis / rmtex.fs
Last active August 29, 2015 14:20
An adaptation of my rmtex.py script, but for F#. CLI based on the tutorial by "F Sharp for Fun and Profit".
open System
open System.IO
type CommandLineOptions = {
verbose: bool;
recrsv: bool;
exts: list<string>;
}
@Artiavis
Artiavis / simplePhraseCounter.c
Created February 13, 2014 20:21
A simple program to count occurrences of given phrases in a text file, completed for a homework assignment.
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <fcntl.h>
#include <time.h>
struct Counter_ {
char* string;
@Artiavis
Artiavis / tokenizer.c
Created January 30, 2014 00:55
Intro assignment for Systems Programming at Rutgers. Create a string tokenizer.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct TokenizerT_ {
char* separators; // C string of separation characters
char* tokenString; // C string of unprocessed tokens
size_t separatorStringLength; // length of separator string
size_t tokenStringLength; // length of token string
int cursorPosition; // cursor to token string