Skip to content

Instantly share code, notes, and snippets.

using System;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
CheckNull(null);
}
pub struct Route {
matcher: ~PatternMatcher,
handler: ~fn:Send+Freeze(&mut ControllerContext)
}
pub struct Router{
routes: ~[Route],
}
pub trait PatternMatcher {
@Earlz
Earlz / gist:5855420
Created June 25, 2013 02:21
The source code to the "cd_open" program that plagued computers at my library
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <winioctl.h>
DWORD WINAPI bah(unsigned int t){
//MessageBox(NULL,"hi3","bah",0);
@Earlz
Earlz / gist:5848045
Last active December 18, 2015 21:29
This is the oldest program I can find that once worked which I wrote. This was probably written in either 2003 or 2004 in DarkBasic Professional. I would have been 13 at the time.
rem this is a generic media player
rem this prog was made by jordan earls
starty:
print "type 1 to choose where media is"
print "type 2 to pause music"
print "type 3 to resume music"
print "type 4 to reload music"
print "type 5 to change volume"
print "type 6 to change speed"
start:
//BarelyMVC Fluent Router API proof of concept
using System;
using System.Collections.Generic;
namespace tester
{
class MainClass
{
public static void Main(string[] args)