[ create a new paste ] login | about

maweaver

Name: Matt Weaver
Email:
Site/Blog: http://www.innerweaver.com
Location:
Default language:
Favorite languages:
About:

Saved pastes by maweaver:

C++, pasted on Sep 24:
1
2
3
4
5
#include <iostream>
#include <queue>

struct Bill {
    Bill(const std::string &_name, int _value) : name(_name), value(_value) { }
...
view (34 lines, 1 line of output)
Haskell, pasted on Apr 9:
1
2
3
4
5
import Data.Bits
import Data.Char
import Numeric

char ch = [ch]
...
view (37 lines, 1 line of output)
C, pasted on Nov 8:
1
2
3
4
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
...
view (123 lines, 15 lines of output)
D, pasted on Oct 9:
1
2
3
4
5
/////////////////////////////////////////////////////////////////////
//
//  Sudoku Solver using Knuth's Dancing Links algorithm (DLX)
//
/////////////////////////////////////////////////////////////////////
...
view (767 lines, 23 lines of output)
D, pasted on Oct 6:
1
2
3
4
5
import std.stdio;

T[] permute(T)(T[] v, bool delegate(T[]) fn) {
	T[] ret;
	ret.length = v.length;
...
view (84 lines)
D, pasted on Oct 6:
1
2
3
4
5
import std.stdio;

T[] permute(T)(T[] v, bool delegate(T[]) fn) {
	T[] ret;
	ret.length = v.length;
...
view (90 lines, 2 lines of output)
C, pasted on Sep 27:
1
2
3
4
/*!
 *  \file   pi.c
 *  \brief  Calculates the nth digit of pi
 */
...
view (518 lines, 4 lines of output)
D, pasted on Aug 30:
1
2
3
4
5
/////////////////////////////////////////////////////////////////////
//
//  Sudoku Solver using Knuth's Dancing Links algorithm (DLX)
//
/////////////////////////////////////////////////////////////////////
...
view (776 lines, 23 lines of output)
D, pasted on Aug 25:
1
2
3
4
void main() {
  /+ /+ This should be ok +/ +/
  /* /* This should fail */ */
}
view (4 lines, 21 lines of output)
D, pasted on Aug 25:
1
2
3
4
5
import std.stdio;

int bruteForceSchemey(string pat, string str, int start = 0) {
	int loop(int strOff, int patOff) {
		if(strOff == str.length && patOff != pat.length) {
...
view (89 lines, 27 lines of output)
D, pasted on Aug 25:
1
2
3
4
5
import std.stdio;

int bruteForce(string containing, string str, int start = 0) {
	int matchStart = -1;
	int matchLen = 0;
...
view (44 lines, 7 lines of output)