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 | |
return [ | |
'cache' => [ | |
'frontend' => [ | |
'default' => [ | |
'backend' => 'Cm_Cache_Backend_Redis', | |
'backend_options' => [ | |
'server' => 'redis', | |
'port' => 6379, | |
'database' => 1 |
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
- var site_name = "Nombre del sitio." | |
- var titulo = "Titulo del sitio." | |
- var theme_color = "#color" | |
- var descripcion = "Descripcion de hasta 155 caracteres." | |
//- Facebook Vars | |
- var url_site = "http://www.example.com" | |
//- Twitter Vars | |
- var username = "@username" |
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 | |
/** | |
* En base al usuario, y la contraseña que el usuario envía, buscar el nombre de usuario en la base de datos, | |
* devolver el hash almacenado y guardarlo en una variable. Con el hash almacenado, usar crypt() para generar hash. | |
* Si ambos hash (con hash_equals) son iguales, devuelve true, si no, false. | |
* @param string: $initialPassword | Password provided by user | |
* @param string: $username | Username provided by user | |
* @return string | |
*/ | |
private function comparePassword($initialPassword, $username) { |
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
input#poster.poster_uploader(type="file" data-default-file="" data-height="260" data-min-width="174" data-max-width="176" data-min-height="259" data-max-height="261" data-allowed-file-extensions="jpg" ) |
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 | |
include 'tmdb-api.php'; // Require: https://github.com/Alvaroctal/TMDB-PHP-API | |
$tmdb = new TMDB(); | |
$tmdb->setAPIKey('API KEY HERE'); | |
$tmdb->setLang($lang); | |
/** | |
* Obtener toda la información de un show en específico | |
* @param $terms (String a consultar) | |
* @return {JSON Object} |
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 | |
define('HOSTNAME', 'localhost'); | |
define('USERNAME', 'root'); | |
define('PASSWORD', ''); | |
define('DATABASE', 'mi_basededatos'); | |
$enlace = new mysqli(HOSTNAME, USERNAME, PASSWORD, DATABASE); | |
$enlace->set_charset('utf8'); | |
if (!$enlace) { |
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
@Override | |
protected void onActivityResult(int requestCode, int resultCode, Intent data) { | |
super.onActivityResult(requestCode, resultCode, data); | |
callbackManager.onActivityResult(requestCode, resultCode, data); | |
GraphRequest request = GraphRequest.newMeRequest( | |
accessToken, | |
new GraphRequest.GraphJSONObjectCallback() { | |
@Override | |
public void onCompleted( |
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 | |
define('HOSTNAME', 'hostname_here'); | |
define('USERNAME', 'username_here'); | |
define('PASSWORD', 'password_here'); | |
define('DATABASE', 'name_here'); | |
$enlace = new mysqli(HOSTNAME, USERNAME, PASSWORD, DATABASE); | |
$enlace->set_charset('utf8'); | |
$ejecutar = "SELECT * FROM tabla"; |
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
//// Class Colors | |
// Source: https://flatuicolors.com/ | |
$turquoise : #1abc9c; | |
$emerald : #2ecc71; | |
$peterriver : #3699db; | |
$amethyst : #9b59b6; | |
$wetasphalt : #34495e; | |
$greensea : #16a085; | |
$nephritis : #27ae60; | |
$belizehole : #2e8dcc; |
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
var header = $('#index'); | |
$(function(){ header.data('size','grande'); }); | |
$(window).scroll(function(){ | |
if ($(document).scrollTop() > 150) { | |
if (header.data('size') == 'grande') { | |
header.data('size','chico'); | |
header.stop().addClass('header-top').animate({ padding:'5px 0px 5px 0px' }, 600); | |
} | |
} else { | |
if (header.data('size') == 'chico') { |
NewerOlder