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
const firebase = require( "firebase"); | |
firebase.initializeApp({ | |
//Credenciales | |
}) | |
//Ejemplo para registrar el usuario | |
firebase.auth().createUserWithEmailAndPassword("mail@mail.com", "passwords") | |
.then((userCredential) => { | |
// Signed in |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <GL/glew.h> | |
#include <SDL2/SDL.h> | |
#include "nanovg.h" | |
#define NANOVG_GL3_IMPLEMENTATION | |
#include "nanovg_gl.h" |
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
.loader { | |
width: 1em; | |
height: 1em; | |
border-radius: 50%; | |
background: transparent; | |
border-top: 0.2em solid #eeeeee; | |
border-right: 0.2em solid #eeeeee; | |
border-bottom: 0.2em solid #039BE5; | |
border-left: 0.2em solid #039BE5; |
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
/*jslint continue:true*/ | |
/** | |
* Adapted from {@link http://www.bulgaria-web-developers.com/projects/javascript/serialize/} | |
* Changes: | |
* Ensures proper URL encoding of name as well as value | |
* Preserves element order | |
* XHTML and JSLint-friendly | |
* Disallows disabled form elements and reset buttons as per HTML4 [successful controls]{@link http://www.w3.org/TR/html401/interact/forms.html#h-17.13.2} | |
* (as used in jQuery). Note: This does not serialize <object> | |
* elements (even those without a declare attribute) or |
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 | |
if(isset($_SESSION['authentication'])){?> | |
<script type="text/javascript"> | |
<!-- | |
window.location = "main.php" | |
//--> | |
</script> | |
You're already logged in, redirecting you. | |
<?php }else{ | |
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> | |
function passwordChanged() { | |
var strength = document.getElementById('strength'); | |
var strongRegex = new RegExp("^(?=.{8,})(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*\W).*$", "g"); | |
var mediumRegex = new RegExp("^(?=.{7,})(((?=.*[A-Z])(?=.*[a-z]))|((?=.*[A-Z])(?=.*[0-9]))|((?=.*[a-z])(?=.*[0-9]))).*$", "g"); | |
var enoughRegex = new RegExp("(?=.{6,}).*", "g"); | |
var pwd = document.getElementById("password"); | |
if (pwd.value.length==0) { | |
strength.innerHTML = 'Type Password'; | |