Skip to content

Instantly share code, notes, and snippets.

View Vimalraj571's full-sized avatar
🎯
Focusing

Vimalraj Vimalraj571

🎯
Focusing
View GitHub Profile
@JamieLottering
JamieLottering / shape.css
Created July 28, 2011 22:56
Horizontal Ribbon Shape
.ribbon {
border-color: #cc0000 transparent #cc0000 transparent;
border-style: solid;
border-width: 16px;
color: #fff;
position: relative;
text-align: center;
width: 250px;
}
.ribbon:before {
@chengsoonong
chengsoonong / gsoc2014-machine-learning.ipynb
Last active November 20, 2017 16:17
GSoC 2014 projects related to machine learning
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import gym
import numpy as np
import random
import math
from time import sleep
## Initialize the "Cart-Pole" environment
env = gym.make('CartPole-v0')
@arushir
arushir / README.md
Last active March 24, 2018 09:56
Deep Q-learning for Cart-Pole

I implemented the DQN model from this paper: https://www.cs.toronto.edu/~vmnih/docs/dqn.pdf.

I used a simple network with two hidden layers and an output layer, instead of the CNN described in the paper due to the relative simplicity of the Cart-Pole environment compared to Atari games.

Note, that I did not yet implement the target network described in the more recent paper here: https://storage.googleapis.com/deepmind-data/assets/papers/DeepMindNature14236Paper.pdf.

The results vary from run to run, sometimes taking 1000 episodes to solve the problem, and at other times taking only 200 episodes.

@edwardgeorge
edwardgeorge / clonevirtualenv.py
Created March 8, 2011 19:17
A script for cloning a non-relocatable virtualenv.
"""virtualenv cloning script.
A script for cloning a non-relocatable virtualenv.
Virtualenv provides a way to make virtualenv's relocatable which could then be
copied as we wanted. However making a virtualenv relocatable this way breaks
the no-site-packages isolation of the virtualenv as well as other aspects that
come with relative paths and '/usr/bin/env' shebangs that may be undesirable.
Also, the .pth and .egg-link rewriting doesn't seem to work as intended. This
@yancyn
yancyn / jekyll-ubuntu.md
Last active July 13, 2019 06:17
Setup Jekyll on Ubuntu 16.04

Pre-requisition*

$ sudo apt-get update
$ sudo apt-get upgrade

*if fail see Upgrade Ubuntu 16.04 Live Stick

Ubuntu 16.04

$ sudo apt-get install ruby ruby-dev make gcc
@ShepBook
ShepBook / gist:5713899
Last active August 22, 2020 06:35
Installing Clojure and Clojure Koans with Leiningen on Linux Mint 15

Installing Clojure and Clojure Koans with Leiningen on Linux Mint 15

Remove Existing OpenJDK

Generally, I'd recommend running Oracle's Java, if you're doing Clojure development. Seeing how Clojure is built around the standard JVM from Oracle, it seems like it would be best to use that. First, let's remove the existing OpenJDK from our OS.

Search for OpenJDK

$ dpkg --get-selections | grep jdk
@IamAdiSri
IamAdiSri / Python3, Pip3, Virtualenv and Virtualenvwrapper Setup
Last active May 9, 2022 22:08 — forked from evansneath/Python3 Virtualenv Setup
Setting up and using Python3, Pip3, Virtualenv (for Python3) and Virtualenvwrapper (for Python3)
First install pip for Python2. Download the get-pip.py file from https://bootstrap.pypa.io/get-pip.py
$ cd <download location>
$ sudo -H python ./get-pip.py
Installing pip also installs Python3
To run Python3
$ python3
Install pip3 by just executing the same file as in the step above, but this time using Python3
$ sudo -H python3 ./get-pip.py
@mpj
mpj / monad-stream-example.js
Last active September 14, 2022 06:42
This is the code from Monads - episode #21 of FunFunFunction (https://www.youtube.com/playlist?list=PL0zVEGEvSaeFSwPn06GKArptSxiP1Gff8)
const fetch = require('node-fetch')
const Bacon = require('baconjs')
function getInPortuguese(word) {
// Google Translate API is a paid (but dirt cheap) service. This is my key
// and will be disabled by the time the video is out. To generate your own,
// go here: https://cloud.google.com/translate/v2/getting_started
const apiKey =
'AIzaSyB4DyRHIsNhogQXmH16YKbZfR-lTXrQpq0'
const url =
# Logs
logs
*.log
npm-debug.log*
# Runtime data
pids
*.pid
*.seed