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
-- Built-in autocompletion | |
local lsp_au_group = vim.api.nvim_create_augroup('lsp_au_group', {clear = true}) | |
vim.api.nvim_create_autocmd({'LspAttach'}, { | |
callback = function() | |
local clients = vim.lsp.get_clients() | |
for _, client in ipairs(clients) do | |
local id = client.id | |
vim.lsp.completion.enable(true, id, 0, {autotrigger = true}) | |
end | |
end, |
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
cmake_minimum_required(VERSION 3.5) | |
set(CMAKE_CXX_STANDARD 17) | |
project(catch2_death_test_example LANGUAGES CXX VERSION 0.0.1) | |
include(FetchContent) | |
FetchContent_Declare( | |
Catch2 |
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
cmake_minimum_required(VERSION 3.5) | |
project(fakeit_example LANGUAGES CXX VERSION 0.0.1) | |
include(FetchContent) | |
FetchContent_Declare( | |
Catch2 | |
GIT_REPOSITORY https://github.com/catchorg/Catch2.git | |
GIT_TAG v3.0.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
using Distributions | |
using LinearAlgebra | |
using Plots | |
using Random | |
pyplot(); | |
# Training points | |
P = [ | |
1.0 1.0 |
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
using Distributions | |
using LinearAlgebra | |
using Plots | |
using Random | |
pyplot(); | |
N = 500; | |
M = 5; | |
ϵ = 1e-6 * rand() * I; |