This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Browser compat | |
| window.AudioContext = window.AudioContext || window.webkitAudioContext; | |
| window.RTCPeerConnection = window.RTCPeerConnection || window.webkitRTCPeerConnection || window.mozRTCPeerConnection; | |
| navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia; | |
| var key = window.location.hash.substring(1); | |
| var audio_context = new AudioContext(); | |
| var local_output = audio_context.createMediaStreamDestination(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @param $http2ch the curl connection | |
| * @param $http2_server the Apple server url | |
| * @param $apple_cert the path to the certificate | |
| * @param $app_bundle_id the app bundle id | |
| * @param $message the payload to send (JSON) | |
| * @param $token the token of the device | |
| * @return mixed the status code (see https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/APNsProviderAPI.html#//apple_ref/doc/uid/TP40008194-CH101-SW18) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Pre-requisite: You have to know your last commit message from your deleted branch. | |
| git reflog | |
| # Search for message in the list | |
| # a901eda HEAD@{18}: commit: <last commit message> | |
| # Now you have two options, either checkout revision or HEAD | |
| git checkout a901eda | |
| # Or | |
| git checkout HEAD@{18} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * 1) Download CocoaHTTPServer from Github: https://github.com/robbiehanson/CocoaHTTPServer | |
| * 2) Include the downloaded source (except the samples) in your project | |
| * 3) Define the SCREENCAST macro for the target/configuration you want to enable the screencast for (SCREENCAST=1) | |
| * 4) Add the code below to your main.m file before the main() method | |
| */ | |
| #if SCREENCAST | |
| #import "HTTPServer.h" | |
| #import "HTTPConnection.h" |