Skip to content

Instantly share code, notes, and snippets.

View jpobst's full-sized avatar

Jonathan Pobst jpobst

View GitHub Profile
if (Environment.Version.Major > 5) {
var apiCompat = new FileInfo (Path.Combine (ApiCompatPath, "Microsoft.DotNet.ApiCompat.dll"));
genApiProcess.StartInfo.FileName = "dotnet";
genApiProcess.StartInfo.Arguments = $"\"{apiCompat}\" ";
} else {
var apiCompat = new FileInfo (Path.Combine (ApiCompatPath, "Microsoft.DotNet.ApiCompat.exe"));
genApiProcess.StartInfo.FileName = apiCompat.FullName;
}
genApiProcess.StartInfo.Arguments += $"\"{contractAssembly.FullName}\" -i \"{TargetImplementationPath}\" --allow-default-interface-methods ";
Swift Trickery
Fresh Kill
Press the Attack
Race to the Grave
Rain of Arrows
Multi Pronged Assault
Foot Snare
A Moment's Peace
Solid Bow
Expose
diff --git a/mono.android-android-28/mcw/Android.Bluetooth.IBluetoothProfile.cs b/mono.android-android-28/mcw/Android.Bluetooth.IBluetoothProfile.cs
index ecff03c..1b63f92 100644
--- a/mono.android-android-28/mcw/Android.Bluetooth.IBluetoothProfile.cs
+++ b/mono.android-android-28/mcw/Android.Bluetooth.IBluetoothProfile.cs
@@ -268,6 +268,14 @@ namespace Android.Bluetooth {
[Register ("android/bluetooth/BluetoothProfile", "", "Android.Bluetooth.IBluetoothProfileInvoker", ApiSince = 11)]
public partial interface IBluetoothProfile : IJavaObject {
+ // Metadata.xml XPath field reference: path="/api/package[@name='android.bluetooth']/interface[@name='BluetoothProfile']/field[@name='EXTRA_PREVIOUS_STATE']"
+ [Register ("EXTRA_PREVIOUS_STATE")]

Keybase proof

I hereby claim:

  • I am jpobst on github.
  • I am jpobst (https://keybase.io/jpobst) on keybase.
  • I have a public key ASCyzNZ72iueltPmY1ahx0VXzTgGe90q3ADDZBYg89z4Xwo

To claim this, I am signing this object:

private void AddError (Project prj, string text, TaskErrorCategory category)
{
IVsSolution solution = (IVsSolution)package.GetVSService (typeof (IVsSolution));
IVsHierarchy hierarchy = null;
if (prj != null)
solution.GetProjectOfUniqueName (prj.UniqueName, out hierarchy);
ErrorTask task = new ErrorTask ();
<?xml version="1.0" encoding="utf-8"?>
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<needsprepopulate>true</needsprepopulate>
<name></name>
<summary></summary>
<version></version>
<url></url>
<license></license>
<type>Winexe</type>
<description></description>
public string MapFileName (string file)
{
string root = Engine.Session.ProgramStartInfo.ProjectDirectory;
if (file.StartsWith (root))
file = file.Substring (root.Length + 1);
return file;
}
@jpobst
jpobst / gist:727598
Created December 3, 2010 21:37
// Match US Social Security numbers // 123-45-6789 Regex ssn = new Regex (RegexHelper. Digits (3). Character ('-'). Digits (2). Character ('-'). Digits (4) ); // Match email addresses Regex email = new Regex (RegexHelper. AlphaNumeric (
// Match US Social Security numbers
// 123-45-6789
Regex ssn = new Regex (RegexHelper.
Digits (3).
Character ('-').
Digits (2).
Character ('-').
Digits (4)
);
// Create a class like this
public class AutoCursor : IDisposable
{
private Form form;
public AutoCursor (Form form)
{
this.form = form;