Skip to content

Instantly share code, notes, and snippets.

View ronnycsharp's full-sized avatar

Ronny ronnycsharp

View GitHub Profile
@aybarsyalcin
aybarsyalcin / IOpenApp.cs
Last active November 15, 2022 11:44
Open other app for Xamarin Forms
namespace YourApp.Interfaces
{
public interface IOpenApp
{
void OpenExternalApp();
}
}
@kus
kus / fixIOSAudioContext.js
Last active May 22, 2025 16:45
Fix iOS AudioContext on Safari not playing any audio. It needs to be "warmed up" from a user interaction, then you can play audio with it as normal throughout the rest of the life cycle of the page.
// Fix iOS Audio Context by Blake Kus https://gist.github.com/kus/3f01d60569eeadefe3a1
// MIT license
(function() {
window.AudioContext = window.AudioContext || window.webkitAudioContext;
if (window.AudioContext) {
window.audioContext = new window.AudioContext();
}
var fixAudioContext = function (e) {
if (window.audioContext) {
// Create empty buffer
@cab1729
cab1729 / ComplexFun.cs
Created July 20, 2012 19:08
C# Math trig functions using System.Numerics.Complex type
using System;
using System.Numerics;
namespace MathFun
{
/// <summary>
/// Trig functions for Complex numbers
/// </summary>
/// <remarks>
/// main reference: Schaum's Outlines: Complex Variables ISBN-13: 978-0070602304