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
# GameAgain v1.2 | |
# En esta version vamos a incluir la aparicion de monedas del juego las cuales igual que los enemigos van a aparecer aleatoriamente pero estas le daran puntos al jugador | |
# | |
import pygame | |
import sys | |
import random | |
import os | |
pygame.init() | |
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 pygame | |
import sys | |
import random | |
pygame.init() | |
width, height = 540,960 | |
myfont = pygame.font.SysFont("monospace", 15) | |
screen = pygame.display.set_mode((width, height)) |
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
<?php | |
/** | |
* Algoritmo para hacer respaldo de base de datos MySQL | |
* Evilnapsis | |
* http://evilnapsis.com/ | |
*/ | |
// Datos de Acceso a la base de datos | |
$dbhost = 'localhost'; // Host de la base de datos |
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
<?php | |
$c = 10000; // Capital inicial | |
$n = 6; // Numero de CUOTAS | |
$i =(5)/ 100; // Tasa de Interes | |
$a = $c*(($i)/ ( 1 - pow((1+$i) , ($n)*-1) )); // Calcular Amortizacion | |
$a = number_format($a,2,".",""); // Formatear numero a 2 decimales | |
$saldo_inicial = $c; | |
$saldo_inicial = number_format((float)$saldo_inicial,2,".",""); // Formatear numero a 2 decimales |
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> | |
<html> | |
<head> | |
<title>Notifications</title> | |
</head> | |
<body> | |
<h1>Notifications</h1> | |
<br> |
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
<?php | |
/// Powered by Evilnapsis go to http://evilnapsis.com | |
include "fpdf/fpdf.php"; | |
$pdf = new FPDF($orientation='P',$unit='mm'); | |
$pdf->AddPage(); | |
$pdf->SetFont('Arial','B',20); | |
$textypos = 5; | |
$pdf->setY(12); | |
$pdf->setX(10); |
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
<?php | |
/// Powered by Evilnapsis go to http://evilnapsis.com | |
include "fpdf/fpdf.php"; | |
$pdf = new FPDF($orientation='P',$unit='mm'); | |
$pdf->AddPage(); | |
$pdf->SetFont('Arial','B',20); | |
$textypos = 5; | |
$pdf->setY(12); | |
$pdf->setX(10); |
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> | |
<html> | |
<head> | |
<title></title> | |
<script src='https://api.mapbox.com/mapbox-gl-js/v1.4.1/mapbox-gl.js'></script> | |
<link href='https://api.mapbox.com/mapbox-gl-js/v1.4.1/mapbox-gl.css' rel='stylesheet' /> | |
</head> | |
<body> | |
<h1 style="font-size: 80px;"> Crear mapa con MapBox</h1> | |
<div id='map' style='width: 960px; height: 540px;'></div> |
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
<?php | |
$user="root"; | |
$password = ""; | |
$con = new PDO("mysql:host=localhost;dbname=contacts",$user, $password); | |
$query = $con->query("select * from person;"); | |
$result = $query->fetchAll(PDO::FETCH_OBJ); | |
echo "<h1>Todos los contactos</h1>"; | |
echo "<a href=\"insertar.php\">Insertar</a><br><br>"; |
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
$("#selectedall").click(function(e){ // Funcion para seleccionar todos | |
e.preventDefault(); | |
var elements = document.getElementsByClassName("myitem"); // Obtenemos los elementos checkbox | |
for(var i=0;i<elements.length;i++){ // Recorremos los elementos | |
elements[i].checked = true; // Hacemos TRUE los elementos, para que se activen los checkboxes | |
} | |
}); // Termina la funcion para seleccionar todos | |
NewerOlder