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
# We are not using this file to run actual cron jobs. This is because the | |
# built-in Elastic Beanstalk cron feature actually puts the jobs at the end | |
# of the SQS queue. Instead we will run them manually. However, we need to | |
# have a non-empty cron.yaml or the SQS daemon won't even run and leader | |
# election won't work. | |
version: 1 | |
cron: | |
- name: "DoNothingJob" | |
url: "/periodic_tasks" | |
schedule: "0 0 31 2 *" |
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
{ | |
"type": "record", | |
"name": "Widgets", | |
"namespace": "com.my-app", | |
"fields": [ | |
{ | |
"name": "widget_id", | |
"type": "long", | |
}, | |
{ |
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 { Controller } from "stimulus" | |
import $ from "jquery" | |
export default class extends Controller { | |
static targets = ["filter", "table", "pagination", "row"] | |
connect() { | |
this.page = Number(this.data.get("page")) || 1; | |
this.perPage = Number(this.data.get("per-page")) || 20; |
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
<div data-controller="table" data-table-per-page="20" data-table-page="1"> | |
<div class="filters"> | |
<input type="text" name="topicName" data-target="table.filter"/> | |
<input type="checkbox" name="myTopics" data-target="table.filter"/> | |
</div> | |
<table> | |
<thead>...</thead> | |
<tbody data-target="table.table"> | |
<tr data-topicName="myTopic" data-myTopics="true">...</tr> | |
<tr data-topicName="yourTopic" data-myTopics="false">...</tr> |
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
<FilteredTableController perPage="20" data={data} renderRowFunc={(data) => ...}> | |
<TopicFilters> | |
<TextFilter field="topicName" placeholder="Enter the topic name"/> | |
<CheckboxFilter field="myTopic" label="Show Only My Topics"/> | |
</TopicFilters> | |
<FilteredTable> | |
<Headers>...</Headers> | |
</FilteredTable> | |
</FilteredTableController> |
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
<ws-filter-table perpage="20" data-table="{some_json_structure}"> | |
<ws-row-template> | |
<ws-topic-row></ws-topic-row> | |
</ws-row-template> | |
<ws-filters> | |
<div class="filters"> | |
<input type="text" name="topicName"/> | |
<input type="checkbox" name="myTopics"/> | |
</div> | |
</ws-filters> |
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
const fs = require("fs") | |
const path = require("path") | |
const files = fs.readdirSync(process.env.CALL_DIR) | |
const outputs = `${process.env.CALL_DIR}/../outputs` | |
if (!fs.existsSync(outputs)) { | |
console.log(process.cwd()) | |
console.log("outputs directory does not exist - use UPDATE_SNAPSHOTS=1 to create") | |
process.exit(1) | |
} |