I hereby claim:
- I am m0sa on github.
- I am m0sa (https://keybase.io/m0sa) on keybase.
- I have a public key ASAavKcbBv6nHLYVkk6S6ok_cEEKg0TWjww4sulsl1EfzAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // The MIT License (MIT) | |
| // | |
| // Copyright (c) 2016 Stack Exchange | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: |
chocho install sourcelink) and be sure it's in your pathcsi test.csxExample output:
v:\example> csi .\CompilationCrazy.csx
SourceLink 1.1.0
876aa6db6eb96d35bbdee9f1586d9f94ff90d928 v:\example\precompilation\obj\huge.cs
| class StringBuilderInterpolationOptimizer : CSharpSyntaxRewriter | |
| { | |
| private readonly SemanticModel _model; | |
| public StringBuilderInterpolationOptimizer(SemanticModel model) | |
| { | |
| _model = model; | |
| } | |
| // we use the semantic model to get the type information of the method being called | |
| private static bool CanRewriteSymbol(SymbolInfo symbolInfo, out bool appendNewLine) |
| <Query Kind="Program"> | |
| <NuGetReference>Microsoft.AspNet.Mvc</NuGetReference> | |
| <NuGetReference>Microsoft.CodeAnalysis.CSharp</NuGetReference> | |
| <Namespace>System.CodeDom.Compiler</Namespace> | |
| <Namespace>System.Web.Razor</Namespace> | |
| <Namespace>System.Web.WebPages.Razor</Namespace> | |
| <Namespace>Microsoft.CodeAnalysis</Namespace> | |
| <Namespace>Microsoft.CodeAnalysis.CSharp</Namespace> | |
| <Namespace>Microsoft.CodeAnalysis.Emit</Namespace> | |
| <Namespace>Microsoft.CodeAnalysis.Text</Namespace> |
| // ==UserScript== | |
| // @name SO Hangouts Authuser Redirect | |
| // @namespace http://m0sa.net/ | |
| // @version 1.1 | |
| // @description authuser=1 | |
| // @author m0sa | |
| // @include https://plus.google.com/hangouts/_/stackoverflow.com/* | |
| // @include https://hangouts.google.com/hangouts/_/stackoverflow.com/* | |
| // @grant none | |
| // ==/UserScript== |
| <Query Kind="Program"> | |
| <Reference><RuntimeDirectory>\System.IO.dll</Reference> | |
| <Reference><RuntimeDirectory>\System.Reflection.dll</Reference> | |
| <Reference><RuntimeDirectory>\System.Runtime.dll</Reference> | |
| <Reference><RuntimeDirectory>\System.Text.Encoding.dll</Reference> | |
| <Reference><RuntimeDirectory>\System.Threading.Tasks.dll</Reference> | |
| <NuGetReference Prerelease="true">Microsoft.CodeAnalysis</NuGetReference> | |
| <NuGetReference Prerelease="true">Microsoft.CodeAnalysis.Common</NuGetReference> | |
| <NuGetReference Prerelease="true">Microsoft.CodeAnalysis.CSharp</NuGetReference> | |
| <NuGetReference>protobuf-net</NuGetReference> |
| namespace ConsoleApplication1 | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| string foobar = _s("$foo$ bar", new { foo = Foo() }), baz = Baz(); | |
| } | |
| static string Foo() { return "Foo"; } |
| // the controler: | |
| public class RssController : Controller | |
| { | |
| private readonly IGoogleSettings _settings; | |
| public RssController(IGoogleSettings settings) | |
| { | |
| _settings = settings; | |
| } |
| import thread | |
| import time | |
| import zmq | |
| from zmq.core.socket import Socket | |
| # global zmg context | |
| context = zmq.Context() | |
| endpoint = "tcp://*:8888" | |
| # the subscriber thread function |