Skip to content

Instantly share code, notes, and snippets.

View patrickjquinn's full-sized avatar

Pat Quinn patrickjquinn

View GitHub Profile
@patrickjquinn
patrickjquinn / PlaybackAzureMediaPlayer.ts
Last active November 4, 2021 10:28
A generalised Typescript breakdown for using Azure Media Player to play video by passing it's url with a AMP manifest returned.
// TS Interface https://amp.azure.net/libs/amp/latest/docs/
// CSS Library to include <link href="//amp.azure.net/libs/amp/latest/skins/amp-default/azuremediaplayer.min.css" rel="stylesheet">
// JS Library to include <script src= "//amp.azure.net/libs/amp/latest/azuremediaplayer.min.js"></script>
// Google Analytics for AMP https://docs.microsoft.com/en-us/samples/azure-samples/media-services-javascript-azure-media-player-google-analytics-plugin/media-services-javascript-azure-media-player-google-analytics-plugin/
const videoPlayerId: string = '<Your document ID for the Player>'
const PlayOptions: Record<string, any> = {
autoplay: true,
controls: true,
-- Journal begins at Fri 2021-10-08 23:27:24 IST, ends at Tue 2021-10-12 10:58:25 IST. --
Oct 12 09:24:38 ayaneo kernel: Linux version 5.14.7-arch1-1-pds (linux-pds@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP PREEMPT Sun, 10 Oct 2021 13:34:56 +0000
Oct 12 09:24:38 ayaneo kernel: Command line: BOOT_IMAGE=/vmlinuz-linux-pds root=UUID=af3a1996-50f5-4c11-ae7e-bb7f3007623d rw rootflags=subvol=root fbcon=rotate:1 quiet splash fbcon=rotate_all:1 quiet
Oct 12 09:24:38 ayaneo kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Oct 12 09:24:38 ayaneo kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Oct 12 09:24:38 ayaneo kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
Oct 12 09:24:38 ayaneo kernel: x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
Oct 12 09:24:38 ayaneo kernel: x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'compacted' format.
Oct 12 09:24:38 ayaneo kernel: signal: max sigframe size: 1776
Oc
[ 0.000000] Linux version 5.14.7-arch1-1-pds (linux-pds@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP PREEMPT Sun, 10 Oct 2021 13:34:56 +0000
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-linux-pds root=UUID=af3a1996-50f5-4c11-ae7e-bb7f3007623d rw rootflags=subvol=root fbcon=rotate:1 quiet splash fbcon=rotate_all:1 quiet
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'compacted' format.
[ 0.000000] signal: max sigframe size: 1776
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
[ 0.000000] Linux version 5.14.7-arch1-1-pds (linux-pds@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP PREEMPT Sun, 10 Oct 2021 13:34:56 +0000
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-linux-pds root=UUID=af3a1996-50f5-4c11-ae7e-bb7f3007623d rw rootflags=subvol=root fbcon=rotate:1 quiet splash fbcon=rotate_all:1 quiet
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'compacted' format.
[ 0.000000] signal: max sigframe size: 1776
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
00:000 00:000 OCUI: Failed to load images
00:019 00:019 OC: External interface failure, fallback to builtin - Unsupported
03:627 03:608 AAPL: [EB|#LOG:INIT] 2021-01-06T16:32:42
03:643 00:016 AAPL: [EB|#VERSION] boot.efi 422.140.3~2 (Official), built 2020-06-07T17:22:20-0700
03:660 00:016 AAPL: [EB|#BUILD] BUILD-INFO[298]:{"DisplayName":"boot.efi","DisplayVersion":"422.140.3~2","RecordUuid":"B6FD6584-F0DA-41E8-9542-FAD5E7448407","BuildTime":"2020-06-07T17:22:20-0700","ProjectName":"efiboot","ProductName":"boot.efi","SourceVersion":"422.140.3","BuildVersion":"2","BuildConfiguration":"Release","BuildType":"Official"}
03:678 00:017 AAPL: [EB|#H:IS] 0
03:694 00:016 AAPL: [EB|#WL:MODE] 0
03:712 00:017 AAPL: [EB|#CONFIG:SRC] <default>
03:729 00:016 AAPL: [EB|#CONFIG| 0] boot-save-log : 0x0000000000000002 (0x0000000000000002 < 0xFFFFFFFFFFFFFFFF) <default>
03:747 00:018 AAPL: [EB|#CONFIG| 1] wake-save-log : 0x0000000000000002 (0x0000000000000002 < 0x0000000000000002) <default>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>Add</key>
<array>
<dict>
<key>Comment</key>
@patrickjquinn
patrickjquinn / pubsub.js
Created September 10, 2019 10:55
Kony Pub Sub Pattern
// Setting up your message types
const CHAT_TYPE_NEW_INBOUND = "CHAT_TYPE_NEW_INBOUND";
const CHAT_TYPE_NEW_OUTBOUND = "CHAT_TYPE_NEW_OUTBOUND";
// Setting up the pub/sub
let pubSubDelegate = {
observers: [],
addObserver: function(observer) {
this.observers.push(observer);
function chartSelected() {
let dataSelect = Form1.chartsSegment.selectedRowItems[0];
getPowerBIIframe(dataSelect.Id);
}
function getPowerBIIframe(reportid){
let serviceName = "PowerBIServices";
let integrationClient = KNYMobileFabric.getIntegrationService(serviceName);
operationName = "getReportEmbed";
data= {"key": CLIENT_SECRET,"report": reportid};
let res = [];
let globalResults = {};
function getResultsByCountry(countryName) {
let countryData = [];
for (let i = 0; i < globalResults.length; i++) {
if (globalResults[i].BuyerCountry.toUpperCase() === countryName.toUppercase()) {
countryData.push(globalResults[i]);
}
}