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
{ | |
"__file": "wp_block", | |
"title": "Latest Featured Posts", | |
"content": "<!-- wp:group {\"className\":\"has-text-color has-background\"} -->\n<div class=\"wp-block-group has-text-color has-background\"><div class=\"wp-block-group__inner-container\"><!-- wp:paragraph -->\n<p><strong>Further reading:</strong></p>\n<!-- /wp:paragraph -->\n\n<!-- wp:latest-posts {\"categories\":[{\"id\":6,\"count\":4,\"description\":\"\",\"link\":\"http://localhost:8888/?cat=6\",\"name\":\"Featured\",\"slug\":\"featured\",\"taxonomy\":\"category\",\"parent\":0,\"meta\":[],\"_links\":{\"self\":[{\"href\":\"http://localhost:8888/index.php?rest_route=/wp/v2/categories/6\"}],\"collection\":[{\"href\":\"http://localhost:8888/index.php?rest_route=/wp/v2/categories\"}],\"about\":[{\"href\":\"http://localhost:8888/index.php?rest_route=/wp/v2/taxonomies/category\"}],\"wp:post_type\":[{\"href\":\"http://localhost:8888/index.php?rest_route=%2Fwp%2Fv2%2Fposts\\u0026categories=6\"}],\"curies\":[{\"name\":\"wp\",\"href\":\"https://api.w.org |
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
package main | |
import ( | |
"bytes" | |
"fmt" | |
"io" | |
"log" | |
"mime/multipart" | |
"net/http" | |
"os" |
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 boto.emr.connection import EmrConnection | |
from boto.emr.step import InstallPigStep, PigStep | |
AWS_ACCESS_KEY = '' # REQUIRED | |
AWS_SECRET_KEY = '' # REQUIRED | |
conn = EmrConnection(AWS_ACCESS_KEY, AWS_SECRET_KEY) | |
pig_file = 's3://elasticmapreduce/samples/pig-apache/do-reports2.pig' | |
INPUT = 's3://elasticmapreduce/samples/pig-apache/input/access_log_1' | |
OUTPUT = '' # REQUIRED, S3 bucket for job output |