Skip to content

Instantly share code, notes, and snippets.

View AntonNik0laev's full-sized avatar
💭
coding

Anton Nikolaev AntonNik0laev

💭
coding
View GitHub Profile
//module A : >cl /c /experimental:module .\ModuleA.ixx
module A;
#include <iostream>
export int f(int x) {
return x * 2;
}
export class C {
public:
typedef std::map<std::string, std::string> TQuery;
struct Uri
{
std::string scheme;
std::string host;
std::string path;
TQuery query;
};
BOOST_FUSION_ADAPT_STRUCT(
Uri,
@AntonNik0laev
AntonNik0laev / dumpsd.cs
Created October 20, 2015 21:18
display sd information
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.Eventing.Reader;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Security.AccessControl;
using System.Security.Principal;
using System.Text;
@AntonNik0laev
AntonNik0laev / gist:55e2ddba436f229a533d
Created February 10, 2015 16:05
opengl random chart
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;
using System;
using System.Reflection;
using System.Reflection.Emit;
namespace ConsoleApplication3.Test
{
static class EntityPtr
{
private static readonly IEntityPtr converter = CreateConverter();
.assembly EntityPtr { }
.class public System.Runtime.CLR.EntityPtr
{
.method public static native int ToPointer<TType> ( !!TType input)
{
ldarg.0
conv.i4
ldc.i4 4