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> | |
| <audio | |
| ref="audio" | |
| src="/audio/magical.mp3" | |
| preload="auto" | |
| loop | |
| @canplaythrough="audioLoaded" | |
| > | |
| <p>If you are reading this, it is because your browser does not support the audio element.</p> | |
| </audio> |
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: '2.1' | |
| volumes: | |
| files: | |
| driver: local | |
| driver_opts: | |
| type: 'none' | |
| o: 'bind' | |
| device: '/Users/duocnguyen/Tmp/owncloud-docker-server/files' | |
| mysql: |
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
| // interviewer: what will the following code output? | |
| const arr = [10, 12, 15, 21]; | |
| for (var i = 0; i < arr.length; i++) { | |
| setTimeout(function() { | |
| console.log('Index: ' + i + ', element: ' + arr[i]); | |
| }, 3000); | |
| } |
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
| self.addEventListener('install', (e) => { | |
| e.waitUntil( | |
| caches.open("precache").then((cache) => cache.add("/broken.png")) | |
| ); | |
| }); | |
| function isImage(fetchRequest) { | |
| return fetchRequest.method === "GET" && fetchRequest.destination === "image"; | |
| } |
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
| <html> | |
| <head> | |
| <title>Parcel Sandbox</title> | |
| <meta charset="UTF-8" /> | |
| </head> | |
| <body> | |
| <header class="header"> | |
| <div class="header__left"> | |
| <a class="header__logo" |
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
| check_admin_referer('update-post_' . $post_id); | |
| $post_id = edit_post(); | |
| // Session cookie flag that the post was saved | |
| if ( isset( $_COOKIE['wp-saving-post'] ) && $_COOKIE['wp-saving-post'] === $post_id . '-check' ) { | |
| setcookie( 'wp-saving-post', $post_id . '-saved', time() + DAY_IN_SECONDS, ADMIN_COOKIE_PATH, COOKIE_DOMAIN, is_ssl() ); | |
| } | |
| redirect_post($post_id); // Send user on their way while we keep working |
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
| function hcf_save( $post_id ) { | |
| if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { | |
| return; | |
| } | |
| if ( $parent_id = wp_is_post_revision( $post_id ) ) { | |
| $post_id = $parent_id; | |
| } | |
| $field_list = [ | |
| 'hcf_author', | |
| 'hcf_published_date', |