Skip to content

Instantly share code, notes, and snippets.

Daniel Dugovic ddugovic

Block or report user

Report or block ddugovic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
import gym
import numpy as np
def run_episode(env, parameters):
observation = env.reset()
totalreward = 0
#for 200 timesteps
for _ in xrange(200):
#initalize random weights
ddugovic / audiosynth.view.js
Last active Jul 19, 2016
Attempting to draw some keys. Lovingly copied from
View audiosynth.view.js
var fnCreateKeyboard = function(keyboardElement) {
// Generate keyboard
// This is our main keyboard element! It's populated dynamically based on what you've set above.
visualKeyboard = document.getElementById('keyboard');
selectSound = document.getElementById('sound');
var iKeys = 0;
var iWhite = 0;
var notes = __audioSynth._notes;
ddugovic / gist:827dcac503f9b458efe49d01888a3a60
Last active May 13, 2016
Parsey McParseface versus 2007 Miss Teen South Carolina
View gist:827dcac503f9b458efe49d01888a3a60
echo "I personally believe that U.S. Americans are unable to do so because uh some uh people out there in our nation don't have maps and uh I believe that our ed- education like such as in South Africa and uh the- the Iraq everywhere like such as and I believe that they should uh our education over here in the U.S. should help the U.S. or- or- should help South Africa and should help the Iraq and the Asian countries so we will be able to build up our future for our children." | ./syntaxnet/
I syntaxnet/] Loaded 46 terms from syntaxnet/models/parsey_mcparseface/label-map.
I syntaxnet/] Features: stack.child(1).label stack.child(1).sibling(-1).label stack.child(-1).label stack.child(-1).sibling(1).label stack.child(2).label stack.child(-2).label stack(1).child(1).label stack(1).child(1).sibling(-1).label stack(1).child(-1).label stack(1).child(-1).sibling(1).label stack(1).child(2).label stack(1).child(-2).label; input.token.tag input(1).token.ta
ddugovic /
Last active Nov 24, 2017 — forked from niklasf/
An implementation of the Bratko-Kopec Test using python-chess
import chess
import chess.uci
import sys
import time
def test_epd(engine, epd):
position = chess.Board()
You can’t perform that action at this time.