Skip to content

Instantly share code, notes, and snippets.

View nealmcb's full-sized avatar

Neal McBurnett nealmcb

View GitHub Profile
@nealmcb
nealmcb / get_history.sh
Created October 12, 2020 12:17 — forked from TravelingTechGuy/get_history.sh
Get your Chrome history as a CSV file
#!/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
@nealmcb
nealmcb / pg-pong.py
Last active June 21, 2016 03:48 — forked from karpathy/pg-pong.py
Training a Neural Network ATARI Pong agent with Policy Gradients from raw pixels
"""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/
@nealmcb
nealmcb / pack.rb
Created August 25, 2009 21:37 — forked from vsalbaba/pack.rb
# 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"