Skip to content

Instantly share code, notes, and snippets.

View yasith's full-sized avatar
🐢

Yasith Vidanaarachchi yasith

🐢
  • Google
  • Toronto, Canada
  • 16:52 (UTC -05:00)
View GitHub Profile
@yasith
yasith / ubuntu16_tensorflow_cuda8.sh
Last active August 17, 2017 05:20 — forked from ksopyla/ubuntu16_tensorflow_cuda8.sh
How to set up tensorflow with CUDA 8 cuDNN 5.1 in virtualenv with Python 3.5 on Ubuntu 16.04 http://ksopyla.com/2017/02/tensorflow-gpu-virtualenv-python3/
# This is shorthened version of blog post
# http://ksopyla.com/2017/02/tensorflow-gpu-virtualenv-python3/
# update packages
sudo apt-get update
sudo apt-get upgrade
#Add the ppa repo for NVIDIA graphics driver
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
@yasith
yasith / MyBot.java
Created September 29, 2010 06:47 — forked from anonymous/gai
import java.util.*;
public class MyBot {
// The DoTurn function is where your code goes. The PlanetWars object
// contains the state of the game, including information about all planets
// and fleets that currently exist. Inside this function, you issue orders
// using the pw.IssueOrder() function. For example, to send 10 ships from
// planet 3 to planet 8, you would say pw.IssueOrder(3, 8, 10).
//
// There is already a basic strategy in place here. You can use it as a