with PM2 & Nginx
as a root, run below commands on server:
# adduser tomy
""" Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """ | |
import numpy as np | |
import cPickle as pickle | |
import gym | |
# hyperparameters | |
H = 200 # number of hidden layer neurons | |
batch_size = 10 # every how many episodes to do a param update? | |
learning_rate = 1e-4 | |
gamma = 0.99 # discount factor for reward |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://npmcdn.com/expect/umd/expect.min.js"></script> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> |
ffmpeg -i test.mov -vcodec libx264 -vf 'scale=640:trunc(ow/a/2)*2' -acodec aac -vb 1024k -minrate 1024k -maxrate 1024k -bufsize 1024k -ar 44100 -strict experimental -r 30 out.mp4 |
from xml.etree.ElementTree import ElementTree | |
import os | |
def ProcessGHXFile(definition_path, base_filename): | |
# Loads the file and sets up the XML parser | |
the_file = open(definition_path) | |
the_directory = os.path.dirname(definition_path) | |
the_tree = ElementTree() | |
the_tree.parse(the_file) | |
IsolateTheScript(the_tree, the_directory, base_filename) |
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Control/Escape</name> | |
<appdef> | |
<appname>MACVIM</appname> | |
<equal>org.vim.MacVim</equal> | |
</appdef> | |
<appdef> | |
<appname>TERMINAL</appname> |
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
import java.util.Map; | |
import java.util.Comparator; | |
import java.util.Collections; | |
int index = 0; | |
PImage pokemon, current; | |
PGraphics pie; | |
HashMap<Integer,Integer> colorMap; | |
ArrayList<Integer> colorByCount; |