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
| .slide { | |
| align-self: stretch; | |
| height: unset; | |
| } |
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
| body * { | |
| box-sizing: border-box; | |
| } | |
| @mixin breakpoint($size) { | |
| @if type-of($size) == "string" { | |
| @media (min-width: map-get($breakpoints, $size)) { | |
| @content; | |
| } | |
| } @else { |
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
| /* Rest Routes */ | |
| function theme_data() { | |
| $obj = []; | |
| $obj["site_url"] = get_site_url(); | |
| return $obj; | |
| } | |
| add_action( 'rest_api_init', function () { | |
| register_rest_route( 'theme', 'data', array( | |
| 'methods' => 'GET', |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>My Project</title> | |
| </head> | |
| <body> | |
| <h1>Test</h1> | |
| </body> | |
| </html> |
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
| #!/usr/bin/env node | |
| console.log(`You want to call your project: ${process.argv[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
| DB_HOST= | |
| DB_USER= | |
| DB_PASSWORD= | |
| DB_PORT=3306 | |
| DB_NAME= |
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
| export default function ChildApp() { | |
| return html`<div>How's it going now?</div>`; | |
| } |
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
| /* | |
| Before | |
| html { | |
| font-size: 16px; | |
| } | |
| @media screen and (min-width: 320px) { | |
| html { | |
| font-size: calc(16px + 6 * ((100vw - 320px) / 680)); | |
| } | |
| } |
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
| // From https://stackoverflow.com/questions/48011353/how-to-unwrap-type-of-a-promise/57364353#57364353 | |
| type Await<T> = T extends PromiseLike<infer U> ? Await<U> : T |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |