Skip to content

Instantly share code, notes, and snippets.

@gunters63
gunters63 / gist:3c8798de46fa469e1ce06966df017ca8
Created January 28, 2022 09:17
ES6 patch protoc (for commit a1d8f8f9)
From 4f7e5abe0018f96234734c617dcab5286c7935f2 Mon Sep 17 00:00:00 2001
From: Gunter Spranz <gunter@gspranz.de>
Date: Tue, 16 Mar 2021 11:13:38 +0700
Subject: [PATCH] Patched for ES6 import style support
---
.../protobuf/compiler/js/js_generator.cc | 33 +++++++++++++++++--
.../protobuf/compiler/js/js_generator.h | 3 ++
2 files changed, 34 insertions(+), 2 deletions(-)
/**
* @fileoverview gRPC-Web generated client stub for AtlasCopco.Enso.Contracts.ProcessData
* @enhanceable
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
import * as jspb from 'google-protobuf'
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
export class Result extends jspb.Message {
getTag(): string;
setTag(value: string): Result;
getValue(): string;
// source: processData.proto
/**
* @fileoverview
* @enhanceable
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
@gunters63
gunters63 / Fruit2.cs
Last active March 15, 2020 13:43
Immutable classes
namespace ConsoleApp2
{
public class Fruit2
{
public string Color { get; }
public int SkinThickness { get; }
public static Fruit2 Create(Optional<string> color = default, Optional<int> skinThickness = default)
{
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst
c
Set-CornerNavigationOptions -DisableUpperRightCornerShowCharms -DisableUpperLeftCornerSwitchApps -DisableUsePowerShellOnWinX
Enable-RemoteDesktop
cinst VisualStudio2013Professional -InstallArguments WebTools
cinst vs2013.4