All pastesPublic feed

Public feed

Pastes people chose to make public. Author names hidden.
  • Something

    2089129·text·1.9 KB·2011-10-11 17:28 UTC
    import java.util.Scanner;
    
    public class BattleshipPlayer {
     private String name;
     protected BattleshipGrid grid;
     private int AChits = 0;
     private int Bhits = 0;
     private int Chits = 0;
     priva
  • Anonymous

    2089128·text·1.5 KB·2011-10-11 17:27 UTC
    public class Position {
     private char row = 'Z';
     private int column = 0;
     private int rowIndex = 0;
     private int colIndex = 0;
    
     public Position(char r, int col){
     row = r;
     if(row == 'A' |
  • Miscellany

    2089127·text·3.6 KB·2011-10-11 17:27 UTC
    public class Boat {
     @SuppressWarnings("unused")
     private boolean Sunk = false;
     private String Ship;
     private Position Pos;
     private String Orientation;
     private int hits[];
  • Anonymous

    2089126·text·1.4 KB·2011-10-11 17:26 UTC
    public class BattleshipGrid {
     private char[][] POS = new char[10][10];
     
     public void shotAt(Position pos, boolean hit, char initial){
     if(hit)
     POS[pos.rowIndex()][pos.columnIndex()] = initi
  • Mine

    2089125·text·662 B·2011-10-11 17:25 UTC
    private void validateUserEntry()
     {
    
     // Checks the value of the text.
    
     if(serverName.Text.Length == 0)
     {
    
     // Initializes the variables to pass to the MessageBox.Show method.
    
     st
  • pteID regkey

    2089123·text·757 B·2011-10-11 17:05 UTC
    REGEDIT4
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider\Portugal Identity Card CSP]
    "Signature"=hex:97,56,70,60,0a,17,fb,44,f9,d4,be,73,3c,bf,bc,42,db,89,58,41,fe,\
     41,f8
  • Vigenere.java

    2089121·text·13.3 KB·2011-10-11 16:44 UTC
    /*
     * Vigenere.java
     * by Eric Farmer
     */
    
    /**
     * This class contains methods for encrypting and decrypting using the Vigenere
     * cipher. All computation is done with arrays of character codes
  • Someone

    2089118·text·618 B·2011-10-11 16:02 UTC
    public class harmadik {
    
     public static void main(String[] args) {
     int n;
     int szam = 0;
    
     if (args.length == 0) {
     n = 10;
     } else {
     try {
     n = Integer.parseInt(args[0]);
     }
  • Unnamed

    2089116·text·1.2 KB·2011-10-11 15:54 UTC
    /**
     * @(#)Text1.java
     *
     *
     * @author
     * @version 1.00 2011/10/11
     */
    
    import java.util.Scanner;
    
    public class Text1 {
    
     public static void main (String[] args) {
    
     Scanner inp
  • Miscellany

    2089113·java·812 B·2011-10-11 15:39 UTC
    @Override
     public void RegisterAnimation(Minecraft mc)
     {
     try {
     HashMap textures = new HashMap();
     java.util.List textureList = (List) ModLoader.getPrivateValue(RenderEngine.class, ModLoad
  • Mine

    2089112·php·2.9 KB·2011-10-11 15:37 UTC
    private function do_sign_up_customer($data)
     {
     
     $DP2 = $this->CI->load->database('dp2', TRUE);
     $DP2->where('Email', $data['Email']);
     $query = $DP2->get('customers');
     
     $MY = $this->
  • Unnamed

    2089111·text·2.9 KB·2011-10-11 15:37 UTC
    private function do_sign_up_customer($data)
     {
     
     $DP2 = $this->CI->load->database('dp2', TRUE);
     $DP2->where('Email', $data['Email']);
     $query = $DP2->get('customers');
     
     $MY = $this->
  • Miscellany

    2089110·java·503 B·2011-10-11 15:26 UTC
    textures = (HashMap) ModLoader.getPrivateValue(RenderEngine.class, ModLoader.getMinecraftInstance().renderEngine, 1);
     int i = (Integer) textures.get(BuildCraftCore.customBuildCraftTexture);
     Mo
  • Unnamed

    2089107·text·1.9 KB·2011-10-11 15:13 UTC
    * sira creeps up
    <DeliriumTremens> ohi
    <DeliriumTremens> i think i'm getting sick >:(
    <sira> noooooooo
    <sira> zinc
    <sira> dont let it gety ou
    <DeliriumTremens> i did!
    <DeliriumTremens> I don't
  • Mine

    2089103·text·4.3 KB·2011-10-11 14:57 UTC
    ############
    Dans mon script perl, j'ai un truc du genre:
    ###########
    my $tefflow = 7000;
    my $teffup = 6750;
    my $loggup = '4.5';
    my $logglow = '4.0';
    my $zlow = '-2.00';
    my $zup = '-1.50';
    my
  • Unnamed

    2089092·text·3.7 KB·2011-10-11 14:02 UTC
    Exam 1--Introduction to Philosophy
    
    For this exam, you can use class notes and your textbook. The exam will be due at the beginning of class on Wednesday, October 12. If you miss class you are still
  • Stuff

    2089091·text·891 B·2011-10-11 14:01 UTC
    Host Loss% Snt Last Avg Best Wrst StDev
     1. my.router 0.0% 181 0.4 0.4 0.4 1.1 0.1
     2. Lo0.amnet.l1-45sgt-se800-01.wa.a
  • Something

    2089075·text·409 B·2011-10-11 13:45 UTC
    Notice: Undefined variable: wgCommandLineMode in /etc/mediawiki/LocalSettings.php on line 39 Notice: Undefined variable: wgCacheEpoch in /etc/mediawiki/LocalSettings.php on line 138 Notice: Undefined
  • Client

    2089067·java·1.2 KB·2011-10-11 13:17 UTC
    package client;
    
    import java.net.*;
    import java.io.*;
    
    import org.omg.CORBA.FREE_MEM;
    
    public class SimpleClient {
    
     /**
     * @param args
     */
     public static void main(String[] args) {
     //
  • Server

    2089066·java·1.4 KB·2011-10-11 13:16 UTC
    package simpleserver;
    
    import java.net.*;
    import java.io.*;
    
    public class Server {
    
     /**
     * @param args
     */
     public static void main(String[] args) {
     Socket talkSocket;
     BufferedReade

older pastes →