Skip to content

Instantly share code, notes, and snippets.

callmekohei /
Last active January 18, 2019 08:57


cpp code ( nativedll.cpp )

#include <stdio.h>
extern "C" void __attribute__((visibility("default"))) HelloWorld()
printf("Hello world, invoked by F#!\n");
dragon788 /
Last active March 24, 2024 07:57 — forked from atenni/
How to permalink to a gist's raw file

Problem: When linking to the raw version of a gist, the link changes with each revision.


To return the first file from a gist:[gist_user]/[gist_id]/raw/

To get a file from multi–file gist:[gist_user]/[gist_id]/raw/[file_name]

vbfox / CreateRelativePath.cs
Last active March 21, 2023 07:31
Make a path relative in C# and F#
using System;
using System.IO;
static class RelativePath
private static string[] GetPathPart(string path)
return path
.TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar)
.Split(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);