![]() |
This file contains hidden or 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
| # Add apt.llvm.org repository and install clang | |
| wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - | |
| sudo apt-add-repository "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch main" | |
| sudo apt-get update | |
| sudo apt-get install -y clang clang-format clang-tidy lldb libc++-8-dev libc++abi-8-dev | |
| # Check version | |
| clang --version | |
| clang++ --version |
This file contains hidden or 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
| # SARSA-lambda with Gaussian radial basis functions for action-value approximation | |
| # Implemented for the OpenAI gym mountain-car environment | |
| # Written by Evan Gravelle | |
| # 7/28/2016 | |
| import gym | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| # Initializations |
This file contains hidden or 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
| # Copyright (c) 2014-2023 Florian Wolters | |
| # MIT License | |
| cmake_minimum_required(VERSION 3.26.3) | |
| project( | |
| "hello_boost_with_cmake" | |
| VERSION 2.0.0 | |
| LANGUAGES CXX) |
This file contains hidden or 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
| #include <wb.h> | |
| // Check ec2-174-129-21-232.compute-1.amazonaws.com:8080/mp/6 for more information | |
| #define wbCheck(stmt) do { \ | |
| cudaError_t err = stmt; \ | |
| if (err != cudaSuccess) { \ | |
| wbLog(ERROR, "Failed to run stmt ", #stmt); \ | |
| return -1; \ |
This file contains hidden or 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
| %!TEX TS-program = xelatex | |
| %!TEX encoding = UTF-8 Unicode | |
| % 以上设定默认使用 XeLaTeX 编译,并指定 Unicode 编码,供 TeXShop 自动识别 | |
| % XeLaTeX 示例 | |
| \documentclass[12pt]{article} | |
| % XeTeX 配合 fontspec 可以非常方便的设置字体 |
