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 | |
namespace App\Http\Services\User; | |
//Service Base | |
use App\Http\Services\ServiceBase; | |
use Illuminate\Support\Facades\Log; | |
/** | |
* Handles complex login and uses the model repo to connect to the db |
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
Conectar Mysql a Datastudio con MySql remote connection | |
#Modificar la configuración de Mysql para escuchar cualquier IP | |
sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf | |
#Busca: | |
bind-address = 127.0.0.1 | |
#Cambialo por |
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
env_file = process.env.NODE_ENV ? process.env.NODE_ENV: 'local'; | |
const env = require('./enviroments/'+env_file); | |
const axios = require('axios'); | |
var routes; | |
let generatePlaces = async function () { | |
// Rutas a generar |
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
#!/bin/sh | |
projectname=$1; | |
#Para usar ejecutar sh deploy_git.sh [Nombre proyecto] [Scripts a ejecutar luego de deploy] | |
cd /var/www; | |
mkdir $projectname; | |
cd /var; | |
mkdir repo; | |
cd repo; |
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
<template> | |
<span> | |
<slot name="ratio"></slot> | |
<i class="fa fa-star" aria-hidden="true" v-for="(i, index) in completeStarts()" :key="index"></i> | |
<i class="fa fa-star-half-o" aria-hidden="true" v-if="haveHalfStart()"></i> | |
<i class="fa fa-star-o" aria-hidden="true" v-for="(x, index) in incompleteStarts()" :key="index + 5"></i> | |
<slot></slot> | |
</span> | |
</template> |
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> | |
//Paste this in After Body | |
//Search labels | |
const labels = document.querySelectorAll('.time-name'); | |
//Setup labels translated | |
let translation = ['Días', 'Horas','Minutos','Segundos']; | |
labels.forEach(function (label, index) { | |
//Replace each label | |
label.innerHTML = translation[index]; |
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> | |
//Paste this in After Body | |
//Search labels | |
const labels = document.querySelectorAll('.time-name'); | |
//Setup labels translated | |
let translation = ['Días', 'Horas','Minutos','Segundos']; | |
labels.forEach(function (label, index) { | |
//Replace each label | |
label.innerHTML = translation[index]; |
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($_SERVER['HTTP_ORIGIN'])) { | |
// Decide if the origin in $_SERVER['HTTP_ORIGIN'] is one | |
// you want to allow, and if so: | |
header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}"); | |
header('Access-Control-Allow-Credentials: true'); | |
header('Access-Control-Max-Age: 86400'); // cache for 1 day | |
} | |
// Access-Control headers are received during OPTIONS requests | |
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') { |
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
/* | |
Actualizado al 14/02/2019 | |
Consultas a [email protected] | |
*/ | |
/* RECIBE LA RESPUESTA DE CULQI Y LA GUARDA EN UNA VARIABLE GLOBAL */ | |
if(process.browser) { | |
window.culqi = function () { | |
window.__culqi_token = window.Culqi | |
}; |
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
export default class { | |
constructor(options) { | |
this.req_scope = ['email', 'birth_day']; | |
this.scope = ['email']; | |
this.options = options; | |
if (process.browser) { | |
this._initFacebookSDK(); | |
window.fbAsyncInit = function onSDKInit() { | |
FB.init(options); | |
FB.AppEvents.logPageView(); |
NewerOlder