sudo apt-key adv --keyserver keyserver.ubuntu.com --recv DF7D54CBE56151BF
DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
CODENAME=$(lsb_release -cs)
echo "deb http://repos.mesosphere.com/${DISTRO} ${CODENAME} main" | sudo tee /etc/apt/sources.list.d/mesosphere.list
sudo apt-get -y update
sudo apt-get -y install mesos
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
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv DF7D54CBE56151BF | |
DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]') | |
CODENAME=$(lsb_release -cs) | |
echo "deb http://repos.mesosphere.com/${DISTRO} ${CODENAME} main" | sudo tee /etc/apt/sources.list.d/mesosphere.list | |
sudo apt-get -y update | |
sudo apt-get -y install mesos marathon |
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
/* | |
yarn add aws-amplify aws-amplify-react | |
*/ | |
/* Add Imports */ | |
import Amplify, { Auth } from "aws-amplify"; | |
import { withAuthenticator } from "aws-amplify-react"; | |
/* Add following code outside App component */ |
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
BannerId | LastName | FirstName | ||
---|---|---|---|---|
B00123456 | Doe | John | john.doe@email.com | |
B00123789 | Doe | Jane | jane.doe@email.com | |
B00789123 | Christy | Agatha | cagatha@company.com | |
B00456789 | Brown | Dan | brownd@vinci.com |
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
// store in .vscode/tasks.json or in .config/Code/User/tasks.json | |
// for global user space. | |
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Build Tex to PDF", | |
"type": "process", |
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 flask import jsonify, make_response | |
import requests | |
import logging | |
import datetime | |
from google.cloud import firestore | |
db = firestore.Client("severless-assignments") | |
logger = logging.getLogger() |
Memory Optimization (Christer Ericson, GDC 2003)
http://realtimecollisiondetection.net/pubs/GDC03_Ericson_Memory_Optimization.ppt
Cache coherency primer (Fabian Giesen)
https://fgiesen.wordpress.com/2014/07/07/cache-coherency/
Code Clinic 2015: How to Write Code the Compiler Can Actually Optimize (Mike Acton)
http://gdcvault.com/play/1021866/Code-Clinic-2015-How-to
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
git clone https://github.com/llvm/llvm-project.git | |
cd llvm-project | |
conda install conda-forge::ncurses | |
/// Above required for libtinfo.6.dylib which installs to lib in your conda directory. | |
/// Ex: ~/miniconda3/lib/libtinfo.6.dylib | |
set environment variable CONDA_LIBRARY_PATH to that lib folder (here. ~/miniconda3/lib). |
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
template <typename T, | |
size_t N, | |
template <typename U> class PtrTraits = DefaultPtrTraits, | |
typename index_t = int64_t> | |
class TensorAccessorBase { | |
public: | |
typedef typename PtrTraits<T>::PtrType PtrType; | |
TensorAccessorBase(PtrType data_, const index_t* strides_) | |
: data_(data_), strides_(strides_) {} |
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
# Hardware Specs: https://www.ovhcloud.com/en-ca/bare-metal/advance/adv-1/ | |
[stages.headers] | |
downloader_max_concurrent_requests = 100 | |
downloader_min_concurrent_requests = 5 | |
downloader_max_buffered_responses = 100 | |
downloader_request_limit = 1000 | |
commit_threshold = 10000 | |
[stages.total_difficulty] | |
commit_threshold = 200000 |