This file contains hidden or 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
| print "Hola Mundo" | |
| #Numeros hexadecimales anteponiendo 0x | |
| hexa = 0xA | |
| print hexa | |
| #Numeros octales anteponiendo un 0 | |
| octal = 010 | |
| print octal |
This file contains hidden or 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
| var http = require('http'), | |
| util = require('util'), | |
| formidable = require('formidable'), | |
| server; | |
| server = http.createServer(function(req, res) { | |
| if (req.url == '/') { | |
| res.writeHead(200, {'content-type': 'text/html'}); | |
| res.end( | |
| "<div align='center'>"+ |
This file contains hidden or 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
| ES UN ANALIZADOR QUE RECONOCE CADENAS COMO: | |
| *palabras reservadas(puedes agregar las que quieras). | |
| *enteros(c/s signo) | |
| *reales (c/s signo); | |
| *exponenciales | |
| *hexadecimales para procesador intel (digito{<letraHexa o digito>}h) | |
| *operadores: logicos, relacionales, aritmeticos. | |
| PRUEVALO Y DIME QUE TAL TE PARECE. SE ADMITEN RECOMENDACIONES. |
This file contains hidden or 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<stdio.h> | |
| #include<conio.h> | |
| void main() | |
| { | |
| clrscr(); | |
| long int cant; | |
| long int mill,cmil,dmil,mil,cen,dec,uni; | |
| printf("\n\n\n\t\tIntroduce la cantidad : "); | |
| scanf("%ld",&cant); |
This file contains hidden or 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 <stdio.h> | |
| #include <conio.h> | |
| int main(void){ | |
| int i,j; | |
| int x[]={6,91,79,102,109,124,7,127,103,63}; | |
| int y[]={119,124,57,94,121,113,125,118,6,14,56,63,115,109,62,110}; | |
| clrscr(); | |
| printf("Imprimiendo numeros\n"); | |
| for (j=0;j<=9;j++){ |
This file contains hidden or 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 <stdio.h> | |
| #include <conio.h> | |
| int main(void){ | |
| int i,j,k,cont; | |
| char c; | |
| int x[]={6,91,79,102,109,124,7,127,103,63}; | |
| int y[]={119,124,57,94,121,113,125,118,6,14,56,63,115,109,62,110}; | |
| char user[]={'a','b','c','d','e','f','g','h','i','j','l','o','p','s','u','y'}; | |
| char aux[5]; | |
| char cam[5]; |
This file contains hidden or 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 <stdio.h> | |
| #include <conio.h> | |
| int i,j,k; | |
| int y[]={0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x01}; | |
| int z[]={0x01,0x80,0x02,0x40,0x04,0x20,0x08,0x10,0x10,0x08,0x20,0x04,0x40,0x02,0x80,0x01}; | |
| void simul(); | |
| void normal(); |
This file contains hidden or 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<stdio.h> | |
| #include<conio.h> | |
| void main() | |
| { | |
| clrscr(); | |
| int i=0,lc=0,ban=0,d=0; | |
| char cad[50]; | |
| printf("Introduce el texto: ");gets(cad); | |
| while(cad[lc]) | |
| { |
This file contains hidden or 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 random | |
| import math | |
| def merge(left,right): | |
| result = [] | |
| while left and right: | |
| if left[0] < right[0]: | |
| result.append(left.pop(0)) | |
| else: | |
| result.append(right.pop(0)) |
This file contains hidden or 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
| RewriteEngine on | |
| RewriteCond $1 !^(index\.php|images|php|script|styles|js|css) | |
| RewriteRule ^(.*)$ /index.php/$1 [L] |