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
### Keybase proof | |
I hereby claim: | |
* I am dbgeek on github. | |
* I am ba78 (https://keybase.io/ba78) on keybase. | |
* I have a public key ASD1iieryV-t81s7VHXZ14zW7ATbxUkddFrGymnmYwVzPwo | |
To claim this, I am signing this object: |
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 cdk = require('@aws-cdk/core'); | |
import autoscaling = require('@aws-cdk/aws-autoscaling'); | |
import ec2 = require('@aws-cdk/aws-ec2'); | |
import eventBus = require('@aws-cdk/aws-events') | |
import lambda = require('@aws-cdk/aws-lambda') | |
import lambdTarget = require('@aws-cdk/aws-events-targets') | |
export class AsgEventbusStack extends cdk.Stack { | |
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { | |
super(scope, id, props); |
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
def reward_function(params): | |
''' | |
Example of rewarding the agent to follow center line | |
''' | |
# Calculate 3 marks that are farther and father away from the center line | |
marker_1 = 0.1 * params['track_width'] | |
marker_2 = 0.25 * params['track_width'] | |
marker_3 = 0.5 * params['track_width'] | |
speed = params['speed'] |
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
def reward_function(params): | |
''' | |
Example of rewarding the agent to follow center line | |
''' | |
# Calculate 3 marks that are farther and father away from the center line | |
marker_1 = 0.1 * params['track_width'] | |
marker_2 = 0.25 * params['track_width'] | |
marker_3 = 0.5 * params['track_width'] | |
speed = params['speed'] |
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
package main | |
import ( | |
"context" | |
"database/sql" | |
"fmt" | |
"log" | |
"os" | |
"time" |
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
/* | |
All these OS environment variables to specify how to connect. | |
* DB_USERNAME | |
* DB_PASSWORD | |
* DB_PORT | |
* DB_HOSTNAME | |
* DB_SERVICENAME | |
* DB_PREFETCHMEMORY | |
* DB_PREFETCHROWS | |
DB Privileges need |
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
/* | |
All these OS environment variables to specify how to connect. | |
* DB_USERNAME | |
* DB_PASSWORD | |
* DB_PORT | |
* DB_HOSTNAME | |
* DB_SERVICENAME | |
* DB_PREFETCHMEMORY | |
* DB_PREFETCHROWS | |
DB Privileges need |