Skip to content

Instantly share code, notes, and snippets.

@phasetr
phasetr / error log
Created June 16, 2020 23:11
VScode omnisharp error
--------------------------------------------------------------------------------
Razor.VSCode version 1.0.0-alpha3-5.0.0-preview.7.20309
--------------------------------------------------------------------------------
Razor's trace level is currently set to 'Verbose'
- To change Razor's trace level set 'razor.trace' to 'Off', 'Messages' or 'Verbose' and then restart VSCode.
- To report issues invoke the 'Report a Razor issue' command via the command palette.
-----------------------------------------------------------------------------------------------------------------------------
[Client - 7:42:18] Razor language server path: c:\Users\user\.vscode\extensions\ms-dotnettools.csharp-1.22.1\.razor\rzls.exe
[Client - 7:42:31] Starting Razor Language Server...
type 'a Tree =
| Node of int * 'a Tree * 'a * 'a (* height, left child, value, right child *) Tree
| Nil
(*
Notation:
h = height
x = value
l = left child
r = right child
@phasetr
phasetr / sample.rs
Created April 2, 2020 12:27
rust ndarray
// cargo-deps: serde, serde_derive, serde_yaml, ndarray
extern crate ndarray;
extern crate serde;
use ndarray::array;
use ndarray::prelude::*;
use ndarray::Array;
use ndarray::Array1;
fn main() {
let arr1: Array1<f64> = array![1.0, 2.0, 3.0, 4.0];