Skip to content

Instantly share code, notes, and snippets.

View vertiginous's full-sized avatar

Gordon Thiesfeld vertiginous

View GitHub Profile
#include <windows.h>
#include <stdio.h>
int run(CHAR *path)
{
WIN32_FILE_ATTRIBUTE_DATA wfad;
int a, e;
printf("Checking '%s'\n", path);
a = GetFileAttributesEx(path, GetFileExInfoStandard, &wfad);
[ ] Installer
[ ] Write better README than one in repository. State virtues and limitations
[X] Include Ruby License during License agreement screen
[X] Display History.txt (extract) on installation completion
[*] Bugfixes for rb-readline (Luis)
[ ] Documentation
[*] Generate CHM files for Core and Standard Library (Gordon Thiesfeld)
[X] Finish Rdoc_CHM 2.4.0, and release gem on Rubyforge
[X] Add a main page to the main CHM file
[ ] Installer
[ ] Write better README than one in repository. State virtues and limitations
[ ] Include Ruby License during License agreement screen
[ ] Display History.txt (extract) on installation completion
[*] Bugfixes for rb-readline (Luis)
[ ] Documentation
[*] Generate CHM files for Core and Standard Library (Gordon Thiesfeld)
[*] Finish Rdoc_CHM 2.4.0, and release gem on Rubyforge
[X] Add a main page to the main CHM file
@vertiginous
vertiginous / gist:5665
Created August 15, 2008 22:05
An alternative api
require 'rubygems'
require 'spec'
# Here is the problem, I want to replace statements like this:
#
# puts (EvenRecognizer.new.knows?(1) or EvenRecognizer.new.knows?(3)) ? "there are odds" : "there is no odd"
#
# With this syntax:
# puts EvenRecognizer.new.knows?(1).or?(3) ? "there are odds" : "there is no odd"
#
require 'rubygems'
require 'spec'
# Here is the problem, I want to replace statements like this:
#
# puts (OddRecognizer.new.knows?(1) or OddRecognizer.new.knows?(3)) ? "there are odds" : "there is no odd"
#
# With this syntax:
# puts OddRecognizer.new.knows?(1).or?(3) ? "there are odds" : "there is no odd"
#