From 6d414b2503374a2530671795c952bd2bf17d2530 Mon Sep 17 00:00:00 2001 From: roshka Date: Mon, 19 Nov 2018 16:58:53 -0300 Subject: [PATCH] Primer ejercicio de Java Web --- #README.md# | 1 + Poker/.classpath | 17 +++++++++++++++++ Poker/.project | 31 +++++++++++++++++++++++++++++++ Poker/.settings/.jsdtscope | 12 ++++++++++++ Poker/.settings/org.eclipse.jdt.core.prefs | 12 ++++++++++++ Poker/.settings/org.eclipse.wst.common.component | 8 ++++++++ Poker/.settings/org.eclipse.wst.common.project.facet.core.xml | 10 ++++++++++ Poker/.settings/org.eclipse.wst.jsdt.ui.superType.container | 1 + Poker/.settings/org.eclipse.wst.jsdt.ui.superType.name | 1 + Poker/WebContent/META-INF/MANIFEST.MF | 3 +++ Poker/WebContent/PNG/10C.png | Bin 0 -> 39304 bytes Poker/WebContent/PNG/10D.png | Bin 0 -> 30498 bytes Poker/WebContent/PNG/10H.png | Bin 0 -> 29863 bytes Poker/WebContent/PNG/10S.png | Bin 0 -> 30184 bytes Poker/WebContent/PNG/2C.png | Bin 0 -> 18838 bytes Poker/WebContent/PNG/2D.png | Bin 0 -> 17076 bytes Poker/WebContent/PNG/2H.png | Bin 0 -> 17622 bytes Poker/WebContent/PNG/2S.png | Bin 0 -> 16701 bytes Poker/WebContent/PNG/3C.png | Bin 0 -> 22549 bytes Poker/WebContent/PNG/3D.png | Bin 0 -> 20104 bytes Poker/WebContent/PNG/3H.png | Bin 0 -> 20545 bytes Poker/WebContent/PNG/3S.png | Bin 0 -> 19245 bytes Poker/WebContent/PNG/4C.png | Bin 0 -> 23683 bytes Poker/WebContent/PNG/4D.png | Bin 0 -> 18843 bytes Poker/WebContent/PNG/4H.png | Bin 0 -> 19891 bytes Poker/WebContent/PNG/4S.png | Bin 0 -> 18763 bytes Poker/WebContent/PNG/5C.png | Bin 0 -> 27723 bytes Poker/WebContent/PNG/5D.png | Bin 0 -> 21817 bytes Poker/WebContent/PNG/5H.png | Bin 0 -> 23556 bytes Poker/WebContent/PNG/5S.png | Bin 0 -> 21622 bytes Poker/WebContent/PNG/6C.png | Bin 0 -> 30178 bytes Poker/WebContent/PNG/6D.png | Bin 0 -> 25532 bytes Poker/WebContent/PNG/6H.png | Bin 0 -> 26545 bytes Poker/WebContent/PNG/6S.png | Bin 0 -> 24177 bytes Poker/WebContent/PNG/7C.png | Bin 0 -> 31786 bytes Poker/WebContent/PNG/7D.png | Bin 0 -> 25423 bytes Poker/WebContent/PNG/7H.png | Bin 0 -> 26122 bytes Poker/WebContent/PNG/7S.png | Bin 0 -> 24072 bytes Poker/WebContent/PNG/8C.png | Bin 0 -> 36725 bytes Poker/WebContent/PNG/8D.png | Bin 0 -> 29912 bytes Poker/WebContent/PNG/8H.png | Bin 0 -> 29440 bytes Poker/WebContent/PNG/8S.png | Bin 0 -> 29511 bytes Poker/WebContent/PNG/9C.png | Bin 0 -> 38146 bytes Poker/WebContent/PNG/9D.png | Bin 0 -> 30872 bytes Poker/WebContent/PNG/9H.png | Bin 0 -> 30083 bytes Poker/WebContent/PNG/9S.png | Bin 0 -> 30148 bytes Poker/WebContent/PNG/AC.png | Bin 0 -> 16295 bytes Poker/WebContent/PNG/AD.png | Bin 0 -> 15560 bytes Poker/WebContent/PNG/AH.png | Bin 0 -> 16131 bytes Poker/WebContent/PNG/AS.png | Bin 0 -> 28393 bytes Poker/WebContent/PNG/JC.png | Bin 0 -> 178358 bytes Poker/WebContent/PNG/JD.png | Bin 0 -> 182390 bytes Poker/WebContent/PNG/JH.png | Bin 0 -> 186608 bytes Poker/WebContent/PNG/JS.png | Bin 0 -> 182767 bytes Poker/WebContent/PNG/KC.png | Bin 0 -> 161344 bytes Poker/WebContent/PNG/KD.png | Bin 0 -> 171628 bytes Poker/WebContent/PNG/KH.png | Bin 0 -> 183915 bytes Poker/WebContent/PNG/KS.png | Bin 0 -> 179903 bytes Poker/WebContent/PNG/QC.png | Bin 0 -> 183556 bytes Poker/WebContent/PNG/QD.png | Bin 0 -> 187118 bytes Poker/WebContent/PNG/QH.png | Bin 0 -> 194245 bytes Poker/WebContent/PNG/QS.png | Bin 0 -> 163468 bytes Poker/WebContent/Pagina/agenda.html | 17 +++++++++++++++++ Poker/WebContent/Pagina/cartas.html | 21 +++++++++++++++++++++ Poker/WebContent/Pagina/conversor.html | 19 +++++++++++++++++++ Poker/WebContent/index.html | 16 ++++++++++++++++ Poker/build/classes/com/roshka/bootcamp004/Agenda.class | Bin 0 -> 2963 bytes Poker/build/classes/com/roshka/bootcamp004/Conversor.class | Bin 0 -> 2555 bytes Poker/build/classes/com/roshka/bootcamp004/carta.class | Bin 0 -> 1817 bytes Poker/src/com/roshka/bootcamp004/Agenda.java | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Poker/src/com/roshka/bootcamp004/Conversor.java | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Poker/src/com/roshka/bootcamp004/carta.java | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 0 73 files changed, 385 insertions(+) create mode 100644 #README.md# create mode 100644 Poker/.classpath create mode 100644 Poker/.project create mode 100644 Poker/.settings/.jsdtscope create mode 100644 Poker/.settings/org.eclipse.jdt.core.prefs create mode 100644 Poker/.settings/org.eclipse.wst.common.component create mode 100644 Poker/.settings/org.eclipse.wst.common.project.facet.core.xml create mode 100644 Poker/.settings/org.eclipse.wst.jsdt.ui.superType.container create mode 100644 Poker/.settings/org.eclipse.wst.jsdt.ui.superType.name create mode 100644 Poker/WebContent/META-INF/MANIFEST.MF create mode 100644 Poker/WebContent/PNG/10C.png create mode 100644 Poker/WebContent/PNG/10D.png create mode 100644 Poker/WebContent/PNG/10H.png create mode 100644 Poker/WebContent/PNG/10S.png create mode 100644 Poker/WebContent/PNG/2C.png create mode 100644 Poker/WebContent/PNG/2D.png create mode 100644 Poker/WebContent/PNG/2H.png create mode 100644 Poker/WebContent/PNG/2S.png create mode 100644 Poker/WebContent/PNG/3C.png create mode 100644 Poker/WebContent/PNG/3D.png create mode 100644 Poker/WebContent/PNG/3H.png create mode 100644 Poker/WebContent/PNG/3S.png create mode 100644 Poker/WebContent/PNG/4C.png create mode 100644 Poker/WebContent/PNG/4D.png create mode 100644 Poker/WebContent/PNG/4H.png create mode 100644 Poker/WebContent/PNG/4S.png create mode 100644 Poker/WebContent/PNG/5C.png create mode 100644 Poker/WebContent/PNG/5D.png create mode 100644 Poker/WebContent/PNG/5H.png create mode 100644 Poker/WebContent/PNG/5S.png create mode 100644 Poker/WebContent/PNG/6C.png create mode 100644 Poker/WebContent/PNG/6D.png create mode 100644 Poker/WebContent/PNG/6H.png create mode 100644 Poker/WebContent/PNG/6S.png create mode 100644 Poker/WebContent/PNG/7C.png create mode 100644 Poker/WebContent/PNG/7D.png create mode 100644 Poker/WebContent/PNG/7H.png create mode 100644 Poker/WebContent/PNG/7S.png create mode 100644 Poker/WebContent/PNG/8C.png create mode 100644 Poker/WebContent/PNG/8D.png create mode 100644 Poker/WebContent/PNG/8H.png create mode 100644 Poker/WebContent/PNG/8S.png create mode 100644 Poker/WebContent/PNG/9C.png create mode 100644 Poker/WebContent/PNG/9D.png create mode 100644 Poker/WebContent/PNG/9H.png create mode 100644 Poker/WebContent/PNG/9S.png create mode 100644 Poker/WebContent/PNG/AC.png create mode 100644 Poker/WebContent/PNG/AD.png create mode 100644 Poker/WebContent/PNG/AH.png create mode 100644 Poker/WebContent/PNG/AS.png create mode 100644 Poker/WebContent/PNG/JC.png create mode 100644 Poker/WebContent/PNG/JD.png create mode 100644 Poker/WebContent/PNG/JH.png create mode 100644 Poker/WebContent/PNG/JS.png create mode 100644 Poker/WebContent/PNG/KC.png create mode 100644 Poker/WebContent/PNG/KD.png create mode 100644 Poker/WebContent/PNG/KH.png create mode 100644 Poker/WebContent/PNG/KS.png create mode 100644 Poker/WebContent/PNG/QC.png create mode 100644 Poker/WebContent/PNG/QD.png create mode 100644 Poker/WebContent/PNG/QH.png create mode 100644 Poker/WebContent/PNG/QS.png create mode 100644 Poker/WebContent/Pagina/agenda.html create mode 100644 Poker/WebContent/Pagina/cartas.html create mode 100644 Poker/WebContent/Pagina/conversor.html create mode 100644 Poker/WebContent/index.html create mode 100644 Poker/build/classes/com/roshka/bootcamp004/Agenda.class create mode 100644 Poker/build/classes/com/roshka/bootcamp004/Conversor.class create mode 100644 Poker/build/classes/com/roshka/bootcamp004/carta.class create mode 100644 Poker/src/com/roshka/bootcamp004/Agenda.java create mode 100644 Poker/src/com/roshka/bootcamp004/Conversor.java create mode 100644 Poker/src/com/roshka/bootcamp004/carta.java create mode 100644 README.md diff --git a/#README.md# b/#README.md# new file mode 100644 index 0000000..de8d3e1 --- /dev/null +++ b/#README.md# @@ -0,0 +1 @@ +Instrucciones para poder utilizar la agenda es entrando en la carpeta poker(no ingrese en la carpeta agenda porque era de prueba) y al crear un registro utilice la flecha para volver ya que en el momento de crear el archivo cerrar el programa, el primer archivo se elimina. Luego el resto su uso es normal. \ No newline at end of file diff --git a/Poker/.classpath b/Poker/.classpath new file mode 100644 index 0000000..44eaeab --- /dev/null +++ b/Poker/.classpath @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/Poker/.project b/Poker/.project new file mode 100644 index 0000000..95563a9 --- /dev/null +++ b/Poker/.project @@ -0,0 +1,31 @@ + + + Poker + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.wst.validation.validationbuilder + + + + + + org.eclipse.jem.workbench.JavaEMFNature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.wst.common.project.facet.core.nature + org.eclipse.jdt.core.javanature + org.eclipse.wst.jsdt.core.jsNature + + diff --git a/Poker/.settings/.jsdtscope b/Poker/.settings/.jsdtscope new file mode 100644 index 0000000..92e666d --- /dev/null +++ b/Poker/.settings/.jsdtscope @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/Poker/.settings/org.eclipse.jdt.core.prefs b/Poker/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..a698e59 --- /dev/null +++ b/Poker/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,12 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/Poker/.settings/org.eclipse.wst.common.component b/Poker/.settings/org.eclipse.wst.common.component new file mode 100644 index 0000000..9273351 --- /dev/null +++ b/Poker/.settings/org.eclipse.wst.common.component @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/Poker/.settings/org.eclipse.wst.common.project.facet.core.xml b/Poker/.settings/org.eclipse.wst.common.project.facet.core.xml new file mode 100644 index 0000000..453799f --- /dev/null +++ b/Poker/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/Poker/.settings/org.eclipse.wst.jsdt.ui.superType.container b/Poker/.settings/org.eclipse.wst.jsdt.ui.superType.container new file mode 100644 index 0000000..3bd5d0a --- /dev/null +++ b/Poker/.settings/org.eclipse.wst.jsdt.ui.superType.container @@ -0,0 +1 @@ +org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file diff --git a/Poker/.settings/org.eclipse.wst.jsdt.ui.superType.name b/Poker/.settings/org.eclipse.wst.jsdt.ui.superType.name new file mode 100644 index 0000000..05bd71b --- /dev/null +++ b/Poker/.settings/org.eclipse.wst.jsdt.ui.superType.name @@ -0,0 +1 @@ +Window \ No newline at end of file diff --git a/Poker/WebContent/META-INF/MANIFEST.MF b/Poker/WebContent/META-INF/MANIFEST.MF new file mode 100644 index 0000000..5e94951 --- /dev/null +++ b/Poker/WebContent/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Class-Path: + diff --git a/Poker/WebContent/PNG/10C.png b/Poker/WebContent/PNG/10C.png new file mode 100644 index 0000000..f9ade6d Binary files /dev/null and b/Poker/WebContent/PNG/10C.png differ diff --git a/Poker/WebContent/PNG/10D.png b/Poker/WebContent/PNG/10D.png new file mode 100644 index 0000000..a9de67e Binary files /dev/null and b/Poker/WebContent/PNG/10D.png differ diff --git a/Poker/WebContent/PNG/10H.png b/Poker/WebContent/PNG/10H.png new file mode 100644 index 0000000..df551b0 Binary files /dev/null and b/Poker/WebContent/PNG/10H.png differ diff --git a/Poker/WebContent/PNG/10S.png b/Poker/WebContent/PNG/10S.png new file mode 100644 index 0000000..22141df Binary files /dev/null and b/Poker/WebContent/PNG/10S.png differ diff --git a/Poker/WebContent/PNG/2C.png b/Poker/WebContent/PNG/2C.png new file mode 100644 index 0000000..413b0da Binary files /dev/null and b/Poker/WebContent/PNG/2C.png differ diff --git a/Poker/WebContent/PNG/2D.png b/Poker/WebContent/PNG/2D.png new file mode 100644 index 0000000..f966e48 Binary files /dev/null and b/Poker/WebContent/PNG/2D.png differ diff --git a/Poker/WebContent/PNG/2H.png b/Poker/WebContent/PNG/2H.png new file mode 100644 index 0000000..345744e Binary files /dev/null and b/Poker/WebContent/PNG/2H.png differ diff --git a/Poker/WebContent/PNG/2S.png b/Poker/WebContent/PNG/2S.png new file mode 100644 index 0000000..a0de145 Binary files /dev/null and b/Poker/WebContent/PNG/2S.png differ diff --git a/Poker/WebContent/PNG/3C.png b/Poker/WebContent/PNG/3C.png new file mode 100644 index 0000000..f8b8183 Binary files /dev/null and b/Poker/WebContent/PNG/3C.png differ diff --git a/Poker/WebContent/PNG/3D.png b/Poker/WebContent/PNG/3D.png new file mode 100644 index 0000000..cee21f3 Binary files /dev/null and b/Poker/WebContent/PNG/3D.png differ diff --git a/Poker/WebContent/PNG/3H.png b/Poker/WebContent/PNG/3H.png new file mode 100644 index 0000000..8494e1c Binary files /dev/null and b/Poker/WebContent/PNG/3H.png differ diff --git a/Poker/WebContent/PNG/3S.png b/Poker/WebContent/PNG/3S.png new file mode 100644 index 0000000..78e3b20 Binary files /dev/null and b/Poker/WebContent/PNG/3S.png differ diff --git a/Poker/WebContent/PNG/4C.png b/Poker/WebContent/PNG/4C.png new file mode 100644 index 0000000..8938459 Binary files /dev/null and b/Poker/WebContent/PNG/4C.png differ diff --git a/Poker/WebContent/PNG/4D.png b/Poker/WebContent/PNG/4D.png new file mode 100644 index 0000000..d9ae5be Binary files /dev/null and b/Poker/WebContent/PNG/4D.png differ diff --git a/Poker/WebContent/PNG/4H.png b/Poker/WebContent/PNG/4H.png new file mode 100644 index 0000000..41a4488 Binary files /dev/null and b/Poker/WebContent/PNG/4H.png differ diff --git a/Poker/WebContent/PNG/4S.png b/Poker/WebContent/PNG/4S.png new file mode 100644 index 0000000..70bc9cc Binary files /dev/null and b/Poker/WebContent/PNG/4S.png differ diff --git a/Poker/WebContent/PNG/5C.png b/Poker/WebContent/PNG/5C.png new file mode 100644 index 0000000..a7f49be Binary files /dev/null and b/Poker/WebContent/PNG/5C.png differ diff --git a/Poker/WebContent/PNG/5D.png b/Poker/WebContent/PNG/5D.png new file mode 100644 index 0000000..cff0617 Binary files /dev/null and b/Poker/WebContent/PNG/5D.png differ diff --git a/Poker/WebContent/PNG/5H.png b/Poker/WebContent/PNG/5H.png new file mode 100644 index 0000000..1efcbf3 Binary files /dev/null and b/Poker/WebContent/PNG/5H.png differ diff --git a/Poker/WebContent/PNG/5S.png b/Poker/WebContent/PNG/5S.png new file mode 100644 index 0000000..e708806 Binary files /dev/null and b/Poker/WebContent/PNG/5S.png differ diff --git a/Poker/WebContent/PNG/6C.png b/Poker/WebContent/PNG/6C.png new file mode 100644 index 0000000..d8382d3 Binary files /dev/null and b/Poker/WebContent/PNG/6C.png differ diff --git a/Poker/WebContent/PNG/6D.png b/Poker/WebContent/PNG/6D.png new file mode 100644 index 0000000..7ba40e9 Binary files /dev/null and b/Poker/WebContent/PNG/6D.png differ diff --git a/Poker/WebContent/PNG/6H.png b/Poker/WebContent/PNG/6H.png new file mode 100644 index 0000000..93a84f8 Binary files /dev/null and b/Poker/WebContent/PNG/6H.png differ diff --git a/Poker/WebContent/PNG/6S.png b/Poker/WebContent/PNG/6S.png new file mode 100644 index 0000000..874162b Binary files /dev/null and b/Poker/WebContent/PNG/6S.png differ diff --git a/Poker/WebContent/PNG/7C.png b/Poker/WebContent/PNG/7C.png new file mode 100644 index 0000000..f6a9653 Binary files /dev/null and b/Poker/WebContent/PNG/7C.png differ diff --git a/Poker/WebContent/PNG/7D.png b/Poker/WebContent/PNG/7D.png new file mode 100644 index 0000000..6c4393d Binary files /dev/null and b/Poker/WebContent/PNG/7D.png differ diff --git a/Poker/WebContent/PNG/7H.png b/Poker/WebContent/PNG/7H.png new file mode 100644 index 0000000..d4a59ff Binary files /dev/null and b/Poker/WebContent/PNG/7H.png differ diff --git a/Poker/WebContent/PNG/7S.png b/Poker/WebContent/PNG/7S.png new file mode 100644 index 0000000..895f85c Binary files /dev/null and b/Poker/WebContent/PNG/7S.png differ diff --git a/Poker/WebContent/PNG/8C.png b/Poker/WebContent/PNG/8C.png new file mode 100644 index 0000000..bc87bf0 Binary files /dev/null and b/Poker/WebContent/PNG/8C.png differ diff --git a/Poker/WebContent/PNG/8D.png b/Poker/WebContent/PNG/8D.png new file mode 100644 index 0000000..38c5695 Binary files /dev/null and b/Poker/WebContent/PNG/8D.png differ diff --git a/Poker/WebContent/PNG/8H.png b/Poker/WebContent/PNG/8H.png new file mode 100644 index 0000000..c2812aa Binary files /dev/null and b/Poker/WebContent/PNG/8H.png differ diff --git a/Poker/WebContent/PNG/8S.png b/Poker/WebContent/PNG/8S.png new file mode 100644 index 0000000..0277cc6 Binary files /dev/null and b/Poker/WebContent/PNG/8S.png differ diff --git a/Poker/WebContent/PNG/9C.png b/Poker/WebContent/PNG/9C.png new file mode 100644 index 0000000..d81b2f2 Binary files /dev/null and b/Poker/WebContent/PNG/9C.png differ diff --git a/Poker/WebContent/PNG/9D.png b/Poker/WebContent/PNG/9D.png new file mode 100644 index 0000000..e0d3d05 Binary files /dev/null and b/Poker/WebContent/PNG/9D.png differ diff --git a/Poker/WebContent/PNG/9H.png b/Poker/WebContent/PNG/9H.png new file mode 100644 index 0000000..7b679e1 Binary files /dev/null and b/Poker/WebContent/PNG/9H.png differ diff --git a/Poker/WebContent/PNG/9S.png b/Poker/WebContent/PNG/9S.png new file mode 100644 index 0000000..f58493e Binary files /dev/null and b/Poker/WebContent/PNG/9S.png differ diff --git a/Poker/WebContent/PNG/AC.png b/Poker/WebContent/PNG/AC.png new file mode 100644 index 0000000..396c158 Binary files /dev/null and b/Poker/WebContent/PNG/AC.png differ diff --git a/Poker/WebContent/PNG/AD.png b/Poker/WebContent/PNG/AD.png new file mode 100644 index 0000000..d702a39 Binary files /dev/null and b/Poker/WebContent/PNG/AD.png differ diff --git a/Poker/WebContent/PNG/AH.png b/Poker/WebContent/PNG/AH.png new file mode 100644 index 0000000..435fc14 Binary files /dev/null and b/Poker/WebContent/PNG/AH.png differ diff --git a/Poker/WebContent/PNG/AS.png b/Poker/WebContent/PNG/AS.png new file mode 100644 index 0000000..f07f67d Binary files /dev/null and b/Poker/WebContent/PNG/AS.png differ diff --git a/Poker/WebContent/PNG/JC.png b/Poker/WebContent/PNG/JC.png new file mode 100644 index 0000000..16418e4 Binary files /dev/null and b/Poker/WebContent/PNG/JC.png differ diff --git a/Poker/WebContent/PNG/JD.png b/Poker/WebContent/PNG/JD.png new file mode 100644 index 0000000..05b0389 Binary files /dev/null and b/Poker/WebContent/PNG/JD.png differ diff --git a/Poker/WebContent/PNG/JH.png b/Poker/WebContent/PNG/JH.png new file mode 100644 index 0000000..259421c Binary files /dev/null and b/Poker/WebContent/PNG/JH.png differ diff --git a/Poker/WebContent/PNG/JS.png b/Poker/WebContent/PNG/JS.png new file mode 100644 index 0000000..6e0554d Binary files /dev/null and b/Poker/WebContent/PNG/JS.png differ diff --git a/Poker/WebContent/PNG/KC.png b/Poker/WebContent/PNG/KC.png new file mode 100644 index 0000000..70c4ee5 Binary files /dev/null and b/Poker/WebContent/PNG/KC.png differ diff --git a/Poker/WebContent/PNG/KD.png b/Poker/WebContent/PNG/KD.png new file mode 100644 index 0000000..95a3b8f Binary files /dev/null and b/Poker/WebContent/PNG/KD.png differ diff --git a/Poker/WebContent/PNG/KH.png b/Poker/WebContent/PNG/KH.png new file mode 100644 index 0000000..0defcbb Binary files /dev/null and b/Poker/WebContent/PNG/KH.png differ diff --git a/Poker/WebContent/PNG/KS.png b/Poker/WebContent/PNG/KS.png new file mode 100644 index 0000000..43b8e19 Binary files /dev/null and b/Poker/WebContent/PNG/KS.png differ diff --git a/Poker/WebContent/PNG/QC.png b/Poker/WebContent/PNG/QC.png new file mode 100644 index 0000000..6f74177 Binary files /dev/null and b/Poker/WebContent/PNG/QC.png differ diff --git a/Poker/WebContent/PNG/QD.png b/Poker/WebContent/PNG/QD.png new file mode 100644 index 0000000..85c443f Binary files /dev/null and b/Poker/WebContent/PNG/QD.png differ diff --git a/Poker/WebContent/PNG/QH.png b/Poker/WebContent/PNG/QH.png new file mode 100644 index 0000000..ba8e1e4 Binary files /dev/null and b/Poker/WebContent/PNG/QH.png differ diff --git a/Poker/WebContent/PNG/QS.png b/Poker/WebContent/PNG/QS.png new file mode 100644 index 0000000..a6ef69f Binary files /dev/null and b/Poker/WebContent/PNG/QS.png differ diff --git a/Poker/WebContent/Pagina/agenda.html b/Poker/WebContent/Pagina/agenda.html new file mode 100644 index 0000000..af5a9dd --- /dev/null +++ b/Poker/WebContent/Pagina/agenda.html @@ -0,0 +1,17 @@ + + + + +Agenda + + +

Agenda

+
+ Nombre + E-mail + Telefono + Direccion + +
+ + \ No newline at end of file diff --git a/Poker/WebContent/Pagina/cartas.html b/Poker/WebContent/Pagina/cartas.html new file mode 100644 index 0000000..590208e --- /dev/null +++ b/Poker/WebContent/Pagina/cartas.html @@ -0,0 +1,21 @@ + + + + +Cartas + + +

Cartas

+
+ + Numero de Carta + +
+ + + \ No newline at end of file diff --git a/Poker/WebContent/Pagina/conversor.html b/Poker/WebContent/Pagina/conversor.html new file mode 100644 index 0000000..44b041a --- /dev/null +++ b/Poker/WebContent/Pagina/conversor.html @@ -0,0 +1,19 @@ + + + + +Convertidor + + +

Convertidor de Temperatura

+
+ + + +
+ + \ No newline at end of file diff --git a/Poker/WebContent/index.html b/Poker/WebContent/index.html new file mode 100644 index 0000000..83bec99 --- /dev/null +++ b/Poker/WebContent/index.html @@ -0,0 +1,16 @@ + + + + +Menu Principal + + +

Menu Principal

+
+
    +
  1. Convertir Temperatura
  2. +
  3. Agenda
  4. +
  5. Poker Cartas
  6. +
+ + \ No newline at end of file diff --git a/Poker/build/classes/com/roshka/bootcamp004/Agenda.class b/Poker/build/classes/com/roshka/bootcamp004/Agenda.class new file mode 100644 index 0000000..c350aa9 Binary files /dev/null and b/Poker/build/classes/com/roshka/bootcamp004/Agenda.class differ diff --git a/Poker/build/classes/com/roshka/bootcamp004/Conversor.class b/Poker/build/classes/com/roshka/bootcamp004/Conversor.class new file mode 100644 index 0000000..2cfbefe Binary files /dev/null and b/Poker/build/classes/com/roshka/bootcamp004/Conversor.class differ diff --git a/Poker/build/classes/com/roshka/bootcamp004/carta.class b/Poker/build/classes/com/roshka/bootcamp004/carta.class new file mode 100644 index 0000000..2839739 Binary files /dev/null and b/Poker/build/classes/com/roshka/bootcamp004/carta.class differ diff --git a/Poker/src/com/roshka/bootcamp004/Agenda.java b/Poker/src/com/roshka/bootcamp004/Agenda.java new file mode 100644 index 0000000..99681e8 --- /dev/null +++ b/Poker/src/com/roshka/bootcamp004/Agenda.java @@ -0,0 +1,83 @@ +package com.roshka.bootcamp004; + +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileWriter; +import java.io.IOException; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + + +/** + * Servlet implementation class Agenda + */ +@WebServlet("/agenda") +public class Agenda extends HttpServlet { + private static final long serialVersionUID = 1L; + + /** + * @see HttpServlet#HttpServlet() + */ + public Agenda() { + super(); + // TODO Auto-generated constructor stub + } + + /** + * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) + */ + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + // TODO Auto-generated method stub + response.getWriter().append("Served at: ").append(request.getContextPath()); + response.getWriter().println("hola"); + } + + /** + * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) + */ + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + String name = request.getParameter("nombre"); + String correo = request.getParameter("correo_electronico"); + String tel = request.getParameter("telefono"); + String dir = request.getParameter("direccion"); + + int contador = 1; + String ruta; + File archivo; + BufferedWriter bw; + do { + ruta = this.getServletContext().getRealPath("/Pagina/archivo"+contador+".txt"); + archivo = new File(ruta); + contador++; + + } while (archivo.exists()); + System.out.println(archivo.getAbsolutePath()); + archivo.createNewFile(); + bw = new BufferedWriter(new FileWriter(archivo)); + + bw.write(name); + bw.write(correo); + bw.write(tel); + bw.write(dir); + bw.close(); + + response.getWriter().println("\n" + + "\n" + + "" + + "Agenda\n" + + "\n" + + "" + + "Nombre: "+name+"
" + + "Correo: "+correo+"
" + + "Telefono: "+tel+"
" + + "Direccion: "+dir+"
" + + "Archivo Nro: "+contador+"." + + "" + + "" + ); + } + +} diff --git a/Poker/src/com/roshka/bootcamp004/Conversor.java b/Poker/src/com/roshka/bootcamp004/Conversor.java new file mode 100644 index 0000000..51f321f --- /dev/null +++ b/Poker/src/com/roshka/bootcamp004/Conversor.java @@ -0,0 +1,78 @@ +package com.roshka.bootcamp004; + +import java.io.IOException; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +/** + * Servlet implementation class Conversor + */ +@WebServlet("/conversor") +public class Conversor extends HttpServlet { + private static final long serialVersionUID = 1L; + + /** + * @see HttpServlet#HttpServlet() + */ + public Conversor() { + super(); + // TODO Auto-generated constructor stub + } + + /** + * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) + */ + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + // TODO Auto-generated method stub + response.getWriter().append("Served at: ").append(request.getContextPath()); + response.getWriter().println("hola"); + } + + /** + * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) + */ + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + String tipo = request.getParameter("tipo_temperatura"); + String valor = request.getParameter("valor_temperatura"); + + double valor_temperaturaD = Double.parseDouble(valor); + + double kel = 0; + double fah = 0; + double cel = 0; + + if (tipo.equals ("kelvin")) { + kel = valor_temperaturaD; + fah = fah + (valor_temperaturaD - 273.15) * 9/5 + 32; + cel = cel + (valor_temperaturaD - 273.15); + } + if (tipo.equals("fahrenheit")) { + fah = valor_temperaturaD; + kel = kel + ((valor_temperaturaD - 32) * 5/9 + 273.15); + cel = cel + ((valor_temperaturaD - 32) * 5/9); + } + if (tipo.equals("celcius")) { + cel = valor_temperaturaD; + kel = kel + (valor_temperaturaD + 273.15); + fah = fah + ((valor_temperaturaD * 9/5) + 32 ); + } + + response.getWriter().println("\n" + + "\n" + + "" + + "Convertidor\n" + + "\n" + + "" + + "La temperatura es en:
" + + "Kelvin: "+kel+ " grados
" + + "Fahrenheit "+fah+ " grados
" + + "Celcius "+cel+ " grados
" + + "" + + "" + ); + } + +} diff --git a/Poker/src/com/roshka/bootcamp004/carta.java b/Poker/src/com/roshka/bootcamp004/carta.java new file mode 100644 index 0000000..4febbf7 --- /dev/null +++ b/Poker/src/com/roshka/bootcamp004/carta.java @@ -0,0 +1,55 @@ +package com.roshka.bootcamp004; + +import java.io.IOException; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +/** + * Servlet implementation class Poker + */ +@WebServlet("/carta") +public class carta extends HttpServlet { + private static final long serialVersionUID = 1L; + + /** + * @see HttpServlet#HttpServlet() + */ + public carta() { + super(); + // TODO Auto-generated constructor stub + } + + /** + * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) + */ + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + // TODO Auto-generated method stub + response.getWriter().append("Served at: ").append(request.getContextPath()); + + } + + /** + * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) + */ + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + + String palo = request.getParameter("palo"); + String valor = request.getParameter("valor"); + + String ruta = "PNG/"+valor+palo+".png"; + + response.getWriter().println("\n" + + "\n" + + "" + + "Cartas\n" + + "\n" + +"" + + "" + + "" + ); + } + +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/README.md -- libgit2 0.26.0