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
#!/bin/bash | |
#cambias a root | |
sudo -s | |
#instalamos los paquetes necesarios | |
apt-get install libpam-usb pamusb-tools | |
#Despues de haber monta la usb, creamos la regla de sistema | |
pamusb-conf —add-device kingston #kingston es el nombre de usb |
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
#!/bin/bash | |
# Script cumpleaños de para un gran amigo | |
clear | |
echo "Por fabor usar en una tty para tener mayor Resolucion" | |
echo "Sistema automatico" | |
echo " :D " | |
sleep 5 | |
echo "Esperando los mejores deseo" | |
sleep 1.5 | |
echo "en esta fecha tan especial" |
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<iostream> | |
#include<stack> | |
using namespace std; | |
stack <char> pila; | |
int mover(int estado , char simbolo) | |
{ | |
if( estado == 1 && simbolo == '(' ) | |
{ |
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 <iostream> | |
#include <string.h> | |
using namespace std; | |
bool simular_af(char *c) | |
{ | |
int pos = 0; //posicion del caracter a evaluar en la cadena | |
int state = 0; //estado del automata | |
int longitud = strlen(c); | |
while( (state == 0 || state == 1 ) && pos < longitud) |
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
create tablespace parcialdb2 | |
logging | |
datafile 'h:/data/parcialdb_2.dbf' | |
size 64m | |
autoextend off | |
create user parcialdb2 identified by | |
donbosco | |
default tablespace parcialdb2 |
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<iostream> | |
#include<stdio.h> | |
#include<ctype.h> | |
#include<stdlib.h> | |
#include<string> | |
#define TAM_BUFFER 100 | |
using namespace std; | |
class Lexico | |
{ | |
char *nombreFichero;//Nombre del fichero fuente |
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<iostream> | |
#include<stdio.h> | |
#include<ctype.h> | |
#include<stdlib.h> | |
#include<string> | |
#define TAM_BUFFER 100 | |
using namespace std; | |
class Lexico | |
{ | |
char *nombreFichero;//Nombre del fichero fuente |
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
int mapa_botones[9] = { 5, 6, 7, 8, 9, 10, 11, 12, 13 }; | |
int BotonesAnt[9] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 }; | |
int BotonesAct[9] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 }; | |
void setup() { | |
int i; | |
for (i=0; i<9; i++) { | |
digitalWrite(mapa_botones[i], HIGH); | |
pinMode(mapa_botones[i], INPUT); |
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 os | |
import serial | |
def EnumeraPuertos(): | |
o= os.popen("ls /dev/tty*") | |
p = o.read() | |
q=p.split('\n') | |
Lista=[] | |
cuenta=0 | |
ser = serial.Serial() |
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
int Led[9] = { | |
0,1,2,3,4,5,6,7,8}; | |
void setup() { | |
for(byte i = 0; i<9;i++){ | |
pinMode(Led[i], OUTPUT); | |
digitalWrite(Led[i], LOW); | |
} | |
pinMode(A0, INPUT); |
OlderNewer