Skip to content

Instantly share code, notes, and snippets.

View How to setup VirtualGL and TurboVNC on Ubuntu.md
@aymen-mouelhi
aymen-mouelhi / play.py
Created Jan 4, 2018
Multi Threaded Gym Environment - Extract
View play.py
if __name__ == '__main__':
env = gym.make('Mario-Kart-Luigi-Raceway-Multi-v0')
obs = env.reset()
env.render()
while not end_episode:
# Action should be multi-threaded + setting agent
for i in range(num_agents):
agent = i+1
@aymen-mouelhi
aymen-mouelhi / controller.c
Created Jan 4, 2018
Updated Input Bot Controller
View controller.c
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <sys/types.h>
@aymen-mouelhi
aymen-mouelhi / hello.html
Created Mar 16, 2017
Hello world example
View hello.html
<html>
<body>
<script type="text/javascript">
// Code goes here...
</script>
</body>
</html>
@aymen-mouelhi
aymen-mouelhi / .bashrc_profile
Created Mar 4, 2017
.bashrc_profile configuration for colors and git branch support for mac os
View .bashrc_profile
# Git branch in prompt.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[36m\]\$(parse_git_branch)\[\033[00m\] $ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
View languages.json
[
{
"name":"ABAP",
"type":"programming",
"extensions":[
".abap"
]
},
{
"name":"AGS Script",
@aymen-mouelhi
aymen-mouelhi / readme.md
Created Feb 1, 2016 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM
View readme.md

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser
View async_css.html
<html>
<head>
<!-- The <script> switches rel="prefetch" to rel="stylesheet" at proper time, et voila, magic happens :-) -->
<link rel="prefetch" type="text/css" href="https://cdn.limitlesslane.com/css/mini/async_lib.css" />
<link rel="stylesheet" type="text/css" href="https://cdn.limitlesslane.com/css/mini/lib.css" />
<link rel="stylesheet" type="text/css" href="https://cdn.limitlesslane.com/css/mini/app.css" />
<link rel="prefetch" type="text/css" href="https://cdn.limitlesslane.com/css/mini/async_app.css" />
<script>
;(function(w,d){
View designer.html
<link rel="import" href="../smoothie-chart/smoothie-chart.html">
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<link rel="import" href="../topeka-elements/topeka-datasource.html">
<link rel="import" href="../topeka-elements/avatars.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../paper-toast/paper-toast.html">
<link rel="import" href="../topeka-elements/topeka-profile.html">
View designer.html
<link rel="import" href="../topeka-elements/avatars.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../paper-ripple/paper-ripple.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;