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
const baseURL = 'http://127.0.0.1:5000/' | |
const fetchTrackMeta = () => fetch(baseURL). | |
then((response) => response.json()) | |
const MAX_RETRIES = 3 | |
const limitRetries = (context) => { | |
return context.metaRetries <= MAX_RETRIES | |
} |
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
const fetchTrackMeta = (trackId) => | |
fetch(`url/to/track/${trackId}`).then((response) => response.json()); | |
const ambisonicsMachine = Machine({ | |
id: 'ambisonicsPlayer', | |
initial: 'idle', | |
context: { | |
trackMeta: null, | |
track: null, | |
metaRetries: 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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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/bash | |
# setup-repo.sh | Script that clones a repository and sets up some directories. | |
# It also sets ownership of WORKROOT and subdirectories to $USER:www-data, | |
# creates a handy symlink to WORKROOT and sets GIT_DIR and GIT_WORK_TREE | |
REPOSITORY="https://github.com/gabrielwolf/zuk.git" | |
BRANCH="master" | |
WORKROOT="/var/www/html" | |
PROJECT_DIR="zuk-tagen-und-wohnen.de" | |
PROJECT_GIT_WORK_TREE="${WORKROOT}/${PROJECT_DIR}" |
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
wordpress_sites: | |
dock2dekoration.de: | |
site_hosts: | |
- canonical: dock2dekoration.local | |
local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root) | |
admin_email: develop@wirbelprint.de | |
multisite: | |
enabled: false | |
ssl: | |
enabled: 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
// Sticky footer | |
// Window load event used just in case window height is dependant upon images | |
$(window).bind("load", function() { | |
var footerHeight = 0, | |
footerTop = 0, | |
$footer = $(".content-info"); | |
function positionFooter() { |
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
{ | |
"all": | |
{ | |
"end_with_newline": true | |
}, | |
} |
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 while (have_posts()) : the_post(); ?> | |
<article <?php post_class(); ?>> | |
<div class="page-header"> | |
<h1 class="entry-title"><?php the_title(); ?></h1> | |
</div> | |
<div class="content-container"> | |
<?php the_content(); ?> | |
</div> | |
<footer> | |
<?php wp_link_pages(array('before' => '<nav class="page-nav"><p>' . __('Pages:', 'roots'), 'after' => '</p></nav>')); ?> |
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
function my_facetwp_indexer_query_args( $args ) { | |
$args['post_type'] = 'product'; | |
return $args; | |
} | |
add_filter( 'facetwp_indexer_query_args', 'my_facetwp_indexer_query_args' ); |