New paste›Public feed

Public feed

Pastes people chose to make public. Author names hidden.
  • SensorActuatorConnection.java

    1240714·java·1.8 KB·2008-10-30 16:28 UTC
    import lejos.nxt.*;
    import lejos.util.*;
    
    public class SensorActuatorConnection extends Thread implements TimerListener
    {
     private RCXLightSensor m_sensorInterface = null;
     private MotorPort[] m
  • BBVehicle1.java

    1240713·java·734 B·2008-10-30 16:27 UTC
    import lejos.nxt.*;
    
    public class BBVehicle1
    {
     public static void main (String[] aArg)
     throws Exception
     {
     RCXLightSensor lightSensor = new RCXLightSensor(SensorPort.S3);
     MotorPort[] mo
  • BBVehicle1.java

    1240694·java·728 B·2008-10-30 16:07 UTC
    import lejos.nxt.*;
    
    public class BBVehicle1
    {
     public static void main (String[] aArg)
     throws Exception
     {
     RCXLightSensor lightSensor = new RCXLightSensor(SensorPort.S3);
     MotorPort[] mo
  • SensorActuatorConnection.java

    1240691·java·1.7 KB·2008-10-30 15:58 UTC
    import lejos.nxt.*;
    import lejos.util.*;
    
    public class SensorActuatorConnection extends Thread implements TimerListener
    {
     private RCXLightSensor m_sensorInterface = null;
     private MotorPort[] m
  • crc generator for multi eps of a

    1240684·perl·1017 B·2008-10-30 15:51 UTC
    use strict;
    use String::CRC32;
    use Getopt::Std;
    use File::Basename;
    
    my %opt;
    getopt('d:s:e:r:', \%opt);
    unless (defined $opt{'d'} and defined $opt{'s'} and defined $opt{'e'}) {
     print "Usage
  • phm

    1240647·text·13.9 KB·2008-10-30 15:19 UTC
    !!################################
    !!ALSA Information Script v 0.4.41
    !!################################
    
    !!Script ran on: Tue Oct 28 20:12:57 CET 2008
    
    !!Linux Distribution
    !!------------------
    
    Fe
  • Mine

    1240641·text·20.6 KB·2008-10-30 15:14 UTC
    PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
    t/01base................# Test loading DBI, DBD::Oracle and version
    
    # Failed test
  • br

    1240589·text·26.4 KB·2008-10-30 13:57 UTC
    tsalsa version 2008-09-14 Thu Oct 30 22:57:12 JST 2008 
    
    Problem: Can only get sound via speakers not via headset. Muting unmuting in the alsamixer doens't work either. 
    
     Laptop: sony vaio z70
  • keeper

    1240568·text·3.4 KB·2008-10-30 13:15 UTC
    <?
    
    /*update race
    mysql_query("UPDATE users SET race='$race' WHERE userid='$username'");
    mysql_query("UPDATE users SET slot_tot='2' WHERE userid='$username'");
    */
    
    //crea des premiere creatur
  • root

    1240559·text·18.0 KB·2008-10-30 13:01 UTC
    !!################################
    !!ALSA Information Script v 0.4.41
    !!################################
    
    !!Script ran on: Thu Oct 30 14:01:28 CET 2008
    
    !!Linux Distribution
    !!------------------
    
    Fe
  • LineFollowerCal.java

    1240537·java·4.5 KB·2008-10-30 12:13 UTC
    import lejos.nxt.*;
    /**
     * A simple line follower for the LEGO 9797 car with
     * a light sensor. Before the car is started on a line
     * a BlackWhiteSensor is calibrated to adapt to different
     * li
  • ColorSensor.java

    1240531·java·2.4 KB·2008-10-30 12:05 UTC
    import lejos.nxt.*;
    /**
     * A sensor that is able to distinguish a black/dark surface
     * from a white/bright surface.
     * 
     * Light percent values from an active light sensor and a
     * threshold va
  • ColorSensor.java

    1240523·java·2.4 KB·2008-10-30 11:58 UTC
    import lejos.nxt.*;
    /**
     * A sensor that is able to distinguish a black/dark surface
     * from a white/bright surface.
     * 
     * Light percent values from an active light sensor and a
     * threshold va
  • ColorSensor.java

    1240522·java·2.4 KB·2008-10-30 11:58 UTC
    import lejos.nxt.*;
    /**
     * A sensor that is able to distinguish a black/dark surface
     * from a white/bright surface.
     * 
     * Light percent values from an active light sensor and a
     * threshold va
  • BlackWhiteSensor.java

    1240521·java·2.1 KB·2008-10-30 11:55 UTC
    import lejos.nxt.*;
    /**
     * A sensor that is able to distinguish a black/dark surface
     * from a white/bright surface.
     * 
     * Light percent values from an active light sensor and a
     * threshold va
  • LineFollowerCal.java

    1240514·java·2.4 KB·2008-10-30 11:40 UTC
    import lejos.nxt.*;
    /**
     * A simple line follower for the LEGO 9797 car with
     * a light sensor. Before the car is started on a line
     * a BlackWhiteSensor is calibrated to adapt to different
     * li
  • LineFollowerCal.java

    1240506·java·2.4 KB·2008-10-30 11:29 UTC
    import lejos.nxt.*;
    /**
     * A simple line follower for the LEGO 9797 car with
     * a light sensor. Before the car is started on a line
     * a BlackWhiteSensor is calibrated to adapt to different
     * li
  • Stuff

    1240502·python·2.4 KB·2008-10-30 11:23 UTC
    #!/usr/bin/env python
    
    #$Id: milter.py 44 2008-10-30 11:08:46Z valera $
    
    import sys
    import os
    import StringIO
    import popen2
    import rfc822
    from time import strftime
    from subprocess import Pop
  • Car.java

    1240501·java·1.4 KB·2008-10-30 11:23 UTC
    import lejos.nxt.*;
    /**
     * A locomotion module with methods to drive
     * a car with two independent motors. The left motor 
     * should be connected to port C and the right motor
     * to port B.
     *
  • Car.java

    1240499·java·1.4 KB·2008-10-30 11:22 UTC
    import lejos.nxt.*;
    /**
     * A locomotion module with methods to drive
     * a car with two independent motors. The left motor 
     * should be connected to port C and the right motor
     * to port B.
     *

older pastes →