Skip to content

Instantly share code, notes, and snippets.

/* Implementation of HTML Timers (setInterval/setTimeout) based on sleep.
*
* This file is provided under the following terms (MIT License):
* 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:
*
Pod::Spec.new do |s|
s.name = "OvershareKit"
s.version = "1.1.0"
s.summary = "A soup-to-nuts sharing library for iOS."
s.homepage = "https://github.com/overshare/overshare-kit"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { "Jared Sinclair" => "[email protected]", "Justin Williams" => "[email protected]" }
s.source = { :git => "https://github.com/overshare/overshare-kit.git", :tag => s.version.to_s }
s.platform = :ios, '7.0'
s.requires_arc = true
@mvarie
mvarie / WhereAmIRunning.swift
Last active September 16, 2020 10:33
Detects whether we're running in a Simulator, TestFlight Beta or App Store build
//
// WhereAmIRunning.swift
// https://gist.github.com/mvarie/63455babc2d0480858da
//
// ### Detects whether we're running in a Simulator, TestFlight Beta or App Store build ###
//
// Based on https://github.com/bitstadium/HockeySDK-iOS/blob/develop/Classes/BITHockeyHelper.m
// Inspired by http://stackoverflow.com/questions/18282326/how-can-i-detect-if-the-currently-running-app-was-installed-from-the-app-store
// Created by marcantonio on 04/11/15.
//
@mvarie
mvarie / changed.diff
Created September 8, 2020 00:03 — forked from kapejod/changed.diff
How i have built WebRTC for tvOs (some time ago....might not apply anymore)
diff --git a/webrtc/base/posix.cc b/webrtc/base/posix.cc
index 0eb24ee..7e48273 100644
--- a/webrtc/base/posix.cc
+++ b/webrtc/base/posix.cc
@@ -44,7 +44,7 @@ enum {
bool RunAsDaemon(const char *file, const char *const argv[]) {
// Fork intermediate child to daemonize.
- pid_t pid = fork();
+ pid_t pid = -1;