Skip to content

Instantly share code, notes, and snippets.

//BarelyMVC Fluent Router API proof of concept
using System;
using System.Collections.Generic;
namespace tester
{
class MainClass
{
public static void Main(string[] args)
@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:
@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);
pub struct Route {
matcher: ~PatternMatcher,
handler: ~fn:Send+Freeze(&mut ControllerContext)
}
pub struct Router{
routes: ~[Route],
}
pub trait PatternMatcher {
using System;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
CheckNull(null);
}
@Earlz
Earlz / gist:7256415
Created October 31, 2013 20:22
Run on .Net 2.0 or 3.5. If you think the result depends on the input you give it, then you haven't tried running it
using System;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
CheckNull(null);
}
.locals init ([0] bool)
IL1:
ldarg.0
call bool [mscorlib]System.String::IsNullOrEmpty(string)
stloc.0
ldloc.0
ldc.i4 0
bne.un.s IL1
br f
use std::io::println;
use std::c_str::CString;
use std::libc::c_char;
#[no_mangle]
pub extern fn foorust() {
println("hello from rust!");
}
#[no_mangle]
@Earlz
Earlz / gist:8839071
Created February 6, 2014 06:08
dogechain explanation thing
How does dogecoin work?

Keybase proof

I hereby claim:

  • I am earlz on github.
  • I am earlz (https://keybase.io/earlz) on keybase.
  • I have a public key whose fingerprint is C114 6A0D 6250 CAEA E3C7 5516 224E 8EA1 9223 B76D

To claim this, I am signing this object: