author: name: Eklavya Sharma email: f2014130@pilani.bits-pilani.ac.in title: GSoC output: gsoc-pres.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.lang.*; | |
class InvalidMoveException extends Exception {} | |
class InvalidBoardStateException extends RuntimeException {} | |
class Board { | |
private int n, n2; | |
private char[] a; | |
private static final char pchar[] = {'-', 'X', 'O'}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
This is an inverse-dictation program. | |
It speaks out word-by-word (not line-by-line) whatever you type. | |
""" | |
import sys | |
import os | |
import subprocess |
https://gym.openai.com/envs/CartPole-v0
A pole is attached by an un-actuated joint to a cart, which moves along a frictionless track. The system is controlled by applying a force of +1 or -1 to the cart. The pendulum starts upright, and the goal is to prevent it from falling over. A reward of +1 is provided for every timestep that the pole remains upright.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _POSIX_SOURCE | |
#include<stdio.h> | |
#include<stdlib.h> | |
#include<string.h> | |
#include<sys/types.h> | |
#include<sys/socket.h> | |
#include<netinet/in.h> | |
#include<arpa/inet.h> | |
#include<unistd.h> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Pass the path to a hack file as a command-line argument | |
import sys | |
from collections import defaultdict | |
fobj = open(sys.argv[1]) | |
t = int(fobj.readline()) | |
print(t, flush=True) |