Skip to content

Instantly share code, notes, and snippets.

View spouliot's full-sized avatar

Sebastien Pouliot spouliot

View GitHub Profile
@khalidabuhakmeh
khalidabuhakmeh / maui.md
Last active January 4, 2024 09:27
Installing MAUI with .NET 7 for non-VS Users on macOS

Installing MAUI with .NET 7 for non-VS Users

Clear NuGet Cache

Before continuting to the next step, let's clear some nuget caches that might get in the way.

dotnet nuget locals all --clear
@tebjan
tebjan / mkbundle_cygwin.sh
Last active February 20, 2021 09:20 — forked from shilrobot/package.sh
Updated script as of May 2013 to compile a Mono/.NET C# application into a native executable using mono's mkbundle with cygwin on Windows. Please comment if something does not work or you have an idea for improvement. Now with icon support.
#!/bin/bash
#
#Usage:
#1.) Install cygwin and make sure you select the following packages:
#- gcc-mingw
#- pkg-config
#- mingw-zlib1
#- mingw-zlib-devel
#
#2.) Install the following Mono release package: "Mono for Windows, Gtk#, and XSP"
@praeclarum
praeclarum / Dsp.cs
Created April 9, 2013 19:38
DSP functions for Xamarin.iOS bound to the Accelerate framework. See it in action by buying my Spectrogram app for iOS: https://itunes.apple.com/us/app/live-spectrogram/id630831185
using System;
using System.Runtime.InteropServices;
namespace Circuit
{
public static class Dsp
{
class FftSetupD : IDisposable
{
public IntPtr Handle;
public class MultilineEditElement : StringElement
{
static NSString skey = new NSString("multilineeditelement");
public MultilineEditElement(string caption, string val) : base(caption, val)
{
}
class MyViewController : UIViewController {
MultilineEditElement container;
@valryon
valryon / EncryptionHelper.cs
Last active December 14, 2015 22:39
I think I found an issue between Monotouch (iOS) and .NET 4. Using an encryption algorithm I have differents outputs due to a default value set in .NET and not in MonoTouch.
// This file is shared both with a MonoTouch iOS and ASP.NET MVC 3 + .NET 4 project.
// The result of Encrypt differs because of the default selected mode.
// See line 94 for information.
public static class EncryptionHelper
{
/// <summary>
/// Default key
/// </summary>
var target = UIATarget.localTarget();
var window = UIATarget.localTarget().frontMostApp().mainWindow ();
var table = window.tableViews () [0];
var results_cell = table.cells () [0]
var run_cell = table.cells () [1];
var passed = false;
var results = '';
run_cell.tap ();
@nicwise
nicwise / gist:2169082
Created March 23, 2012 09:45
Appirator
using System;
using System.Threading;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using MonoTouch.CoreFoundation;
namespace MobileAgent
{
public class Appirator
@stuartcarnie
stuartcarnie / main.m
Created March 4, 2011 19:59
Demonstrates we can now support limited JIT compilation on recent versions of iOS (assuming Apple approves entitlements at some future point)
//
// main.m
// ProtectTest
// Demonstrates newer versions of iOS now support PROT_EXEC pages, for just-in-time compilation.
//
// Must be compiled with Thumb disabled
//
// Created by Stuart Carnie on 3/4/11.
// Copyright 2011 Manomio LLC. All rights reserved.
//