Skip to content

Instantly share code, notes, and snippets.

View andrewloable's full-sized avatar

Andrew Loable andrewloable

View GitHub Profile
@andrewloable
andrewloable / Program.cs
Created June 23, 2019 04:24
Olo - Pizza Exercise - c# .net code
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
namespace test_pizza
{
class Program
{
@andrewloable
andrewloable / Program.cs
Created June 23, 2019 05:48
Use a library compiled in Go in c# (.net)
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace GoSharedDLL
{
class Program
{
[DllImport("shared.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.StdCall)]
private static extern IntPtr ReturnReversedString(byte[] input);
@andrewloable
andrewloable / app.component.ts
Last active November 13, 2020 12:19
Sample grpc-web in angular
import { Component, OnInit } from '@angular/core';
import { grpc } from '@improbable-eng/grpc-web';
import { HelloReply, HelloRequest } from './grpc/src/proto/greet_pb';
import { Greeter } from './grpc/src/proto/greet_pb_service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})