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
| class Foo | |
| def self.say | |
| p "hello from Foo" | |
| end | |
| end | |
| module Bar | |
| def self.say |
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
| # add this file to your project and run | |
| # docker-compose up | |
| # point your database.yml to postgres on localhost:5432 | |
| version: '2' | |
| services: | |
| db: | |
| image: postgres | |
| ports: | |
| - "5432:5432" | |
| environment: |
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 ruby | |
| # You will need to setup your aws keys in your ENV | |
| # AWS_SECRET_ACCESS_KEY | |
| # AWS_ACCESS_KEY_ID | |
| # and also enable the user to have access to Rekognition:detect_text in IAM | |
| require 'aws-sdk' | |
| # Screenshot from email https://s3.amazonaws.com/spdev/inkovate-binary-2018.jpg |
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
| # example reward function for reinforcement training | |
| def reward_function (on_track, x, y, distance_from_center, car_orientation, progress, | |
| steps, throttle, steering, track_width, waypoints, closest_waypoint): | |
| import math | |
| marker_1 = 0.1 * track_width | |
| marker_2 = 0.25 * track_width | |
| marker_3 = 0.5 * track_width |
OlderNewer