Skip to content

Instantly share code, notes, and snippets.

View ppaanngggg's full-sized avatar
:shipit:
Jumping

ppaanngggg ppaanngggg

:shipit:
Jumping
  • Shanghai Tianrang.inc
  • 中国
View GitHub Profile
@Tamal
Tamal / git-ssh-error-fix.sh
Last active April 16, 2024 13:32
Solution for 'ssh: connect to host github.com port 22: Connection timed out' error
$ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj
Cloning into 'my-awesome-proj'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
$ # This should also timeout
$ ssh -T git@github.com
ssh: connect to host github.com port 22: Connection timed out
$ # but this might work
@malzantot
malzantot / mountaincar_qlearning.py
Last active October 20, 2022 04:00
Solution of MountainCar OpenAI Gym problem using Q-Learning.
"""
Q-Learning example using OpenAI gym MountainCar enviornment
Author: Moustafa Alzantot (malzantot@ucla.edu)
"""
import numpy as np
import gym
from gym import wrappers