This file contains hidden or 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
| {% render product-specs %} |
This file contains hidden or 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
| { | |
| "version": "0.9.7.2", | |
| "cluster.messagebus.debug": false, | |
| "cluster.messagebus.enabled": false, | |
| "cluster.messagebus.sns.region": "", | |
| "cluster.messagebus.sns.api_key": "", | |
| "cluster.messagebus.sns.api_secret": "", | |
| "cluster.messagebus.sns.topic_arn": "", | |
| "dbcache.configuration_overloaded": false, | |
| "dbcache.debug": "0", |
This file contains hidden or 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
| {"version":1,"resource":"file:///Users/bherrero/Projects/AnnaRocias/src/pages/shows.njk","entries":[{"id":"S7XW.njk","timestamp":1653136431077},{"id":"rug4.njk","timestamp":1653137618952},{"id":"UK6m.njk","source":"moved.source","timestamp":1653138912418},{"id":"7k4l.njk","source":"moved.source","timestamp":1653175890600},{"id":"1KaV.njk","source":"moved.source","timestamp":1653181072481},{"id":"kz7G.njk","timestamp":1653181871469},{"id":"axsO.njk","timestamp":1653187848675},{"id":"0fpm.njk","timestamp":1653187901229},{"id":"prV4.njk","timestamp":1658537449427}]} |
This file contains hidden or 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> | |
| <require from="style.css"></require> | |
| <require from="list-group"></require> | |
| <require from="pokemon.html"></require> | |
| <section> | |
| <h1>${message}</h1> | |
| <hr/> | |
| <h3>custom template</h3> |
This file contains hidden or 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
| // If nginx | |
| //etc/nginx/conf.d/ssl.conf | |
| location /blog/ { | |
| proxy_pass http://backend:8081/; | |
| proxy_set_header X-Forwarded-Host $host; | |
| proxy_set_header X-Forwarded-Proto $scheme; | |
| } |
This file contains hidden or 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 | |
| $args = array( | |
| // Normal query goes here // | |
| 'no_found_rows' => true, // counts posts, remove if pagination required | |
| 'update_post_term_cache' => false, // grabs terms, remove if terms required (category, tag...) | |
| 'update_post_meta_cache' => false, // grabs post meta, remove if post meta required | |
| ); |
This file contains hidden or 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
| // pre_get_posts to get all the posts por the CPT Archive | |
| add_action( 'pre_get_posts', 'pre_get_posts_archive_custom_cpt' ); | |
| function pre_get_posts_archive_custom_cpt( $query ) { | |
| if( is_admin() ) { | |
| return; | |
| } | |
| if ( $query->is_post_type_archive( 'custom_cpt_name' ) && $query->is_main_query() ) { | |
| $query->set( 'posts_per_page', -1 ); |
This file contains hidden or 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 | |
| /** | |
| * Redirect users to custom URL based on their role after login | |
| * | |
| * @param string $redirect | |
| * @param object $user | |
| * @return string | |
| */ | |
| function wc_custom_user_redirect( $redirect, $user ) { | |
| // Get the first of all the roles assigned to the user |
This file contains hidden or 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
| // maps it's an array of objects | |
| // groupBy to extract section headers | |
| let dataSource = _.groupBy(maps, o => o.name); | |
| // reduce to generate new array | |
| dataSource = _.reduce(dataSource, (acc, next, index) => { | |
| acc.push({ | |
| key: index, | |
| data: next | |
| }); | |
| return acc; |
This file contains hidden or 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
| <snippet> | |
| <content><![CDATA[ | |
| import React from 'react'; | |
| class $1 extends React.Component { | |
| render() { | |
| return ( | |
| $2 | |
| ); | |
| } |
NewerOlder