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
#! /usr/bin/env python | |
import redis | |
import random | |
import pylibmc | |
import sys | |
r = redis.Redis(host = 'localhost', port = 6389) | |
mc = pylibmc.Client(['localhost:11222']) |
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 dynamo.base import DynamoBase | |
from samples.log.schema import TABLE_NAME, TIMESTAMP, STATUS, INDEX_STATUS_KEY | |
class DynamoLog(DynamoBase): | |
def get_params(self, key): | |
params = { | |
'TableName': TABLE_NAME, | |
'Key': { |
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 dynamo.base import DynamoBase | |
from samples.domain.schema import TABLE_NAME, DOMAIN, URL | |
class DynamoDomain(DynamoBase): | |
def get_params(self, key): | |
params = { | |
'TableName': TABLE_NAME, | |
'Key': { |
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
import sys | |
from abc import abstractmethod | |
import boto3 | |
class DynamoBase: | |
def __init__(self, conf): | |
self.conf = { |
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
TABLE_NAME = 'Log' | |
TIMESTAMP = 'updated_at' | |
STATUS = 'status' | |
INDEX_STATUS_KEY = 'Status' | |
SCHEMA = { | |
'TableName': TABLE_NAME, | |
'AttributeDefinitions': [ | |
{ | |
'AttributeName': TIMESTAMP, | |
'AttributeType': 'S' |
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
TABLE_NAME = 'Domain' | |
DOMAIN = 'domain' | |
URL = 'url' | |
SCHEMA = { | |
'TableName': TABLE_NAME, | |
'AttributeDefinitions': [ | |
{ | |
'AttributeName': URL, | |
'AttributeType': 'S' | |
} |
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
image: node:latest | |
cache: | |
key: ${CI_COMMIT_REF_SLUG} | |
paths: | |
- node_modules/ | |
stages: | |
- test | |
- build |
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
# [START runtime] | |
runtime: nodejs8 | |
handlers: | |
- url: / | |
static_files: dist/demo-app/index.html | |
upload: dist/demo-app/index.html | |
- url: / | |
static_dir: dist/demo-app | |
# [END runtime] |
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
// Protractor configuration file, see link for more information | |
// https://github.com/angular/protractor/blob/master/lib/config.ts | |
const { SpecReporter } = require('jasmine-spec-reporter'); | |
exports.config = { | |
allScriptsTimeout: 11000, | |
specs: [ | |
'./src/**/*.e2e-spec.ts' | |
], | |
capabilities: { |
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
// Karma configuration file, see link for more information | |
// https://karma-runner.github.io/1.0/config/configuration-file.html | |
const process = require('process'); | |
process.env.CHROME_BIN = require('puppeteer').executablePath(); | |
module.exports = function (config) { | |
config.set({ | |
basePath: '', | |
frameworks: ['jasmine', '@angular-devkit/build-angular'], | |
plugins: [ |
NewerOlder