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
| const pedestrianStates = { | |
| initial: 'walk', | |
| states: { | |
| walk: { | |
| after: { | |
| 1000: { | |
| target: 'wait', | |
| cond: 'pedestrians' | |
| } | |
| }, |
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
| const apiBase = '/api'; | |
| const endpoint = '/presentations'; | |
| const getPresentations = () => | |
| fetch(`${apiBase}${endpoint}`) | |
| .then(response => response.json()); | |
| const searchPresentations = (query) => | |
| fetch(`${apiBase}${endpoint}/?search=${query}`) | |
| .then((response) => response.json()); |
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
| const slidesMachine = Machine({ | |
| id: 'slides', | |
| initial: 'dashboard', | |
| states: { | |
| dashboard: { | |
| on: { | |
| CREATE: 'create', | |
| EDITING: 'editing' | |
| } | |
| }, |
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
| const lightMachine = Machine({ | |
| id: 'light', | |
| initial: 'green', | |
| states: { | |
| green: { | |
| after: { | |
| 1500: 'yellow' | |
| }, | |
| on: { | |
| CHANGE: 'yellow' |
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
| const videoMachine = Machine({ | |
| id: 'video', | |
| initial: 'loading', | |
| context: { | |
| video: null, | |
| duration: 0, | |
| elapsed: 0 | |
| }, | |
| states: { | |
| loading: { |
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
| post_id | post_date | post_author | post_status | post_type | tax_field | post_title | post_content | ministries_prayers | missionaries_prayers | |
|---|---|---|---|---|---|---|---|---|---|---|
| Chris | publish | prayers | Bolivia | Bolivia | Testing connections to between Ministries and Prayers post types, and Missionaries and Prayers post types. | slug-1;slug-two | slug-one;slug-2 |
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 | |
| /* | |
| ------------------------------------------------------- | |
| Plugin Name: RSCSV/Posts 2 Posts | |
| Description: Connect imported posts using Posts 2 Posts connections | |
| Author: Chris Weissenberger, Aleksandr Beliaev | |
| Version: 1.3 | |
| */ | |
| add_filter('really_simple_csv_importer_post_saved', function($post) { | |
| if (is_object($post)) { |