Skip to content

Instantly share code, notes, and snippets.

Doing and Being

Clay Graham claytantor

Doing and Being
View GitHub Profile
andrhamm / callbacks.js
Last active Dec 26, 2020
Paginating Scans & Queries in DynamoDB with Node.js using Callbacks OR Promises
View callbacks.js
const AWS = require('aws-sdk');
AWS.config.logger = console;
const dynamodb = new AWS.DynamoDB({ apiVersion: '2012-08-10' });
let val = 'some value';
let params = {
TableName: "MyTable",
ExpressionAttributeValues: {
Pocuston /
Created Sep 3, 2017
Cartpole-v0 using Pytorch and DQN
# Solution of Open AI gym environment "Cartpole-v0" ( using DQN and Pytorch.
# It is is slightly modified version of Pytorch DQN tutorial from
# The main difference is that it does not take rendered screen as input but it simply uses observation values from the \
# environment.
import gym
from gym import wrappers
import random
import math