Skip to content

Instantly share code, notes, and snippets.


Jonathan Pryor jonpryor

View GitHub Profile
View app.cs
using System;
using System.IO;
class App {
public static void Main (string[] args)
foreach (var file in args) {
var content = File.ReadAllText (file);
var lines = content.Split ('\n');
foreach (var line in lines) {
View tuples-and-linq.cs
using System;
using System.Collections.Generic;
using System.Linq;
public class Program
public static void Main()
var markers = new[]{
(a: 1, s: "a"),

Installation of Native Libraries

An Android .apk file can contain native libraries for one or more architectures. Historically, all native libraries for the target device are extracted at .apk installation time. This would result in two copies of native libraries on the target device: a set of native libraries which are stored compressed within the .apk, and a separate set of native libraries on the Android target filesystem.

Starting with Android v6.0 (API-23), Android added an ability for

View Scratch.Gxa1704-log.txt
This file has been truncated, but you can view the full file.
1>------ Skipped Build: Project: NativeLibrary, Configuration: Debug x86 ------
1>Project not selected to build for this solution configuration
2>Project 'Scratch.Gxa1704' is not up to date. Missing output file 'C:\Users\jopryo\source\repos\Scratch.Gxa1704\Scratch.Gxa1704\bin\Debug\Scratch.Gxa1704.dll'.
Restoring NuGet packages...
To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the NuGet Package Manager node and uncheck 'Allow NuGet to download missing packages during build.'
Running restore with 8 concurrent jobs.
Reading project file C:\Users\jopryo\source\repos\Scratch.Gxa1704\Scratch.Gxa1704\Scratch.Gxa1704.csproj.
Restoring packages for C:\Users\jopryo\source\repos\Scratch.Gxa1704\Scratch.Gxa1704\Scratch.Gxa1704.csproj...
Restoring packages for MonoAndroid,Version=v8.1...
View st.cs
// switch on type?
using System;
class App {
public static void Main ()
sbyte v;
if (TryConvert (42.0, out v)) {
Console.WriteLine ($"v={v}");
View classes.xml
deprecated="not deprecated"
View curl.cs
// Build with: csc curl.cs -r:System.Net.Http.dll /langversion:7.1
using System;
using System.IO;
using System.Net.Http;
using System.Threading.Tasks;
using TTask = System.Threading.Tasks.Task;
class App {
View radical.targets
<Project ToolsVersion="4.0" xmlns="">
<!-- Ankit: Override these! -->
<MonoTestAssembly Include="monodroid_corlib_test.dll">
View protobuf_x86_64-apple-darwin16.7.0.txt
uname -a
Darwin casper 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
git log --pretty=tformat:"%H - %s [%ar] [%d]" -1
ce28d4e5bfebff5cc727d624f222db13bf03646c - Merge pull request #1907 from LuaAndC/build-pkg-ignore-some-gitkeep [2 days ago] [ (HEAD -> mxe-upstream, mxe-upstream/master)]
lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true
ProductName: Mac OS X
ProductVersion: 10.12.6
BuildVersion: 16G29
autoconf --version 2>/dev/null | head -1
autoconf (GNU Autoconf) 2.69
You can’t perform that action at this time.