code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 10beseahaider-muclone | samples/gcm-demo-appengine/src/com/google/android/gcm/demo/server/HomeServlet.java | Java | asf20 | 2,295 |
<jsp:forward page="/home"/>
| 10beseahaider-muclone | samples/gcm-demo-appengine/WebContent/index.jsp | Java Server Pages | asf20 | 28 |
function Scene(context, player) {
this.player = player;
this.waves = [];
this.horizonY = -300;
this.oceanGradient =
context.createLinearGradient(0, this.horizonY, 0, 500);
this.oceanGradient.addColorStop(0, 'rgb(0, 0, 255)');
this.oceanGradient.addColorStop(1, 'rgb(0, 0, 128)');
}
Scene... | 0x0000ff | trunk/scene.js | JavaScript | mit | 2,100 |
var canvas, context, stats;
var time = 0;
var windowHalfX = window.innerWidth / 2;
var windowHalfY = window.innerHeight / 2;
var controls;
var scene;
var planes = [];
var bullets = [];
var missiles = [];
var player;
requestAnimFrame = (function() {
return window.requestAnimationFrame ||
windo... | 0x0000ff | trunk/main.js | JavaScript | mit | 4,193 |
function Bullet(image, x, y, speed, angle) {
this.image = image;
this.x = x;
this.y = y;
this.speed = speed;
this.angle = angle;
this.life = 0;
this.lifetime = 1;
}
Bullet.prototype.update = function(dt) {
this.life += dt;
if (this.life > this.lifetime) {
return 0;
}
this.x += ... | 0x0000ff | trunk/bullet.js | JavaScript | mit | 838 |
function Trail() {
this.x = 0;
this.y = 0;
this.trail = [];
this.timer = 0;
}
Trail.prototype.update = function(x, y, dt) {
this.x = x;
this.y = y;
this.timer += dt;
if (this.timer > 0.02) {
this.timer = 0;
this.trail.push({x: x, y: y});
if (this.trail.length > 20) {
th... | 0x0000ff | trunk/trail.js | JavaScript | mit | 1,318 |
function Missile(image, x, y, speed, angle, player) {
this.image = image;
this.x = x;
this.y = y;
this.vY = 0;
this.speed = speed;
this.angle = angle;
this.player = player;
this.life = 0;
this.lifetime = 3;
this.arm_time = 0.25 + Math.random() * 0.1 - 0.05;
this.max_speed = 3000;
t... | 0x0000ff | trunk/missile.js | JavaScript | mit | 2,469 |
<html>
<head>
<style>
body {margin: 0;}
</style>
</head>
<body>
<script src="Stats.js"></script>
<script src="controls.js"></script>
<script src="trail.js"></script>
<script src="bullet.js"></script>
<script src="missile.js"></script>
<script src="scene.js"></script>
<script src="... | 0x0000ff | trunk/index.html | HTML | mit | 394 |
function Plane(image, shadowImage, x, y, bullets, missiles) {
this.image = image;
this.shadowImage = shadowImage;
this.x = x;
this.y = y;
this.speed = 0;
this.angle = 0;
this.speedChange = false;
//this.trail = [{x: this.x, y: this.y}];
//this.trailTimer = 0;
this.trail1 = new Trail();
... | 0x0000ff | trunk/plane.js | JavaScript | mit | 5,103 |
/*
* Copyright 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 1291msanmiguel-selfie | gcm-client/GcmClient/src/main/java/com/google/android/gcm/demo/app/GcmBroadcastReceiver.java | Java | asf20 | 1,788 |
/*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1291msanmiguel-selfie | gcm-client/GcmClient/src/main/java/com/google/android/gcm/demo/app/GcmIntentService.java | Java | asf20 | 4,598 |
/*
* Copyright 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 1291msanmiguel-selfie | gcm-client/GcmClient/src/main/java/com/google/android/gcm/demo/app/DemoActivity.java | Java | asf20 | 9,852 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | samples/gcm-demo-server/src/com/google/android/gcm/demo/server/Datastore.java | Java | asf20 | 2,049 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | samples/gcm-demo-server/src/com/google/android/gcm/demo/server/UnregisterServlet.java | Java | asf20 | 1,429 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | samples/gcm-demo-server/src/com/google/android/gcm/demo/server/HomeServlet.java | Java | asf20 | 2,340 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | samples/gcm-demo-server/src/com/google/android/gcm/demo/server/BaseServlet.java | Java | asf20 | 2,802 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | samples/gcm-demo-server/src/com/google/android/gcm/demo/server/RegisterServlet.java | Java | asf20 | 1,450 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | samples/gcm-demo-server/src/com/google/android/gcm/demo/server/SendAllMessagesServlet.java | Java | asf20 | 5,498 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | samples/gcm-demo-server/src/com/google/android/gcm/demo/server/ApiKeyInitializer.java | Java | asf20 | 2,369 |
<jsp:forward page="/home"/>
| 1291msanmiguel-selfie | samples/gcm-demo-server/WebContent/index.jsp | Java Server Pages | asf20 | 28 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | samples/gcm-demo-appengine/src/com/google/android/gcm/demo/server/Datastore.java | Java | asf20 | 8,837 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | samples/gcm-demo-appengine/src/com/google/android/gcm/demo/server/UnregisterServlet.java | Java | asf20 | 1,429 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | samples/gcm-demo-appengine/src/com/google/android/gcm/demo/server/HomeServlet.java | Java | asf20 | 2,295 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | samples/gcm-demo-appengine/src/com/google/android/gcm/demo/server/BaseServlet.java | Java | asf20 | 2,802 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | samples/gcm-demo-appengine/src/com/google/android/gcm/demo/server/SendMessageServlet.java | Java | asf20 | 7,021 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | samples/gcm-demo-appengine/src/com/google/android/gcm/demo/server/RegisterServlet.java | Java | asf20 | 1,450 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | samples/gcm-demo-appengine/src/com/google/android/gcm/demo/server/SendAllMessagesServlet.java | Java | asf20 | 3,528 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | samples/gcm-demo-appengine/src/com/google/android/gcm/demo/server/ApiKeyInitializer.java | Java | asf20 | 2,712 |
<jsp:forward page="/home"/>
| 1291msanmiguel-selfie | samples/gcm-demo-appengine/WebContent/index.jsp | Java Server Pages | asf20 | 28 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 1291msanmiguel-selfie | samples/gcm-demo-client/src/com/google/android/gcm/demo/app/CommonUtilities.java | Java | asf20 | 1,993 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 1291msanmiguel-selfie | samples/gcm-demo-client/src/com/google/android/gcm/demo/app/GCMIntentService.java | Java | asf20 | 4,223 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 1291msanmiguel-selfie | samples/gcm-demo-client/src/com/google/android/gcm/demo/app/ServerUtilities.java | Java | asf20 | 7,034 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 1291msanmiguel-selfie | samples/gcm-demo-client/src/com/google/android/gcm/demo/app/DemoActivity.java | Java | asf20 | 5,509 |
/** Automatically generated file. DO NOT MODIFY */
package com.google.android.gcm;
public final class BuildConfig {
public final static boolean DEBUG = true;
} | 1291msanmiguel-selfie | gcm-client-deprecated/gen/com/google/android/gcm/BuildConfig.java | Java | asf20 | 164 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 1291msanmiguel-selfie | gcm-client-deprecated/src/com/google/android/gcm/GCMConstants.java | Java | asf20 | 6,105 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 1291msanmiguel-selfie | gcm-client-deprecated/src/com/google/android/gcm/GCMLogger.java | Java | asf20 | 1,530 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 1291msanmiguel-selfie | gcm-client-deprecated/src/com/google/android/gcm/GCMBaseIntentService.java | Java | asf20 | 14,032 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 1291msanmiguel-selfie | gcm-client-deprecated/src/com/google/android/gcm/GCMBroadcastReceiver.java | Java | asf20 | 3,012 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 1291msanmiguel-selfie | gcm-client-deprecated/src/com/google/android/gcm/GCMRegistrar.java | Java | asf20 | 22,174 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | gcm-server/src/com/google/android/gcm/server/Message.java | Java | asf20 | 5,628 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | gcm-server/src/com/google/android/gcm/server/InvalidRequestException.java | Java | asf20 | 1,700 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | gcm-server/src/com/google/android/gcm/server/Sender.java | Java | asf20 | 24,302 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | gcm-server/src/com/google/android/gcm/server/Result.java | Java | asf20 | 3,458 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | gcm-server/src/com/google/android/gcm/server/MulticastResult.java | Java | asf20 | 3,886 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1291msanmiguel-selfie | gcm-server/src/com/google/android/gcm/server/Constants.java | Java | asf20 | 6,107 |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="8608002">
<Item Name="My Computer" Type="My Computer">
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.control.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.tcp... | 1294-top-gun-frc-2011 | trunk/Dashboard/2011 Dashboard Project.lvproj | LabVIEW | gpl3 | 7,235 |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="8608002">
<Item Name="My Computer" Type="My Computer">
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.control.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.tcp... | 1294-top-gun-frc-2011 | trunk/FRC 2011.lvproj | LabVIEW | gpl3 | 80,022 |
package bean;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JLabel;
import javax.swing.Timer;
public class JLabelCronometro2 extends JLabel implements ActionListener{
Timer timer;
private int segundos=0;
private int minutos=0;
... | 1-2-primer-proyecto | trunk/1-2-primer-proyecto/code/JLabelCronometro2.java | Java | asf20 | 1,989 |
package bean;
import javax.swing.ImageIcon;
public class JImageIcon {
public ImageIcon crearImageIcon(String ruta) {
java.net.URL imgenURL = getClass().getClassLoader().getResource(ruta);
if (imgenURL != null) {
return new ImageIcon(imgenURL, "");
} else {
System.err.println("No se puede enc... | 1-2-primer-proyecto | trunk/1-2-primer-proyecto/code/JImageIcon.java | Java | asf20 | 380 |
package modelo;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
public class FraseDAO {
public FraseDAO() {
super();
}
public void registrarFrase(Frase frase){
String tiraSQL = "INSERT INTO frase"+
"(idfrase, descripcion, nivel) "+
"VALUES("+
... | 1-2-primer-proyecto | trunk/1-2-primer-proyecto/code/FraseDAO.java | Java | asf20 | 1,289 |
package bean;
import javax.swing.ImageIcon;
public class EtiquetaImagen {
public ImageIcon crearImageIcon(String ruta) {
java.net.URL imgenURL = getClass().getClassLoader().getResource(ruta);
if (imgenURL != null) {
return new ImageIcon(imgenURL, "");
} else {
System.err.println("No se puede... | 1-2-primer-proyecto | trunk/1-2-primer-proyecto/code/EtiquetaImagen.java | Java | asf20 | 384 |
package bean;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JLabel;
import javax.swing.Timer;
public class JLabelCronometro extends JLabel implements ActionListener{
/**
*
*/
private static final long serialVersionUID = 1L;
... | 1-2-primer-proyecto | trunk/1-2-primer-proyecto/code/JLabelCronometro.java | Java | asf20 | 1,993 |
package vista;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Vector;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;
import modelo.FraseDAO;
/**
* This code was e... | 1-2-primer-proyecto | trunk/1-2-primer-proyecto/code/prueba.java | Java | asf20 | 3,181 |
package controlador;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import vista.VentanaMenu;
public class ControladorVentanaMenu implements ActionListener{
private VentanaMenu ventanaMenu;
public ControladorVentanaMenu() {
super();
this.ventanaMenu = new VentanaMenu(... | 1-2-primer-proyecto | trunk/1-2-primer-proyecto/src/controlador/ControladorVentanaMenu.java | Java | asf20 | 905 |
package controlador;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import modelo.Frase;
import modelo.FraseDAO;
import modelo.Nivel;
import modelo.NivelDAO;
import vista.VentanaFrase;
public class ControladorVentanaFrase implements ActionListener {
private VentanaFrase ve... | 1-2-primer-proyecto | trunk/1-2-primer-proyecto/src/controlador/ControladorVentanaFrase.java | Java | asf20 | 2,674 |
package controlador;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Time;
import java.text.SimpleDateFormat;
import java.util.Enumeration;
import java.util.Locale;
import java.util.Vector;
import modelo.FraseDAO;
import modelo.JugadorDAO;
import vista.VentanaJug... | 1-2-primer-proyecto | trunk/1-2-primer-proyecto/src/controlador/ControladorVentanaJugar.java | Java | asf20 | 7,621 |
package controlador;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Time;
import modelo.Jugador;
import modelo.JugadorDAO;
import modelo.Nivel;
import modelo.NivelDAO;
import vista.VentanaRegistrarJugador;
public class ControladorRegistrarJugador implements Act... | 1-2-primer-proyecto | trunk/1-2-primer-proyecto/src/controlador/ControladorRegistrarJugador.java | Java | asf20 | 2,249 |
package controlador;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.List;
import java.util.Vector;
import modelo.JugadorDAO;
import modelo.Nivel;
import modelo.NivelDAO;
import vista.VentanaJugadorModeloTabla;
import vista.VentanaListadoJugador;
public class ... | 1-2-primer-proyecto | trunk/1-2-primer-proyecto/src/controlador/ControladorVentanaListado.java | Java | asf20 | 1,476 |
package vista;
import java.awt.BorderLayout;
import java.awt.Image;
import java.awt.event.ActionListener;
import javax.swing.ButtonGroup;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
imp... | 1-2-primer-proyecto | trunk/1-2-primer-proyecto/src/vista/VentanaNivel.java | Java | asf20 | 4,254 |
package vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import java.util.Vector;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScr... | 1-2-primer-proyecto | trunk/1-2-primer-proyecto/src/vista/VentanaListadoJugador.java | Java | asf20 | 3,830 |
package vista;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;
import javax.swing.table.AbstractTableModel;
public class VentanaJugadorModeloTabla extends AbstractTableModel {
private static String[] titulos = {"Nombre del Jugador", "Puntaje", "Nivel"};
private List<Vector<St... | 1-2-primer-proyecto | trunk/1-2-primer-proyecto/src/vista/VentanaJugadorModeloTabla.java | Java | asf20 | 1,060 |
package vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import javabean.JPanelImagen;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.ButtonGroup;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JRadioButton;
... | 1-2-primer-proyecto | trunk/1-2-primer-proyecto/src/vista/VentanaMenu.java | Java | asf20 | 5,157 |
package vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import java.util.Vector;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.... | 1-2-primer-proyecto | trunk/1-2-primer-proyecto/src/vista/VentanaFrase.java | Java | asf20 | 6,045 |
package modelo;
import java.sql.*;
public class Conexion {
// La descripcion del driver de la BD
private static String driver = "org.postgresql.Driver";
// La direccion URL de la BD
private static String url = "jdbc:postgresql://localhost:5432/";
// El nombre de la BD
priv... | 1-2-primer-proyecto | trunk/1-2-primer-proyecto/src/modelo/Conexion.java | Java | asf20 | 2,649 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.engine;
import eu.lighthouselabs.obd.commands.PercentageObdCommand;
import eu.lighthouselabs.obd.enums.AvailableCommandNames;
/**
* Read the throttle position in percentage.
*/
public class ThrottlePositionObdCommand extends PercentageObdCommand {
/... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/engine/ThrottlePositionObdCommand.java | Java | asf20 | 660 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.engine;
import eu.lighthouselabs.obd.commands.ObdCommand;
import eu.lighthouselabs.obd.commands.PercentageObdCommand;
import eu.lighthouselabs.obd.enums.AvailableCommandNames;
/**
* Calculated Engine Load value.
*/
public class EngineLoadObdCommand ex... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/engine/EngineLoadObdCommand.java | Java | asf20 | 712 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.engine;
import eu.lighthouselabs.obd.commands.ObdCommand;
import eu.lighthouselabs.obd.enums.AvailableCommandNames;
/**
* Displays the current engine revolutions per minute (RPM).
*/
public class EngineRPMObdCommand extends ObdCommand {
private int... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/engine/EngineRPMObdCommand.java | Java | asf20 | 1,004 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.engine;
import eu.lighthouselabs.obd.commands.ObdCommand;
import eu.lighthouselabs.obd.enums.AvailableCommandNames;
/**
* TODO put description
*
* Mass Air Flow
*/
public class MassAirFlowObdCommand extends ObdCommand {
private float _maf = -1.0f... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/engine/MassAirFlowObdCommand.java | Java | asf20 | 1,021 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.engine;
import eu.lighthouselabs.obd.commands.ObdCommand;
import eu.lighthouselabs.obd.enums.AvailableCommandNames;
/**
* TODO put description
*/
public class EngineRuntimeObdCommand extends ObdCommand {
/**
* Default ctor.
*/
public EngineRunt... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/engine/EngineRuntimeObdCommand.java | Java | asf20 | 1,091 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.control;
import eu.lighthouselabs.obd.commands.ObdCommand;
import eu.lighthouselabs.obd.enums.AvailableCommandNames;
/**
* Fuel systems that use conventional oxygen sensor display the commanded open
* loop equivalence ratio while the system is in open... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/control/CommandEquivRatioObdCommand.java | Java | asf20 | 1,571 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.control;
import eu.lighthouselabs.obd.commands.ObdCommand;
import eu.lighthouselabs.obd.enums.AvailableCommandNames;
/**
* In order to get ECU Trouble Codes, one must first send a DtcNumberObdCommand
* and by so, determining the number of error codes ... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/control/TroubleCodesObdCommand.java | Java | asf20 | 2,765 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.control;
import eu.lighthouselabs.obd.commands.PercentageObdCommand;
import eu.lighthouselabs.obd.enums.AvailableCommandNames;
/**
* TODO put description
*
* Timing Advance
*/
public class TimingAdvanceObdCommand extends PercentageObdCommand {
pu... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/control/TimingAdvanceObdCommand.java | Java | asf20 | 560 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.control;
import eu.lighthouselabs.obd.commands.ObdCommand;
import eu.lighthouselabs.obd.enums.AvailableCommandNames;
/**
* This command will for now read MIL (check engine light) state and number of
* diagnostic trouble codes currently flagged in the ... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/control/DtcNumberObdCommand.java | Java | asf20 | 1,625 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.protocol;
import eu.lighthouselabs.obd.commands.ObdCommand;
/**
* This command will turn-off echo.
*/
public class EchoOffObdCommand extends ObdCommand {
/**
* @param command
*/
public EchoOffObdCommand() {
super("AT E0");
}
/**
* @param... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/protocol/EchoOffObdCommand.java | Java | asf20 | 641 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.protocol;
import java.io.IOException;
import java.io.InputStream;
import eu.lighthouselabs.obd.commands.ObdCommand;
/**
* This method will reset the OBD connection.
*/
public class ObdResetCommand extends ObdCommand {
/**
* @param command
*/
... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/protocol/ObdResetCommand.java | Java | asf20 | 996 |
/*
* TODO put description
*/
package eu.lighthouselabs.obd.commands.protocol;
import eu.lighthouselabs.obd.commands.ObdCommand;
/**
* This will set the value of time in milliseconds (ms) that the OBD interface
* will wait for a response from the ECU. If exceeds, the response is "NO DATA".
*/
public class Timeout... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/protocol/TimeoutObdCommand.java | Java | asf20 | 941 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.protocol;
import eu.lighthouselabs.obd.commands.ObdCommand;
import eu.lighthouselabs.obd.enums.ObdProtocols;
/**
* Select the protocol to use.
*/
public class SelectProtocolObdCommand extends ObdCommand {
private final ObdProtocols _protocol;
/**... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/protocol/SelectProtocolObdCommand.java | Java | asf20 | 742 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.protocol;
import eu.lighthouselabs.obd.commands.ObdCommand;
/**
* Turns off line-feed.
*/
public class LineFeedOffObdCommand extends ObdCommand {
/**
* @param command
*/
public LineFeedOffObdCommand() {
super("AT L0");
}
/**
* @param oth... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/protocol/LineFeedOffObdCommand.java | Java | asf20 | 646 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.temperature;
import eu.lighthouselabs.obd.enums.AvailableCommandNames;
/**
* Engine Coolant Temperature.
*/
public class EngineCoolantTemperatureObdCommand extends TemperatureObdCommand {
/**
*
*/
public EngineCoolantTemperatureObdCommand() {
... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/temperature/EngineCoolantTemperatureObdCommand.java | Java | asf20 | 662 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.temperature;
import eu.lighthouselabs.obd.enums.AvailableCommandNames;
/**
* TODO
*
* put description
*/
public class AirIntakeTemperatureObdCommand extends TemperatureObdCommand {
public AirIntakeTemperatureObdCommand() {
super("01 0F");
}
... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/temperature/AirIntakeTemperatureObdCommand.java | Java | asf20 | 521 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.temperature;
import eu.lighthouselabs.obd.commands.ObdCommand;
import eu.lighthouselabs.obd.commands.SystemOfUnits;
/**
* TODO
*
* put description
*/
public abstract class TemperatureObdCommand extends ObdCommand implements SystemOfUnits {
priva... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/temperature/TemperatureObdCommand.java | Java | asf20 | 1,742 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.temperature;
import eu.lighthouselabs.obd.enums.AvailableCommandNames;
/**
* Ambient Air Temperature.
*/
public class AmbientAirTemperatureObdCommand extends TemperatureObdCommand {
/**
* @param cmd
*/
public AmbientAirTemperatureObdCommand() ... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/temperature/AmbientAirTemperatureObdCommand.java | Java | asf20 | 571 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.utils;
/**
* Misc utilities
*/
public final class ObdUtils {
/**
* @param an integer value
* @return the equivalent FuelType name.
*/
public final static String getFuelTypeName(int value) {
String name = null;
switch (value) {
case 1:
... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/utils/ObdUtils.java | Java | asf20 | 1,452 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.fuel;
import eu.lighthouselabs.obd.commands.ObdCommand;
import eu.lighthouselabs.obd.enums.AvailableCommandNames;
/**
* Get fuel level in percentage
*/
public class FuelLevelObdCommand extends ObdCommand {
private float fuelLevel = 0f;
/**
* @p... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/fuel/FuelLevelObdCommand.java | Java | asf20 | 841 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.fuel;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import eu.lighthouselabs.obd.commands.ObdCommand;
import eu.lighthouselabs.obd.commands.SpeedObdCommand;
import eu.lighthouselabs.obd.commands.control.CommandEqu... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/fuel/FuelEconomyWithoutMAFObdCommand.java | Java | asf20 | 2,219 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.fuel;
import eu.lighthouselabs.obd.enums.AvailableCommandNames;
import eu.lighthouselabs.obd.enums.FuelType;
/**
* TODO put description
*/
public class FuelEconomyWithMAFObdCommand {
private int speed = 1;
private double maf = 1;
private float lt... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/fuel/FuelEconomyWithMAFObdCommand.java | Java | asf20 | 1,847 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.fuel;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import eu.lighthouselabs.obd.commands.ObdCommand;
import eu.lighthouselabs.obd.commands.SpeedObdCommand;
import eu.lighthouselabs.obd.enums.AvailableCommandNames;... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/fuel/FuelEconomyObdCommand.java | Java | asf20 | 1,815 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.fuel;
import eu.lighthouselabs.obd.commands.ObdCommand;
import eu.lighthouselabs.obd.enums.FuelTrim;
/**
* Get Fuel Trim.
*
*/
public class FuelTrimObdCommand extends ObdCommand {
private float fuelTrimValue = 0.0f;
private final FuelTrim bank;
... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/fuel/FuelTrimObdCommand.java | Java | asf20 | 1,334 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.fuel;
import eu.lighthouselabs.obd.commands.ObdCommand;
import eu.lighthouselabs.obd.enums.AvailableCommandNames;
/**
* TODO put description
*/
public class FuelConsumptionObdCommand extends ObdCommand {
private float fuelRate = -1.0f;
public Fue... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/fuel/FuelConsumptionObdCommand.java | Java | asf20 | 1,110 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.fuel;
import eu.lighthouselabs.obd.commands.ObdCommand;
import eu.lighthouselabs.obd.commands.utils.ObdUtils;
import eu.lighthouselabs.obd.enums.AvailableCommandNames;
/**
* This command is intended to determine the vehicle fuel type.
*/
public class... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/fuel/FindFuelTypeObdCommand.java | Java | asf20 | 1,166 |
package eu.lighthouselabs.obd.commands.pressure;
import eu.lighthouselabs.obd.enums.AvailableCommandNames;
public class FuelPressureObdCommand extends PressureObdCommand {
public FuelPressureObdCommand() {
super("010A");
}
public FuelPressureObdCommand(FuelPressureObdCommand other) {
super(other);
}
/**
... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/pressure/FuelPressureObdCommand.java | Java | asf20 | 602 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.pressure;
import eu.lighthouselabs.obd.enums.AvailableCommandNames;
/**
* Intake Manifold Pressure
*/
public class IntakeManifoldPressureObdCommand extends PressureObdCommand {
/**
* Default ctor.
*/
public IntakeManifoldPressureObdCommand() {... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/pressure/IntakeManifoldPressureObdCommand.java | Java | asf20 | 609 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands.pressure;
import eu.lighthouselabs.obd.commands.ObdCommand;
import eu.lighthouselabs.obd.commands.SystemOfUnits;
/**
* TODO put description
*/
public abstract class PressureObdCommand extends ObdCommand implements
SystemOfUnits {
protected int te... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/pressure/PressureObdCommand.java | Java | asf20 | 1,525 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands;
/**
* This interface will define methods for converting to/from imperial units and
* from/to metric units.
*/
public interface SystemOfUnits {
float getImperialUnit();
} | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/SystemOfUnits.java | Java | asf20 | 243 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
/**
* TODO put description
*/
public abstract class ObdCommand {
protected ArrayList<Integer> buffer = null;
protected String cmd = n... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/ObdCommand.java | Java | asf20 | 4,231 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
/**
* TODO put description
*/
public class ObdMultiCommand {
private ArrayList<ObdCommand> commands;
/**
* Default ctor.
*/
pu... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/ObdMultiCommand.java | Java | asf20 | 1,270 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.commands;
import eu.lighthouselabs.obd.enums.AvailableCommandNames;
/**
* TODO put description
*
* Current speed.
*/
public class SpeedObdCommand extends ObdCommand implements SystemOfUnits {
private int metricSpeed = 0;
/**
* Default ctor.
*/
publ... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/commands/SpeedObdCommand.java | Java | asf20 | 1,344 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.enums;
/**
* TODO put description
*/
public enum AvailableCommandNames {
AIR_INTAKE_TEMP("Air Intake Temperature"),
AMBIENT_AIR_TEMP("Ambient Air Temperature"),
ENGINE_COOLANT_TEMP("Engine Coolant Temperature"),
BAROMETRIC_PRESSURE("Barometric Pressure"),
... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/enums/AvailableCommandNames.java | Java | asf20 | 1,165 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.enums;
/**
* All OBD protocols.
*/
public enum ObdProtocols {
/**
* Auto select protocol and save.
*/
AUTO('0'),
/**
* 41.6 kbaud
*/
SAE_J1850_PWM('1'),
/**
* 10.4 kbaud
*/
SAE_J1850_VPW('2'),
/**
* 5 baud init
*/
ISO_9141_2('3'),
... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/enums/ObdProtocols.java | Java | asf20 | 1,044 |
/*
* TODO put header
*/
package eu.lighthouselabs.obd.enums;
/**
* Select one of the Fuel Trim percentage banks to access.
*/
public enum FuelTrim {
SHORT_TERM_BANK_1(0x06),
LONG_TERM_BANK_1(0x07),
SHORT_TERM_BANK_2(0x08),
LONG_TERM_BANK_2(0x09);
private final int value;
/**
*
* @param value
*/
pr... | 060602-bill | obd-api/src/main/java/eu/lighthouselabs/obd/enums/FuelTrim.java | Java | asf20 | 937 |