We need to use docker-machine to handle USB ports inside the docker.
- Install docker-machine: https://docs.docker.com/machine/install-machine/
- Docker version: 18.09.2, build 6247962
- Install virtualbox >= 6.0
#include <winsock2.h> | |
#include <iostream> | |
struct CLIENT_INFO { | |
SOCKET hClientSocket; | |
struct sockaddr_in clientAddr; | |
}; | |
char szServerIPAddr[] = "192.168.1.4"; // Put here the IP address of the server | |
int nServerPort = 5050; // The server port that will be used by |
/*Name: William Wetzel - 130251255*/ | |
/*Programming for Games - Project 1*/ | |
/*2016*/ | |
/*Quaternion.cpp file. Has all methods declared in the Quaternion header file.*/ | |
#include "Quaternion.h" | |
Quaternion::Quaternion() { | |
coord = new float[4]; |
#!/usr/bin/env python3 | |
import argparse, glob, json, re, subprocess, urllib.request, os, sys | |
class version_number: | |
major=0 | |
minor=0 | |
release=0 |
We need to use docker-machine to handle USB ports inside the docker.
In my project folder I have 2 folders client and server, I only want get the changes in my server folder from master to prod branch
git checkout prod
- Go to the branch with the oldest changesgit merge --no-commit --no-ff master
- Merge with the branch with the latest changes. Read Moregit reset -- client*
- Unstage any changes from client folder, I only want to server folder. Read Moregit checkout -- client*
- Remove any changes from client folder, I only want to server folder.git clean -n
- View all unstaged files. Read Moregit clean -fd
- Remove all unstaged folder, if you dont want to remove all then you should add those with git add
and then run this command. Read Moreimport UIKit | |
import AVFoundation | |
class ViewController: UIViewController { | |
override func viewDidAppear(_ animated: Bool) { | |
super.viewDidAppear(animated) | |
switch AVCaptureDevice.authorizationStatus(for: .video) { | |
case .notDetermined: |
""" 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 |