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
/** | |
The setting "cali_post_slider_hide_cat" is saved in the Post Slider section, but it's never used. | |
So, we need to extract the value in the header.php | |
Add the below condition to the if clause along with `is_home()`. | |
``` | |
!get_theme_mod('cali_post_slider_hide_cat', false) && | |
``` |
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
FROM gcr.io/dataflow-templates-base/python3-template-launcher-base | |
RUN mkdir -p /dataflow/template | |
WORKDIR /dataflow/template | |
COPY pipeline ${WORKDIR}/pipeline | |
COPY spec/python_command_spec.json ${WORKDIR}/python_command_spec.json |
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
import sys | |
from awsglue.context import GlueContext | |
from pyspark.context import SparkContext | |
from awsglue.utils import getResolvedOptions | |
def load(context, bucket, prefix=""): | |
dynamic_frame = context.create_dynamic_frame_from_options( |
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
import time | |
my_list = [i for i in range(0, 100000)] | |
def manipulate(element): | |
return element ** 2 | |