Skip to content

Instantly share code, notes, and snippets.

View YazzyYaz's full-sized avatar
💭
Coding 💻

Yaz Khoury YazzyYaz

💭
Coding 💻
View GitHub Profile
@YazzyYaz
YazzyYaz / Dockerfile
Created January 10, 2019 15:33
Cross-Compiling Parity to ARMV7
FROM debian:latest
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
cmake \
curl \
git \
pkg-config \
gcc-arm-linux-gnueabihf \
### Keybase proof
I hereby claim:
* I am yazzyyaz on github.
* I am yazanator (https://keybase.io/yazanator) on keybase.
* I have a public key ASBU-_BS2dPw4QzFP9JinhMy3roSsbTXqdgU5WspddP3rgo
To claim this, I am signing this object:
import gym
import time
from multiprocessing import Process, Pipe
import numpy as np
class EnvWorker(Process):
def __init__(self, env_name, pipe, name=None, NotDisplay=True, delay=0):
Process.__init__(self, name=name)
self.env = gym.make(env_name)
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import copy
class Particle(object):
def __init__(self, position, velocity):
self.position = copy.copy(position)
self.velocity = copy.copy(velocity)
self.best_position = copy.copy(position)