Get your copy backlog programatically.
https://console-api.atom-data.io/api/external/v1/copybacklog/:target_id/:schema_name/:table_name/?key=<api key>
| package loader | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "net/http/httptest" | |
| "testing" | |
| ) |
| """ | |
| Usage: | |
| # From the data set dir | |
| # Create train data: | |
| python ../generate_tfrecord.py --csv_input=data/train_labels.csv --output_path=train.record | |
| """ | |
| from __future__ import division | |
| from __future__ import print_function | |
| from __future__ import absolute_import |
| import os | |
| import glob | |
| import pandas as pd | |
| import xml.etree.ElementTree as ET | |
| def xml_to_csv(path): | |
| xml_list = [] | |
| for xml_file in glob.glob(path + '/*.xml'): | |
| tree = ET.parse(xml_file) |
| #!/bin/bash | |
| for f in ./*.jpg | |
| do | |
| r=$(identify -format '%[fx:(h>w)]' "$f") | |
| if [[ r -eq 1 ]] | |
| then | |
| rm "$f" | |
| fi | |
| done |
| python infra/api-gateway-deployer/src/__init__.py src/project.json |
| { | |
| "swagger": "2.0", | |
| "info": { | |
| "version": "2017-02-26T12:58:40Z", | |
| "title": "SampleProject" | |
| }, | |
| "host": "<host_id>.execute-api.us-east-1.amazonaws.com", | |
| "basePath": "/dev", | |
| "schemes": [ | |
| "https" |
| { | |
| "description": "search for github repos", | |
| "x-api-gateway": { | |
| "method": "post", | |
| "path": "/repos/{id}", | |
| "parameters":[ | |
| { | |
| // configuration of input params. Skipped for brevity | |
| // check out a real example: https://github.com/rotemtam/serverless-ci-example/blob/master/src/functions/getRepositories/function.json | |
| } |
| // Source: express.js website: https://expressjs.com/en/guide/routing.html | |
| var express = require('express') | |
| var app = express() | |
| // respond with "hello world" when a GET request is made to the homepage | |
| app.get('/', function (req, res) { | |
| res.send('hello world') | |
| }) |
| #!/bin/bash -e | |
| PATH_TO_AWS_CREDENTIALS=~/.aws/credentials | |
| AWS_REGION=us-east-1 | |
| # build the image | |
| docker build . -t apex-lambda-deployer | |
| # run unit tests | |
| docker run apex-lambda-deployer npm test |