Skip to content

Instantly share code, notes, and snippets.

View mbordash's full-sized avatar
💭
R&D mode

Michael Bordash mbordash

💭
R&D mode
View GitHub Profile
@mbordash
mbordash / gist:6e92781b7186d04fb39ab08273974970
Created April 28, 2025 13:05
Message Filtering Extension iOS Not Working
extension MessageFilterExtension: ILMessageFilterQueryHandling, ILMessageFilterCapabilitiesQueryHandling {
func handle(
_ capabilitiesQueryRequest: ILMessageFilterCapabilitiesQueryRequest,
context: ILMessageFilterExtensionContext,
completion: @escaping (ILMessageFilterCapabilitiesQueryResponse) -> Void
) {
os_log("Handling capabilities query", log: self.logger, type: .debug) // <-- this does not get called
let response = ILMessageFilterCapabilitiesQueryResponse()
response.transactionalSubActions = [.none]
response.promotionalSubActions = [.none]
Verifying that +mbordash is my blockchain ID. https://onename.com/mbordash
@mbordash
mbordash / SquareTable Google Charts
Last active November 9, 2015 00:26
Upsert.io Sample Google Charts
<!--Load the AJAX API-->
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
// Load the Visualization API and the piechart package.
google.load('visualization', '1.0', {'packages':['corechart']});
// Set a callback to run when the Google Visualization API is loaded.
google.setOnLoadCallback(drawChart);
@mbordash
mbordash / gist:86db2d70b78bf07405f3
Last active December 29, 2015 22:50
Upsert.io Sample Proxy Script
// Protect your API token with a server side json proxy script
$headers = array(
'Authorization: Bearer INSERT YOUR TOKEN HERE'
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
<?php
// increment a metric @ squaretable.io
$scope = "listens"
$key = "mediaId281";
$bearerToken = "YOUR SQUARETABLE.IO TOKEN"
$apiUrl = "http://api.squaretable.io/2.0/event/put?action=inc&scope=" . $scope . "&key=" . $key;