Install Google Cloud's CLI, gcloud, on your machine: https://cloud.google.com/sdk/downloads
Just grab a version and wget it. Then run instructions on the website to install.
Install gsutil: pip install gsutil.
Authenticate: gsutil config.
| "*": | |
| Repl: {} | |
| "activate-power-mode": | |
| autoToggle: false | |
| "atom-beautify": | |
| c: | |
| default_beautifier: "clang-format" | |
| cpp: | |
| default_beautifier: "clang-format" | |
| general: |
| #!/bin/bash | |
| # Basic environment stuff | |
| sudo apt-get install -y \ | |
| software-properties-common apt-utils build-essential linux-headers-$(uname -r) | |
| # NVIDIA Drivers | |
| sudo add-apt-repository ppa:graphics-drivers/ppa -y | |
| sudo apt-get update |
Install Google Cloud's CLI, gcloud, on your machine: https://cloud.google.com/sdk/downloads
Just grab a version and wget it. Then run instructions on the website to install.
Install gsutil: pip install gsutil.
Authenticate: gsutil config.
| #include <cudnn.h> | |
| #include <cassert> | |
| #include <cstdlib> | |
| #include <iostream> | |
| #include <opencv2/opencv.hpp> | |
| #define checkCUDNN(expression) \ | |
| { \ | |
| cudnnStatus_t status = (expression); \ | |
| if (status != CUDNN_STATUS_SUCCESS) { \ |
| #include <cudnn.h> | |
| #include <cassert> | |
| #include <cstdlib> | |
| #include <iostream> | |
| #include <opencv2/opencv.hpp> | |
| cv::Mat load_image(const char* image_path) { | |
| cv::Mat image = cv::imread(image_path, CV_LOAD_IMAGE_COLOR); | |
| image.convertTo(image, CV_32FC3); | |
| cv::normalize(image, image, 0, 1, cv::NORM_MINMAX); |
| import keras.backend as K | |
| import matplotlib.pyplot as plot | |
| import numpy as np | |
| import tensorflow as tf | |
| from keras.datasets import mnist | |
| from keras.layers import (Activation, BatchNormalization, Conv2D, Dense, | |
| Flatten, Input, LeakyReLU, Reshape, UpSampling2D) | |
| from keras.models import Model | |
| from keras.optimizers import Adam |
| import os | |
| import keras.backend as K | |
| import matplotlib.pyplot as plot | |
| import numpy as np | |
| import tensorflow as tf | |
| from keras.datasets import mnist | |
| from keras.initializers import TruncatedNormal | |
| from keras.layers import (Activation, BatchNormalization, Conv2D, | |
| Conv2DTranspose, Dense, Input, LeakyReLU, |
| #!/usr/bin/env python3 | |
| import argparse | |
| import math | |
| import numpy as np | |
| import scipy.misc | |
| import time | |
| def generate_rectangle(x_0, y_0, width, height, color, max_dimension): |
| // Clang includes | |
| #include "clang/AST/ASTConsumer.h" | |
| #include "clang/AST/ASTContext.h" | |
| #include "clang/AST/Expr.h" | |
| #include "clang/ASTMatchers/ASTMatchFinder.h" | |
| #include "clang/ASTMatchers/ASTMatchers.h" | |
| #include "clang/Basic/Diagnostic.h" | |
| #include "clang/Basic/SourceLocation.h" | |
| #include "clang/Frontend/FrontendAction.h" | |
| #include "clang/Rewrite/Frontend/FixItRewriter.h" |
| #ifndef USE_OVERRIDE_HPP | |
| #define USE_OVERRIDE_HPP | |
| // Clang includes | |
| #include "clang/AST/AST.h" | |
| #include "clang/AST/ASTConsumer.h" | |
| #include "clang/AST/ASTContext.h" | |
| #include "clang/AST/AttrIterator.h" | |
| #include "clang/AST/Decl.h" | |
| #include "clang/AST/DeclCXX.h" |