Following this link
I already have NVIDIA drivers and CUDA installed. Won't be explaining them here.
Steps:
$ git clone https://github.com/tensorflow/tensorflow
$ cd tensorflow
$ git checkout
- You need to install bazel. Follow these instructions
# SNAKES GAME | |
# Use ARROW KEYS to play, SPACE BAR for pausing/resuming and Esc Key for exiting | |
import curses | |
from curses import KEY_RIGHT, KEY_LEFT, KEY_UP, KEY_DOWN | |
from random import randint | |
curses.initscr() | |
win = curses.newwin(20, 60, 0, 0) |
Following this link
I already have NVIDIA drivers and CUDA installed. Won't be explaining them here.
Steps:
$ git clone https://github.com/tensorflow/tensorflow
$ cd tensorflow
$ git checkout
# First of all install python pip | |
sudo apt-get install python-pip | |
# Upgrading pip using `pip install -U pip` gave me errors after, | |
# so I will be avoiding that. | |
# Clone pytorch repo | |
git clone http://github.com/pytorch/pytorch | |
# Enter the folder |
$ sudo fdisk /dev/sda
Follow this link for more help: Link
$ sudo mkfs -t ext4 /dev/sda1
$ sudo mount /dev/sda1 /media/SSD_120/
$ sudo blkid | grep /dev/sda1 # To get the UUID of the disk
class Dict2Obj: | |
def __init__(self, json_data): | |
self.convert(json_data) | |
def convert(self, json_data): | |
if not isinstance(json_data, dict): | |
return | |
for key in json_data: | |
if not isinstance(json_data[key], dict): | |
self.__dict__.update({key: json_data[key]}) |
Create a new file of width: 960px and height: 600px, background color as white.
Create a new layer and draw a solid circle (frame 1), then duplicate it to next layer and move the circle right by 40 pixels. Repeat till you have 6 frames (frame 1 to frame 6). These frames are our subjects.
// Calculate Income tax based on new regime | |
function incomeAfterNewTaxDeductions(CTC) { | |
var initCostToCompany = CTC | |
var costToCompany = CTC | |
var totalTax = 0.0 | |
var new_tax_regime = { | |
1500000: 0.30, | |
1250000: 0.25, | |
1000000: 0.20, |
#include <stdio.h> | |
#define GET_MACRO(_1,_2,NAME,...) NAME | |
/** | |
* @brief Info logs | |
* | |
*/ | |
// prints date, time, tag name, INFO in bold green color before actual message | |
#define LOGI2(tag, ...) printf("%s %s [%s]", __DATE__, __TIME__, tag); printf(" \033[1;32mINFO\033[0m "); printf(__VA_ARGS__); fflush(stdout); |