Skip to content

Instantly share code, notes, and snippets.

View markroxor's full-sized avatar

Mohit Rathore markroxor

View GitHub Profile

Keybase proof

I hereby claim:

  • I am markroxor on github.
  • I am markroxor (https://keybase.io/markroxor) on keybase.
  • I have a public key whose fingerprint is 88E6 23D1 6F92 29B0 0EBC 60E1 9A40 0A69 45E9 1AA6

To claim this, I am signing this object:

@markroxor
markroxor / mmts.py
Created November 15, 2017 08:35
wip
import urllib2
import json
import pickle
import time
while True:
response = urllib2.urlopen('http://122.252.246.246:8081/MMTSLiveeng.html')
html = response.read()
@markroxor
markroxor / IDW.txt
Created February 3, 2018 14:16
IDW rules
Leader - Akshay
Will take care of recruitment and who fights in CW.
Senior player - Scorpion
Will take care of recruitment and is the person of contact for any issues.
Members -
1. Yogi
2. Majin Buu
3. DJ
@markroxor
markroxor / min-char-rnn.py
Created February 23, 2018 08:29 — forked from karpathy/min-char-rnn.py
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
>>> list.__doc__
"list() -> new empty list\nlist(iterable) -> new list initialized from iterable's items"
>>> list().__doc__
"list() -> new empty list\nlist(iterable) -> new list initialized from iterable's items"
>>> help(list)
Help on class list in module builtins:

class list(object)
 |  list() -> new empty list
@markroxor
markroxor / stn_example.ipynb
Created September 1, 2018 14:36
Testing Keras STN.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"use strict";
var gymHTTPClient_1 = require("/home/markroxor/Documents/RL/gym-http-api/binding-js/dist/lib/gymHTTPClient");
var RandomDiscreteAgent = (function () {
function RandomDiscreteAgent(n) {
this.n = n;
}
RandomDiscreteAgent.prototype.act = function (observation, reward, done) {
return Math.floor(Math.random() * this.n);
};
return RandomDiscreteAgent;
"use strict";
var axios = require("axios");
var Client = (function () {
function Client(remote) {
this.remote = remote;
this.shouldLog = (process.env.SHOULD_LOG === "true");
if (this.shouldLog) {
console.log("Logging enabled");
}
else {
const axios = require('axios');
// Make a request for a user with a given ID
var server_url = 'http://127.0.0.1:5000'
var url = server_url + '/v1/envs/';
var msg = {'env_id': 'CartPole-v0'};
let axiosConfig = {
headers: {
'Content-Type': 'application/json',