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
###################################################################### | |
# Notes: | |
# Made for Ubuntu 16.04 computer that supports CUDA 8.0 | |
###################################################################### | |
# Setup Vim | |
sudo apt-get install vim curl | |
curl https://raw.githubusercontent.com/sauhaardac/ConfigFiles/master/.vimrc > ~/.vimrc | |
cd ~ |
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
# Run this after a fresh flashing of JetPack 3.0 on a Jetson TX1 | |
# NEED TO BE LOGGED INTO TO nvidia USER ACCOUNT WITH PASSWORD OF: nvidia | |
sudo c_rehash /etc/ssl/certs | |
sudo dhclient wlan0 | |
############################# Install Karl's Repository ############################# | |
sudo apt-get --assume-yes install git | |
git clone https://github.com/karlzipser/kzpy3.2.git kzpy3 |
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
#!/bin/bash | |
# Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions | |
# are met: | |
# * Redistributions of source code must retain the above copyright | |
# notice, this list of conditions and the following disclaimer. | |
# * Redistributions in binary form must reproduce the above copyright |
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
# Package generated configuration file | |
# See the sshd_config(5) manpage for details | |
# What ports, IPs and protocols we listen for | |
Port 1022 | |
# Use these options to restrict which interfaces/protocols sshd will bind to | |
#ListenAddress :: | |
#ListenAddress 0.0.0.0 | |
Protocol 2 | |
# HostKeys for protocol version 2 |
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
nvidia-docker run -it -v /:/hostroot -w /hostroot/$PWD tpankaj/bdd-pytorch $@ |
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
# The data, shuffled and split between train and test sets: | |
(x_train, y_train), (x_test, y_test) = cifar10.load_data() | |
x_train = x_train[0:5000] | |
y_train = y_train[0:5000] | |
x_test = x_test[0:1000] | |
y_test = y_test[0:1000] |
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
from os import listdir | |
from os.path import isfile, join | |
import os | |
import json | |
import progressbar | |
from multiprocessing import Pool | |
import time, tqdm, random | |
from collections import deque | |
import numpy as np |
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
from sseclient import SSEClient | |
import requests | |
from queue import Queue | |
import json | |
import threading | |
import socket | |
class ClosableSSEClient(SSEClient): |
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
20.9.21.223 |
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
BufferedReader f = new BufferedReader(new FileReader("maze")); | |
StringTokenizer st = new StringTokenizer(f.readLine()); | |
int r = Integer.parseInt(st.nextToken()); | |
int c = Integer.parseInt(st.nextToken()); | |
String maze[][] = new String[r][c]; | |
Deque<Point> q = new LinkedList<Point>(); | |
try { | |
if (arg.incoordinate) { |
OlderNewer