Skip to content

Instantly share code, notes, and snippets.

### From https://gist.github.com/RafaelCosman/9efc8181d37cdfdaaca70907bcd97372 ###
import tensorflow as tf
import numpy as np
np.set_printoptions(precision=3)
sess = tf.InteractiveSession()
# use the following to import MNIST:
@RafaelCosman
RafaelCosman / README.md
Last active July 5, 2016 05:20
Comparison of modular_rl TRPO on Pendulum-v0 and SemisuperPendulumRandom-v0

Keybase proof

I hereby claim:

  • I am rafaelcosman on github.
  • I am rafaelcosman (https://keybase.io/rafaelcosman) on keybase.
  • I have a public key ASAkXZSiVMDv8DqoULrpLhlI4XB06yxdWf9G7Kz1Uj_0Ywo

To claim this, I am signing this object:

@RafaelCosman
RafaelCosman / poisson.js
Last active December 29, 2015 15:58 — forked from yuanyan/poisson.js
Poisson distribution
//Poisson distribution
//http://en.wikipedia.org/wiki/Poisson_distribution
function poisson(expected_value){
var n = 0, //循环计数
limit = Math.exp(-expected_value), // e -v, 其中v是期望值
x = Math.random(); //生成 0-1之间随机数
while(x > limit){
n++;
x *= Math.random();;
}
alembic==0.6.5
amqp==1.4.7
anyjson==0.3.3
billiard==3.3.0.20
bleach==1.4.2
bottlenose==0.6.2
celery==3.1.18
cssselect==0.9.1
cssutils==1.0
decorator==4.0.4
alembic==0.8.2
amqp==1.4.7
anyjson==0.3.3
billiard==3.3.0.20
bleach==1.4.2
bottlenose==0.6.2
celery==3.1.18
cssselect==0.9.1
cssutils==1.0
elasticsearch==1.7.0
@RafaelCosman
RafaelCosman / index.html
Created April 22, 2015 19:44
Cytoscape.js initialisation // source http://jsbin.com/naboxejebo
<!DOCTYPE html>
<html>
<head>
<link href="style.css" rel="stylesheet" />
<meta charset=utf-8 />
<title>Cytoscape.js initialisation</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://cytoscape.github.io/cytoscape.js/api/cytoscape.js-latest/cytoscape.min.js"></script>
<script src="code.js"></script>
<style id="jsbin-css">
@RafaelCosman
RafaelCosman / index.html
Created April 22, 2015 04:25
Cytoscape.js initialisation // source http://jsbin.com/naboxejebo
<!DOCTYPE html>
<html>
<head>
<link href="style.css" rel="stylesheet" />
<meta charset=utf-8 />
<title>Cytoscape.js initialisation</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://cytoscape.github.io/cytoscape.js/api/cytoscape.js-latest/cytoscape.min.js"></script>
<script src="code.js"></script>
<style id="jsbin-css">
@RafaelCosman
RafaelCosman / index.html
Created April 22, 2015 03:48
Cytoscape.js initialisation // source http://jsbin.com/naboxejebo
<!DOCTYPE html>
<html>
<head>
<link href="style.css" rel="stylesheet" />
<meta charset=utf-8 />
<title>Cytoscape.js initialisation</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://cytoscape.github.io/cytoscape.js/api/cytoscape.js-latest/cytoscape.min.js"></script>
<script src="code.js"></script>
<style id="jsbin-css">
@RafaelCosman
RafaelCosman / gist:f43ab249ba0b1fa07da2
Created April 21, 2015 00:57
StreetCode Karel Library
{
/*************************************
* Welcome to Karel in ProcessingJS!
*
* Karel is a great way to learn control structures while solving puzzles. Karel is
* a robot living in a grid world. It only knows a few things about the world around it,
* and can only follow a few basic commands: move(), turnLeft(), putBeeper(), and pickBeeper().
* With these simple commands, you'll be able to do so many cool things!
*
* Tell Karel what to do by editting its run function. Scroll down to the bottom to get started!