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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net472</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<Compile Include="Program.fs" /> | |
</ItemGroup> |
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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": ".NET Core Launch (console)", | |
"type": "coreclr", | |
"request": "launch", |
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
PS C:\Users\user1\Downloads\include-what-you-use\build> cmake .. -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_PREFIX_PATH="C:/Program Files/LLVM/lib" -DCMAKE_BUILD_TYPE=Release | |
-- IWYU: out-of-tree configuration | |
-- The C compiler identification is Clang 13.0.0 with GNU-like command-line | |
-- The CXX compiler identification is Clang 13.0.0 with GNU-like command-line | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Check for working C compiler: C:/Program Files/LLVM/bin/clang.exe - skipped | |
-- Detecting C compile features | |
-- Detecting C compile features - done | |
-- Detecting CXX compiler ABI info |
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
PS C:\Users\william\Downloads\include-what-you-use\build> cmake .. -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_PREFIX_PATH="C:/Program Files/LLVM/lib" | |
-- IWYU: out-of-tree configuration | |
-- The C compiler identification is Clang 12.0.0 with GNU-like command-line | |
-- The CXX compiler identification is Clang 12.0.0 with GNU-like command-line | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Check for working C compiler: C:/Program Files/LLVM/bin/clang.exe - skipped | |
-- Detecting C compile features | |
-- Detecting C compile features - done | |
-- Detecting CXX compiler ABI info |
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
// Learn more about F# at http://fsharp.org | |
open System | |
open System.Runtime.InteropServices | |
// let SL = StructAttribute() | |
[<StructLayout(LayoutKind.Sequential)>] | |
[<Struct>] |
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
Show hidden characters
{ | |
"env": { | |
"browser": true, | |
"es6": true | |
}, | |
"extends": [ | |
"react-app", | |
"plugin:react/recommended", | |
"airbnb" | |
], |
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
module InteropWithNative = | |
[<DllImport(@"/tmp/hellofsharp/build/liblib.dylib", CallingConvention = CallingConvention.Cdecl)>] | |
extern int fibbo(int) |
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
https://rix0r.nl/blog/2015/08/13/cmake-guide/ |
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
int findLastSlash(const char *filepath, int len_filepath){ | |
int idx = 0; | |
int location = -1; | |
while(filepath[idx] != '\0' && idx < len_filepath){ | |
if(filepath[idx] == '\\' || filepath[idx] == '/'){ | |
location = idx; | |
} | |
idx++; | |
} |
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
// return an array | |
fn get_buff() -> [char; 3]{ | |
return ['a', 'b', 'c'] | |
} | |
// even better return a vector! | |
fn get_buff_vec() -> Vec<u8>{ | |
// vec! is a macro | |
return vec![0u8; 16]; | |
} |
NewerOlder