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
// 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
{"lastUpload":"2022-01-17T00:56:15.576Z","extensionVersion":"v3.4.3"} |
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
// page: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php | |
// Wrap the data in a response object. | |
$response = rest_ensure_response( $data ); | |
// here!!!!! 여기 주석처리 중요 | |
// $response->add_links( $this->prepare_links( $post ) ); | |
// here!!!!! |
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
// acf/includes/api/api-helpers.php | |
function acf_get_simple_attachment( $post ) { | |
// post | |
$post = get_post($post); | |
if( !$post ) return false; | |
$sizes = ['thumbnail', 'medium', 'large', 'full']; |
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
docker run -d -v /opt/docker/registry/data:/tmp/registry-dev \ | |
--name docker-registry registry:2.0.1 | |
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 \ | |
-keyout /opt/docker/registry/conf/docker-registry.key \ | |
-out /opt/docker/registry/conf/docker-registry.crt | |
docker run -d -p 443:443 \ | |
-e REGISTRY_HOST="docker-registry" -e REGISTRY_PORT="5000" -e SERVER_NAME="localhost" \ | |
--link docker-registry:docker-registry \ |
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 *foo() { | |
yield 1; | |
yield 2; | |
yield 3; | |
} | |
function *boo() { | |
yield 4; | |
yield 5; | |
yield 6; |
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
// Thunk | |
let get = function (url) { | |
// return a function, passing in our callback | |
return function (callback) { | |
let xhr = new XMLHttpRequest(); | |
xhr.open('GET', url); | |
xhr.onreadystatechange = function() { | |
let response = xhr.responseText; | |
if(xhr.readyState != 4) return; |