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
// Debug Rewrite Rules in Wordpress | |
function debug_rewrite_rules() { | |
global $wp, $template, $wp_rewrite; | |
echo '<pre>'; | |
echo 'Request: '; | |
echo empty($wp->request) ? "None" : esc_html($wp->request) . PHP_EOL; | |
echo 'Matched Rewrite Rule: '; | |
echo empty($wp->matched_rule) ? None : esc_html($wp->matched_rule) . PHP_EOL; | |
echo 'Matched Rewrite Query: '; |
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 "variables"; | |
@import "mixins"; | |
*, *:after, *:before { | |
margin: 0; | |
padding: 0; | |
@include border-box; | |
} | |
img { |
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
/// | |
/// Generates `opacity` output for a given element and adds a filter for old IE. | |
/// | |
/// @author bartveneman | |
/// | |
/// @link http://caniuse.com/css-opacity caniuse | |
/// @link http://www.w3.org/TR/css3-color/#transparency spec | |
/// | |
/// @param {Number} $value [0] | |
/// |
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
/* Disable WP-Cron */ | |
define('DISABLE_WP_CRON', true); | |
/* WP auto save posts timer */ | |
define('AUTOSAVE_INTERVAL', 300); // seconds | |
/* Reduce post revision to clean db */ | |
define( 'WP_POST_REVISIONS', 5 ); | |
define( 'EMPTY_TRASH_DAYS', 7 ); |
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
$('.slider').each(function(){ | |
var slickInduvidual = $(this); | |
slickInduvidual.slick({ | |
nextArrow: slickInduvidual.next().find('.right'), | |
prevArrow: slickInduvidual.next().find('.left'), | |
arrows: true, | |
dots: false | |
}); | |
}) |
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
//https://wordpress.stackexchange.com/questions/57070/change-the-page-slug-in-pagination | |
function re_rewrite_rules() { | |
global $wp_rewrite; | |
$wp_rewrite->author_base = 'autor'; | |
$wp_rewrite->search_base = 'buscar'; | |
$wp_rewrite->comments_base = 'comentarios'; | |
$wp_rewrite->pagination_base = 'pagina'; | |
$wp_rewrite->flush_rules(); | |
} | |
add_action('init', 're_rewrite_rules'); |
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
#image: keymetrics/pm2:latest-alpine | |
image: node:alpine | |
variables: | |
SCRIPTS_REPO: https://gitlab.com/cavalo-trucado/api | |
KEYPAIR: "/home/johan/.ssh/id_rsa.pub" | |
stages: | |
- build | |
- deploy |
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
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
* | |
* @format | |
* @flow | |
*/ | |
import React, { Component } from 'react'; | |
import { Platform, StyleSheet, Text, View } from 'react-native'; |
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
* Error running Gradle: | |
ProcessException: Process "complete_flutter_ecommerce-master\android\gradlew.bat" exited abnormally: | |
FAILURE: Build failed with an exception. | |
* Where: | |
Build file 'complete_flutter_ecommerce-master\android\app\build.gradle' line: 24 | |
* What went wrong: | |
A problem occurred evaluating project ':app'. |
OlderNewer