This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE> | |
<html> | |
<head> | |
<title>Test</title> | |
</head> | |
<body> | |
<div id="mensajes"> | |
Hola Mundo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="jquery-1.6.1.min.js"></script> | |
<script src="socket.io/socket.io.js"></script> | |
<script> | |
var socket = new io.Socket(null,{port:8080}); | |
socket.connect(); | |
socket.on('message',function(obj){ | |
switch(obj.tipo){ | |
case 'imagen': | |
img = document.getElementById('stream'); | |
img.src=""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
This file is part of VisionStreaming. | |
VisionStreaming is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
VisionStreaming is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img src="/videoStream" id="video"/> | |
<script src="socket.io/socket.io.js"></script> | |
<script> | |
var socket = new io.Socket(null,{port:8080}); | |
socket.connect(); | |
socket.on('connect',function(){ | |
document.getElementById('mensajes').innerHTML = "conectado"; | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<header> | |
<hgroup> | |
<h1>Page title</h1> | |
<h2>Page subtitle</h2> | |
</hgroup> | |
</header> | |
<nav> | |
<ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "cv.h" | |
#include "highgui.h" | |
#include <stdio.h> | |
// A Simple Camera Capture Framework | |
int main() { | |
CvCapture* capture = cvCaptureFromCAM( CV_CAP_ANY ); | |
if ( !capture ) { | |
fprintf( stderr, "ERROR: capture is NULL \n" ); | |
getchar(); | |
return -1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--HTML para la ventana modal--> | |
<div class="modal"> | |
<div class="inner-modal"> | |
<div class="head"> | |
</div> | |
<div class="content"> | |
</div> | |
<div class="action"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.*; | |
import java.awt.event.*; | |
public class DibujoPrueba extends Frame implements WindowListener,ActionListener,KeyListener { | |
//ELEMENTOS DE NUESTRO FRAME | |
private Label L1,L2,L3,L4,L5=null; | |
private Label V1,V2,V3,V4,V5,V6=null; | |
private TextField T1,T2,T3,T4,T5,T6,T7,T8=null; | |
private Button calculo=null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.Frame; | |
import java.awt.Button; | |
import java.awt.TextField; | |
import java.awt.TextArea; | |
import java.awt.Panel; | |
import java.awt.Label; | |
import java.awt.List; | |
import java.awt.Checkbox; | |
import java.awt.CheckboxGroup; | |
import java.awt.FlowLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
StringBuffer texto = new StringBuffer(); | |
try{ | |
FileReader fr = new FileReader("archivo.txt"); | |
entrada = new BufferedReader(fr); | |
String s; | |
while(s = entrada.readLine(fr)){ | |
text.append(s); | |
} | |
entrada.close(); | |
}catch(java.io.FilenotFoundException e){ |
OlderNewer