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> | |
<div class="card"> | |
<form action="#" class="form-monkey form-buy-membreship" id="culqi-card-form"> | |
<div class="row"> | |
<div class="block-form"> | |
<div class="col-sm-6"> | |
<div class="form-group"> | |
<label for="card[email]">Email</label> | |
<input type="text" class="form-control" placeholder="Correo electrónico" | |
v-model="user.email" |
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
//use Fontawesome | |
@for ($x = 1; $x <= $name->ratingAverage; $x++) | |
<i class="fa fa-star"></i> | |
@endfor | |
@if (strpos($name->ratingAverage, '.')) | |
<i class="fa fa-star-half-o"></i> | |
@php | |
$x++; | |
@endphp | |
@endif |
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
$urlCurrent = $_SERVER["REQUEST_SCHEME"] . '://' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]; | |
function acortar_url($url) | |
{ | |
$usuario = "o_89kncra68"; | |
$apikey = "R_4f27f66b97292542888d9530443f2cd4"; | |
$temp = "http://api.bit.ly/v3/shorten?login=" . $usuario . "&apiKey=" . $apikey . "&uri=" . $url . "&format=txt"; | |
return file_get_contents($temp); | |
} |
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
-- -------------------------------------------------------- | |
-- Host: 127.0.0.1 | |
-- Versión del servidor: 5.7.17-0ubuntu0.16.04.2 - (Ubuntu) | |
-- SO del servidor: Linux | |
-- HeidiSQL Versión: 9.4.0.5125 | |
-- -------------------------------------------------------- | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET NAMES utf8 */; | |
/*!50503 SET NAMES utf8mb4 */; |
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
# Code example to generate sitemap with https://github.com/dwightwatson/sitemap | |
<?php | |
namespace App\Http\Controllers\Admin; | |
use App\Services\DebateService; | |
use App\Http\Controllers\Controller; | |
use App\Services\GroupService; | |
use App\Services\InvitationService; |
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(); |
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
<?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
<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]; |
OlderNewer