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
# just playing | |
def self.pkg(platform, opt) | |
# short time solution <start> | |
extension = case platform | |
when "win32" then | |
"exe" | |
when "linux" then | |
"run" | |
when "osx" then | |
"dmg" |
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
"""pg-pong.py: Trains an agent with (stochastic) Policy Gradients on Pong. | |
Uses OpenAI Gym. | |
Saves model every 100 episodes. Resume by setting resume = True | |
Set render = True to watch the action. | |
Modified from https://gist.github.com/karpathy/a4166c7fe253700972fcbc77e4ea32c5 | |
to print timestamped self-contained progress rows in TSV format (filter | |
for just lines containing 'episode'). | |
For background, see http://karpathy.github.io/2016/05/31/rl/ |
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
#!/bin/bash | |
# Locate the history file in your profile, and copy it to the same folder as this script. | |
# On Mac: ~/Library/Application\ Support/Google/Chrome/Default/History | |
# On Windows: C:\Users\YOUR USER NAME\AppData\Local\Google\Chrome\User Data\Default\History | |
sqlite3 History <<! | |
.headers on | |
.mode csv | |
.output out.csv |