Skip to content

Instantly share code, notes, and snippets.

Michel Bretschneider embix

Block or report user

Report or block embix

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View filter_tuples.fs
let isEmpty (sc:IEnumerable<Char>) =
//Seq.isEmpty (sc)
let input =
|> (fun (i) -> (i.ToString(),i))
|> (fun (s,i) -> (s |> id,i))
let output =
embix / KSP_kRPC_GDLV3_KEO.cs
Last active Jan 5, 2018
Kerbal Space Program: get GDLV3 into low Kerbin orbit, release payload and deorbit booster (works but needs tuning: final orbit of payload was 72720m/118675m), tested in LINQPad
// fetch Google.Protobuf and KRPC.Client from nuget gallery
// namespace imports:
// removed due to ambiguity with linq expressions: KRPC.Client.Services.KRPC
class GDLV3_To_KEO
public static readonly System.Net.IPAddress kspKrpcServer = System.Net.IPAddress.Parse("ipv4/ipv6 of KSP with kRPC");
embix / KSP_kRPC_spike
Created Jan 5, 2018
try suborbital flight in KSP controlled via kRPC, tested in LINQPad with GDLV3 (Stock)
View KSP_kRPC_spike
// fetch Google.Protobuf and KRPC.Client from nuget gallery
// namespace imports:
// removed due to ambiguity with linq expressions: KRPC.Client.Services.KRPC
// based on, LGPL
class SubOrbitalFlight
View SpriteUVToShader.cs
// c# companion script
// SpriteUVToShader.cs -------------------------------------------------------------------------------------------------------------------------------- //
// Save you your project, add to your SpriteRenderer gameObject
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
View FSharpSuave.linq
<Query Kind="FSharpProgram">
open System
open System.Net
open System.Threading
open Suave
embix / SimpleHTTPServer.cs
Created Nov 8, 2017 — forked from aksakalli/SimpleHTTPServer.cs
SimpleHTTPServer in C#
View SimpleHTTPServer.cs
// MIT License - Copyright (c) 2016 Can Güney Aksakalli
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Net;
using System.IO;
embix / YoutubeApiV3Spike.linq.cs
Created May 23, 2017
qnd youtube api v3 video duration stats
View YoutubeApiV3Spike.linq.cs
<Query Kind="Program">
View dnspy_shell_extension.reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\exefile\shell\Decompile with dnSpy]
[HKEY_CLASSES_ROOT\exefile\shell\Decompile with dnSpy\command]
@="\"C:\\Tools\\dnSpy\\dnSpy.exe\" \"%1\""
[HKEY_CLASSES_ROOT\dllfile\shell\Decompile with dnSpy]
[HKEY_CLASSES_ROOT\dllfile\shell\Decompile with dnSpy\command]
embix / ExternalReferenceLinksProviderComponent.cs A simple SandCastle BuildComponent for replacing unknown type references with links from XML database
View ExternalReferenceLinksProviderComponent.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition.Hosting;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;
using System.Xml;
using System.Xml.Linq;
embix /
Created Sep 1, 2016 — forked from mwhite/
The Ultimate Git Alias Setup

The Ultimate Git Alias Setup

If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.

Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.

The simplest way to add an alias for a specific git command is to use a standard bash alias.

# .bashrc
You can’t perform that action at this time.