My Recent Pastes (14 and counting)

Pastes by Robert Bahmann (14 and counting)

Below are the 14 most recent pasties by Robert Bahmann.

January 25, 2009
2:28PM EDT
by Robert Bahmann

void SetUSART0Rate(uint8 BaudRate) {
   uint16 divisor;
   uint8 * div;
  
   UCA0CTL1 |= UCSWRST;

January 19, 2009
5:00PM EDT
by Robert Bahmann

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <pthread.h>
#include <unistd.h>

January 19, 2009
12:05PM EDT
by Robert Bahmann

smartctl version 5.38 [i386-apple-darwin9.6.0] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model:     WDC WD3200BEVT-00ZCT0

November 30, 2008
8:29AM EDT
by Robert Bahmann

#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>

November 27, 2008
10:39AM EDT
by Robert Bahmann

int main (int argc, char const *argv[])
{
        char str[101];
        int i;
        char *p;

November 21, 2008
3:36PM EDT
by Robert Bahmann

if(!f.email.value.match(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i))
                                        {
                                                alert("Email ist falsch!");
                                                f.email.focus();
                                                return false;

November 18, 2008
2:06PM EDT
by Robert Bahmann

#!/bin/bash
#compile all files in dir to filename_bin and pipe output in filename.error_out


for i in *; do

November 16, 2008
7:37AM EDT
by Robert Bahmann

#include <stdlib.h>
#include <stdio.h>
#ifndef P
#define P printf
#endif

November 15, 2008
6:48AM EDT
by Robert Bahmann

/*
Der zweite (Sohn-)Prozess gibt in seinem Programm sohn2.c einmalig den Text 
"Sohn_2", seine Prozessidentifikation und die seines Vaters sowie die Uhrzeit aus, 
durchläuft anschließend 10 mal eine Schleife, in der er zuerst bis 
MAX_COUNT=100.000.000 zählt und bei Erreichen einen "." ausgibt, und beendet sich. 

November 13, 2008
2:25PM EDT
by Robert Bahmann

#include <stdlib.h>
#include <stdio.h>
#ifndef P
#define P printf
#endif

November 09, 2008
3:06PM EDT
by Robert Bahmann

$GPGGA,200202.531,0000.0000,N,00000.0000,E,0,00,50.0,0.0,M,0.0,M,0.0,0000*73
$GPGSA,A,1,,,,,,,,,,,,,50.0,50.0,50.0*05
$GPRMC,200202.531,V,0000.0000,N,00000.0000,E,,,091108,,*10
$GPGGA,200203.531,0000.0000,N,00000.0000,E,0,00,50.0,0.0,M,0.0,M,0.0,0000*72
$GPGSA,A,1,,,,,,,,,,,,,50.0,50.0,50.0*05

June 01, 2008
11:59AM EDT
by Robert Bahmann

//------------------------------------------------------------
/// \file        Main.cpp
/// \author        Rob Bateman
/// \date        9-feb-2005
/// \brief        This is a very simple example of a bezier curve

November 24, 2007
5:40AM EDT
by Robert Bahmann

        @Override
        protected void paintComponent(java.awt.Graphics g) {
                //repaint the Panel
                
                super.paintComponent(g);

November 21, 2007
3:59PM EDT
by Robert Bahmann

import java.util.*;
import javax.swing.*;

public class SpielFlaeche extends JPanel
{