Skip to content

Instantly share code, notes, and snippets.

@kingjuno
kingjuno / ogs.css
Last active September 26, 2025 09:08
/* === OGS Custom Profile Theme by neikara - Refactorisé === */
/* ===== CSS VARIABLES ===== */
:root {
/* Couleurs principales */
--primary-color: rgb(255, 36, 0);
--primary-dark: #ff2400;
--secondary-color: #ff8c00;
--gradient-primary: linear-gradient(45deg, #ff2d00, #ff8c00);
--gradient-navbar-dark: linear-gradient(45deg, #3b0000, #b46918);
#This code is from openai baseline
#https://github.com/openai/baselines/tree/master/baselines/common/vec_env
import numpy as np
from multiprocessing import Process, Pipe
def worker(remote, parent_remote, env_fn_wrapper):
parent_remote.close()
env = env_fn_wrapper.x()
while True:
@kingjuno
kingjuno / wrapper.py
Last active March 12, 2023 07:29
atari wrapper (latest)
from collections import deque
import gym
import numpy as np
import cv2
cv2.ocl.setUseOpenCL(False)
class NoopResetEnv(gym.Wrapper):
def __init__(self, env, noop_max=30):