Skip to content

Instantly share code, notes, and snippets.

@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:

using System;
using System.IO;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Earlz.Exxx
{
class MainClass
{
public static void Main(string[] args)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace Base58ReverseEncoder
{
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
This is a list of unspendable addresses with which to burn coins to. When you send a coin to any of these addresses, they are permanently gone and can never be redeemed.
You can prove this by sending a small test amount to the address and then checking a block explorer or using `getrawtransaction txid 1`. You should see the coins output to somehting like `"raw_scriptPubKey": "76a914000000000000000000000000000000000000000088ac"` Some block explorers are also smart enough to indicate in their user interface that the coins were destroyed.
You can find the version number matching to the desired altcoin by checking two places in the code:
chainparams.cpp for bitcoin 0.9 and later based coins:
//a program I made to troll my high school with back around 2008
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <winioctl.h>
DWORD WINAPI bah(unsigned int t){
//MessageBox(NULL,"hi3","bah",0);
use std::io;
use std::io::File;
use std::os;
use std::str;
fn main() {
println!("meh");
let filename=&os::args()[1];
let contents: String = match File::open(&Path::new(filename)).read_to_end() {
Ok(s) => str::from_utf8(s.as_slice()).expect("this shouldn't happen").to_string(),
//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);