Skip to content

Instantly share code, notes, and snippets.

@gaxar77
gaxar77 / Form1.Designer.cs
Created May 28, 2011 03:53
Simple Graph Control
using Guido;
namespace Testy
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
@gaxar77
gaxar77 / AppTalk.cpp
Created August 29, 2010 00:41
Interprocess Communication without named pipes, memory mapped files, or sockets.
//AppTalk.cpp
//Author: Guido Arbia
#include <istream>
#include <algorithm>
#include "AppTalk.h"
namespace AppTalking
{
AppPhone::AppPhone(AppSenator* AppSenator, Augerate* LocalAugerate, HWND RemoteAugerateWindow, HWND RemoteAppSenatorWindow)
@gaxar77
gaxar77 / AppTalk.cpp
Created August 22, 2010 12:27
Slightly, well, a bit more than slightly buggy implementation and demonstration of interprocess communication without using named pipes, files, or sockets, just pure window messages.
//AppTalk.cpp
//Author: Guido Arbia
#include <istream>
#include "AppTalk.h"
namespace AppTalking
{
AppSenator::AppSenator(string &AppName)
{
@gaxar77
gaxar77 / BasicTokenTypes.cs
Created May 23, 2010 03:12
This is my failed attempt at a lexical analyzer. Don't get me wrong, it's highly functional, but it falls short of the goal. And I barely documented it. In fact, the documentation is almost inaccurate.
/* BasicTokenTypes.cs
* Author: Guido Arbia
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
@gaxar77
gaxar77 / Form1.Designer.cs
Created April 11, 2010 00:09
397 Description: This is a simple decoder program I wrote (very buggy though; certainly not perfect) that allows you to input encoded plain text according to my garf method, and reveals a sequences of numbers. If the text is actually encoded, it wil
namespace WindowsFormsApplication1
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
@gaxar77
gaxar77 / NonsensePoem.cs
Created March 28, 2010 22:03
This is a demonstration of how to compose verses based on iambic patameter. The demonstration consists of three files. The two C# code files are meant to be included in one project and compiled, and the xml file is to be placed in the same directory as th
/* Nonsensical Poem Generater
* Author: Guido Arbia
*
* Description
* =======================================================
* This program uses a very simple class library I wrote
* to generate nonsensical verses in iambic patameter.
* It cannot produce meaningful information, or anything
* poetically deep, because it does not deal with meaning.
* That project would be far more difficult. But it does
@gaxar77
gaxar77 / GCommand.rb
Created January 17, 2010 22:23
Easily accept commands from a prompt and process them in assigned handlers. Arguments are automatically parsed and passed to handlers as ordinary paramaters.
#GCommand
#Author: Guido Arbia
#This script allows you to easily accept commands from a prompt, and process their arguments in a given method or block assigned to each command.
#The arguments following the command are sent as normal paramater in its assiged method/block. Suppose you type "add 3 2" into the prompt and hit enter.
#whichever code block/method is assigned to the "add" command will be called with the paramaters 3 and 2. So if you assigned a method named cmd_add
#to the command, it will be called like this: cmd_add(3, 2). All arguments entered into the prompt are deliniated by spaces, but if you want an argument to contain
#spaces, simply enclose them in quotes, and the full text within the quotes will be counted as one argument.
#To setup the command prompt and all commands to be recognized, first instantiate a prompt object, passing to its constructer the text to be displayed before