I hereby claim:
- I am allensarkisyan on github.
- I am allensarkisyan (https://keybase.io/allensarkisyan) on keybase.
- I have a public key ASDyK13vFKf0SciHaOIUD9OuEaSD1Op_Jk6mekClIZ6A-Ao
To claim this, I am signing this object:
FB.api('me/music.listens', function (response) { | |
function callback (rr) { console.log(rr); } | |
for (var i in response.data) { | |
if (response.data.hasOwnProperty(i)) { | |
console.log(response.data[i].id); | |
FB.api('/' + response.data[i].id, 'DELETE', callback); | |
} | |
} | |
console.log(response); |
// ISO 8601 Date Prototype - Usage example: (new Date).ISO8601(); | |
Date.prototype.ISO8601 = function() { | |
function wrap(n) { return (n < 10 ? '0' + n : n) } | |
var dt = this; | |
return dt.getUTCFullYear() + '-' + wrap(dt.getUTCMonth() + 1) + '-' + wrap(dt.getUTCDate()) + 'T' + wrap(dt.getUTCHours()) + ':' + wrap(dt.getUTCMinutes()); | |
}; |
var dtPattern = /^(\d{4})(-)?(\d\d)(-)?(\d\d)(T)?(\d\d)(:)?(\d\d)(:)?(\d\d)(\.\d+)?(Z|([+-])(\d\d)(:)?(\d\d))/; |
/ip(?:hone|[a|o]d)/gi |
var hlsCompatible = (function() { | |
try { | |
if (/ip(?:hone|[a|o]d)/gi.test(navigator.userAgent)) { return true; } | |
return (document.createElement('video').canPlayType('application/x-mpegURL').length > 0); | |
} catch(e) { | |
return false; | |
} | |
}()); |
/** | |
* @name - parseQueryString | |
* @author - Allen Sarkisyan | |
* @license - Open Source MIT License | |
* | |
* @description - Parses a query string into an Object. | |
* - Optionally can also parse location.search by invoking without an argument | |
*/ | |
function parseQueryString(queryString) { |
I hereby claim:
To claim this, I am signing this object:
/** | |
* @author Allen Sarkisyan | |
* @copyright 2013 | |
* @license Open Source MIT License | |
*/ | |
/** | |
* Assumes the frame rate is 23.98, 24, 25, 29.97 NDF, or 30 | |
* | |
* This pattern basically matches the hours being less then 24, the minutes, and seconds |
/** | |
* @name Web5Provider | |
* @author Allen Sarkisyan | |
* @description Web5 - React Context Provider | |
* @copyright 2023 | |
* @license Open Source MIT License | |
*/ | |
import { createContext, useContext, useRef, useState, useEffect } from 'react'; | |
import { Web5 } from '@tbd54566975/web5'; |