Pues eso, me interesa que funcione a nivel mundial, sin necesidad de internet o saldo, si es que existe alguno, gracias
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menúfunction post(path, params, method) {
method = method || "post"; // Set method to post by default if not specified.
// The rest of this code assumes you are not using a library.
// It can be made less wordy if you use one.
var form = document.createElement("form");
form.setAttribute("method", method);
form.setAttribute("action", path);
for(var key in params) {
if(params.hasOwnProperty(key)) {
var hiddenField = document.createElement("input");
hiddenField.setAttribute("type", "hidden");
hiddenField.setAttribute("name", key);
hiddenField.setAttribute("value", params[key]);
form.appendChild(hiddenField);
}
}
document.body.appendChild(form);
form.submit();
}
post('/ajax/sessions', {email:'micorreo:v@gmail.com',
password:'micontra:v',
remember:'true',
phone_code:'',
challenge_phone_code:'',
otp_code:'',
redirect:'',
invite_code:'',
account_invite:'',
invite:'',
csrf_token:'vKBDbBtxgCxKVVp2XSSxXR7lLSLXm4cbFk4wbcSRhjluhh7lla4WcT1pXUILKq8LulqwgIEnoeVGTwUAdsVDag==',
recovery_token:'',
io_blackbox:'0400nyhffR+vPCUNf94lis1ztvbp9oIAPEEopCrr9RouwVsQ0cKHhjdDVsqh7p5fFmEVQ7B9IJqAPsNTM+276GxRfLnYpgrFwByeqHV8lCsVIFbWfvi2lw6riEVfH5Uu1Pa6MVzb/RC5nHohLpyPI8X8K5tpu4sEMnf8VWodMUtjVJNeJrxSgBcxPnsdUywEcm1K+F9+VNHlcz2S1jpcabdGFPXJiqy0MXMQOThNipDmXv9I185O+yC2f3lLEO0Tay66NZEyiLNePemJKSIdwO9O5ZtntuUkG6NTRoYeUPGnwHjFYtoljNkK2JE75agXQtdj5mNV6QxgbcnqT3LYd4+PRQdB6pv1bKzVnopNQQqb/EOYmHjPkDhYg4YU4abOx4QfREn2eKjmH96AqQ+knILEgCO7Idkyj9s/2/Ec1nc2SuHyVZvPYBR/L5MytExFNU2QQkjj/Bf3sgB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Request Headers
view source
Accept:*/*
Accept-Encoding:gzip, deflate, br
Accept-Language:es-419,es;q=0.8
Connection:keep-alive
Content-Length:2017
Content-Type:application/x-www-form-urlencoded; charset=UTF-8
Cookie:
Host:
Origin:
Referer:
SomePage-livemode:true
User-Agent:Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
X-Requested-With:XMLHttpRequest
x-revision:36458ec1b6040d71e0839a491287eee0cee4d531
x-SomePage-csrf-token:l0K0bampWSlM5tBiQEZxcg2nkKdWQf1KMtOosrfq9OBrebopoDmQCwru9PzMYgpvFTBulcNFLHy149yaarBmNQ==
Form Data
email:micrreo:v@gmail.com
password:micontra:v
remember:true
...
...
...
SomePage-livemode:true
X-Requested-With:XMLHttpRequest
x-revision:36458ec1b6040d71e0839a491287eee0cee4d531
x-SomePage-csrf-token:l0K0bampWSlM5tBiQEZxcg2nkKdWQf1KMtOosrfq9OBrebopoDmQCwru9PzMYgpvFTBulcNFLHy149yaarBmNQ==
<?php
$html = file_get_contents('www.google.com.fr');
echo $html;
?>
<?php
$html = file_get_contents('www.google.com.fr');
echo $html;
?>
document.getElementsByName('usuario')[0].value = "Fer";
function fillValuesInTextBoxes()
{
var text = document.getElementById("firsttextbox").value;
document.getElementById("secondtextbox").value = text;
document.getElementById("thirdtextbox").value = text;
document.getElementById("fourthtextbox").value = text;
}
#include <windows.h>
#include <iostream>
using namespace std;
int t[9];
int check( int turno ){
int G = 0;
int r[8][3] = {{0,1,2},{3,4,5},{6,7,8},{0,3,6},
{1,4,7},{2,5,8},{0,4,8},{2,4,6}};
for( int f = 0; f < 8; f++ )
if( (t[ r[f][0] ] + t[ r[f][1] ] + t[ r[f][2] ] ) == (turno*3) )
G = turno;
return G;
}
int minimax( int p ,int tr ){
int minimax_val = 0;
bool empate = false;
t[p] = tr;
if( check( tr ) == tr )
return tr;
else
for( int f = 0; f < 9; f++){
if( t[f] != 0 ) continue;
int next = minimax( f, -tr);
if( next == -tr ){
t[f] = 0;
return -tr;
}
else if( next == 0){
minimax_val = 0;
empate = true;
}
else if( next == tr )
if( !empate )
minimax_val = tr;
t[f] = 0;
}
return minimax_val;
}
void Graficar(){
system("cls");
cout << "\n\n Se juega con:\n 1 2 3\n 4 5 6\n 7 8 9\n La computadora juega con O\n\n";
for(int f = 0; f < 9;f++){
if( t[f] == 1 ) cout <<" O ";
else if( t[f] == -1 ) cout << " X ";
else cout << " - ";
if( (f +1 )%3 == 0 ) cout << "\n";
}
}
int main(){
memset(t,0,sizeof(t));
bool Jugando = true;
int tr = 1; /*Si es 1 empieza la computadora, si es -1 Empieza la persona*/
int c = 0;
int g = 0;
while(Jugando){
Graficar();
if(tr == 1){
int mejor_movimiento = -1;
int anext = -1;
for(int f = 0; f < 9;f++){
if( t[f] != 0) continue;
int next = minimax( f, 1);
if( next > anext ){
anext = next;
mejor_movimiento = f;
}
t[f] = 0;
}
t[mejor_movimiento] = 1;
}
else{
int m = -1;
while( !(m > -1 and m < 10) )
cin >> m;
t[m-1] = -1;
}
g = check(tr);
if( g == 1 or g == -1 )
Jugando = false;
else if( c == 8 ){
g = 0;
Jugando = false;
}
tr = -tr;
c++;
}
Graficar();
switch(g){
case 1: cout << "HA GANADO LA COMPUTADORA!!\n"; break;
case -1: cout << "HAS GANADO FELICIDADES!!\n"; break;
case 0: cout <<"ES EMPATE, BUEN LOGRO!!\n"; break;
}
getchar();
return 0;
}
#include <stdio.h>
char* s = "IVXLCDM";
int n[] = {1,5,10,50,100,500,1000};
int aC; //aC es el número a convertir
#define NUM_LIMITE 4000 //aC tiene que ser menor a esta constante
void rec(int r){ //algoritmo recursivo, el valor de r lo explico con ejemplos:
//si aC = 43 entonces r = 10, si aC = 232 entonces r = 100
//si aC = 2132 entonces r = 1000, si aC = 4 entonces r = 1
int b = aC/r; //Toma el digito más significativo de aC, ejemplo: si aC = 234 entonces b = 2
aC -= b*r; //trunca aC restando el digito más significativo, si aC = 234 entonces aC = 34
int p = 0;
for(int i=0; i < 7;i++)
if(r==n[i]) p = i; /*
p sirve para saber la posición del caracter más indicado para imprimir ejemplos:
cuando r = 1 entonces p = 0 y s[p] = 'I'
cuando r = 10 entonces p = 2 y s[p] = 'X'
cuando r = 100 entonces p = 4 y s[p] = 'C'
cuando r = 1000 entonces p = 6 y s[p] = 'M'
*/
//lo siguiente lo comento para r = 1 pero lo mismo pasa con diferentes valores de r
if(b < 4){ //para I II II
for(int i=0; i < b;i++)
printf("%c",s[p]); //s[p] = 'I' lo imprime b veces
}
else if(b < 6){ //para IV and V
printf("%c%c",(b==4)?s[p]:' ',s[p+1]); // s[p] = 'I' y s[p+1] = 'V'
}
else if(b < 9){ //para VI VII VIII
printf("%c",s[p+1]); //s[p+1] = 'V'
for(int i = b-5; i > 0;i--)
printf("%c",s[p]); //s[p] = 'I' lo imprime b-5 veces
}
else{ //para IX
printf("%c%c",s[p],s[p+2]); //s[p] = 'I' y s[p+2] = 'X'
}
printf(" "); //esta linea es solo para que el resultado sea más legible :)
if(r!=1) rec(r/10); //cuando r = 1 entonces se ha evaluado el digito menos significativo de aC
}
int main(){
printf("Ingresa el numero a convertir: ");
scanf("%i",&aC);
if( aC < NUM_LIMITE )
for(int r = 10; ;r*=10)
if(aC < r){
rec(r/10);
break;
}
getchar();
return 0;
}
.model small
.486
.stack 64
.data
CR equ 13
LF equ 10
cadena db 'Hola Mundo 32 bits!$',CR,LF
.code
inicio:
mov eax,@data
mov ds,eax
mov eax,0900h
lea edx,cadena
int 21h
mov eax,4c00h
int 21h
end inicio
import java.util.Scanner;
public class Estudiando{
public static String Busca_Dia(int dia){
String El_Dia=null;
switch(dia){
case 0: El_Dia="Domingo"; break;
case 1: El_Dia="Lunes"; break;
case 2: El_Dia="Martes"; break;
case 3: El_Dia="Miercoles"; break;
case 4: El_Dia="Jueves"; break;
case 5: El_Dia="Viernes"; break;
case 6: El_Dia="Sabado"; break;
}
return El_Dia;
}
public static void imprime(String palabra){
System.out.println(palabra);
}
public static void main(String[]args){
Scanner leer = new Scanner(System.in);
int año,dia,mes;
int comprobar_año;
imprime("Ingresa año");
año = leer.nextInt();
do{
imprime("ingresa mes: del 1 al 12");
mes = leer.nextInt();
}while(mes>12 || mes==0);
do{
imprime("ingresa dia");
dia = leer.nextInt();
}while(dia>31 || dia==0);
do{
imprime("El año es bisiesto? Si->1, No->2");
comprobar_año = leer.nextInt();
}while(comprobar_año>2 || comprobar_año==0);
int Modulo_mes = modulo_mes(mes,comprobar_año);
//Formula para saber el dia
int A = (año-1) % 7;
int D = dia % 7;
int DM = (((año-1)/4) - (3*((año-1)/100+1)/4)) % 7;
int resultado = (A + D + Modulo_mes + DM) % 7;
String busca_dia = Busca_Dia(resultado);
System.out.println("El dia Es: " + busca_dia);
imprime("Comunidad Underground Hispana El-Hacker.com");
}
public static int modulo_mes(int mes,int bisiesto){
int modulo=0;
switch(mes){
case 1: modulo = 0; break;
case 2: modulo = 3; break;
case 3: if(bisiesto==1)
modulo = 4;
else
modulo = 3; break;
case 4: if(bisiesto==1)
modulo = 0;
else
modulo = 6; break;
case 5: if(bisiesto==1)
modulo = 2;
else
modulo = 1; break;
case 6: if(bisiesto==1)
modulo = 5;
else
modulo = 4; break;
case 7: if(bisiesto==1)
modulo = 0;
else
modulo = 6; break;
case 8: if(bisiesto==1)
modulo = 3;
else
modulo = 2; break;
case 9: if(bisiesto==1)
modulo = 6;
else
modulo = 5; break;
case 10: if(bisiesto==1)
modulo = 0;
else
modulo = 1; break;
case 11: if(bisiesto==1)
modulo = 4;
else
modulo = 3; break;
case 12: if(bisiesto==1)
modulo = 6;
else
modulo = 5; break;
}
return modulo;
}
}