[ create a new paste ] login | about

ninwa

Name: Joseph Bleau
Email:
Site/Blog:
Location: Westland, MI
Default language: C
Favorite languages: c++, c, python, lua
About:

Saved pastes by ninwa:

C++, pasted on Mar 20:
1
2
3
4
5
#include <algorithm>
#include <iostream>
#include <vector>

template <typename RandomAccessIterator>
...
view (77 lines, 1 line of output)
C++, pasted on Feb 16:
1
2
3
4
5
// --------------------------------------------- SmartPointerTable.h 
#ifndef SMARTPOINTERTABLE_H
#define SMARTPOINTERTABLE_H

#include <map>
...
view (106 lines)
C++, pasted on Feb 16:
1
2
3
4
5
#include <vector>
#include <memory>

class Foo 
{
...
view (28 lines)
C, pasted on Oct 26:
1
2
3
4
5
 #include "pitches.h"

// Arduino Pins
#define debugLED    13
#define clockLine    2
...
view (73 lines)
C, pasted on Oct 16:
1
2
3
4
5
/* Slide, takes an array and allows 
   you to move, with wrap-around, all characters
   to the right. */

char _slide_one(char* arr, int sz) {
...
view (39 lines, 1 line of output)
C++, pasted on Oct 12:
1
2
3
4
5
#include <cstdlib>
#include <iostream>

template <typename T>
class Identifiable
...
view (38 lines, 2 lines of output)
C++, pasted on Oct 10:
1
2
3
4
5
class Base
{
public:
  void print(){ cout << "base\n"; }
};
...
view (31 lines, 2 lines of output)
C++, pasted on Oct 7:
1
2
3
4
5
/* COSC 221 : Proj. 1, Emulated Circuits

   Author: Joseph Bleau
   Date: October 3rd, 2012
   Details: Using vector<bool> as our transport type we emulate the
...
view (103 lines, 7 lines of output)
C++, pasted on Oct 7:
1
2
3
4
5
template <class T>
class List
{
  private:
    List<T>* _next;
...
view (41 lines, 1 line of output)
C++, pasted on Sep 15:
1
2
3
4
5
#include <string>
#include <sstream>
#include <iostream>

/* TODO: Add a way to dermine the number of bits that are in a byte
...
view (163 lines, 6 lines of output)
C++, pasted on Sep 13:
1
2
3
4
5
//////////////////////////////////////////////////// BoolExprParser.h
#pragma once

#include <map>
#include <string>
...
view (240 lines)
PHP, pasted on May 8:
1
2
3
4
5
<?php
	/*  Parse QFX files, but really only parse the   
	 * 	part of the XML file we really care about
	 *  <STMTTRN>
     *   <TRNTYPE>DEBIT</TRNTYPE>
...
view (104 lines)
PHP, pasted on May 3:
1
2
3
4
5
<?php
	function validate_array($a, $types, $validators, &$errors){
		foreach(array_keys($types) as $key){
			if(isset($a[$key])){
				if(isset($validators[$types[$key]]) &&
...
view (32 lines)
Python, pasted on May 1:
1
2
3
4
5
#!/usr/bin/python

import sys
import os
import io
...
view (34 lines)
Python, pasted on Oct 6:
1
2
3
4
5
#!/usr/bin/python
# mixism.py - accepts a filename as a parameter and uses the files contents to 
#             create psudo-readable text by examining the files contents and
#             specifcally noting each word (as defined by characters separated
#             by white-space) and noting every word to ever come after it. After
...
view (76 lines)
C, pasted on Sep 17:
1
2
3
4
#include <stdio.h>

#define _DEBUG_ 1
#define POOLSIZE 10000
...
view (257 lines, 12 lines of output)
C, pasted on Sep 12:
1
2
3
4
5
/* RPN Calculator,
    My suggested soultions to the Exercises in
    "The C Programming Language" aka "K&R"

    Exercises 4-3 through 4-10
...
view (366 lines)
C, pasted on Sep 11:
1
2
3
4
5
/* The C Programming Language
   My solutions to exercises in chapter 3. */

#include <stdio.h>
#include <stdlib.h>
...
view (351 lines, 17 lines of output)
C, pasted on Sep 9:
1
2
3
4
5
/* The C Programming Language
   My answer to exercise 2-4 */

#include <stdio.h>
#include <string.h>
...
view (40 lines, 1 line of output)
C, pasted on Sep 9:
1
2
3
4
5
/* The C Programming Language
   my answer to exercise 2-3

   Convert a hexadecimal string to an integer.
*/
...
view (44 lines)
C, pasted on Sep 8:
1
2
3
4
5
/* The C Programming Language 
	my solution for exercise 1-23

	Parse a .c file and remove all comments */
	
...
view (65 lines)
C, pasted on Sep 8:
1
2
3
4
5
/* The C Programming Language,
   my solution for exercise 1-24

   A very rough C syntax error-finder. Simply ensures
   that there are matching open /closing characters for:
...
view (115 lines)
C, pasted on Sep 8:
1
2
3
4
/* The C Programming Language,
    my soultion to exercise 1-13:

    write a program to print a histogram of the lengths of words in its inputs....
...
view (47 lines)
C, pasted on Sep 8:
1
2
3
4
5
/* The C Programming language,
	answer to exercise 1-12 */
#include <stdio.h>

main()
...
view (15 lines)
C++, pasted on Sep 8:
1
2
3
4
/* The C Programming Language,
   solution to Exercise 1-9 */

#include <stdio.h>
...
view (31 lines)
PHP, pasted on Jun 30:
1
2
3
4
<html>
<head>
	<title> Froogle Scraper </title>
</head>
...
view (56 lines)
C, pasted on Oct 14:
1
2
3
4
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
...
view (183 lines)
C++, pasted on Apr 10:
1
2
3
4
5
/* Select exercises from Deitel and Deitel's "C++ How To Program, 3rd Ed." 
   Segregated into functions for my sanity. */

#include <iostream>
#include <string>
...
view (141 lines, 24 lines of output)
C++, pasted on Apr 10:
1
2
3
4
5
// Select exercises out of Deitel and Deitel's "C++ How To Program, 3rd Ed."

#include <iostream>
#include <iomanip>
using namespace std;
...
view (63 lines, 21 lines of output)
C++, pasted on Feb 15:
1
2
3
4
5
#include <vector>
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
...
view (180 lines)
C++, pasted on Dec 3:
1
2
3
4
5
#include <iostream>
#include <ctime>
#include <cstdlib>
#include <iomanip>
#include <cassert>
...
view (131 lines, 25 lines of output)
C++, pasted on Nov 29:
1
2
3
4
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
...
view (35 lines, 1 line of output)
C++, pasted on Nov 23:
1
2
3
4
// A once-linked list of nodes of various types.
#include <iostream>
#include <string>
using namespace std;
...
view (46 lines, 1 line of output)
C++, pasted on Nov 20:
1
2
3
4
5
// Simple stack implementation
#include <iostream>
using namespace std;

template< typename T >
...
view (99 lines, 1 line of output)
C++, pasted on Nov 19:
1
2
3
4
// Finds all numbers in an input stream and displays them.

#include <iostream>
using namespace std;
...
view (35 lines)
PHP, pasted on Nov 12:
1
2
3
4
5
<?php
// PHP implementation of Burrows-Wheeler Transform
function bwt($text)
{
	$len = strlen($text);
...
view (47 lines, 3 lines of output, 1 comment)
PHP, pasted on Nov 6:
1
2
3
4
5
<?php

// Simple wildcard matching function
function wildcard_match($pattern, $haystack)
{
...
view (26 lines, 1 line of output)
PHP, pasted on Nov 6:
1
2
3
4
5
<?php

// A simple templating class
class Template
{
...
view (50 lines, 1 comment)
PHP, pasted on Nov 6:
1
2
3
4
5
<?php

// Simple exception handling...
class Math
{
...
view (28 lines, 2 lines of output, 1 comment)
PHP, pasted on Oct 31:
1
2
3
4
5
<?php

// Take two dates in form of "dd/mm/yyyy" and compares them.
function compare_dates($d1, $d2)
{
...
view (28 lines, 2 lines of output, 1 comment)
PHP, pasted on Oct 30:
1
2
3
4
5
<?php

function dec_to_hex($dec)
{
    $sign = ""; // suppress errors
...
view (28 lines, 4 lines of output, 1 comment)