Skip to content

Instantly share code, notes, and snippets.

guest271314

Block or report user

Report or block guest271314

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:f8f3e1cf2427259dbfb0559527a25284
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@guest271314
guest271314 / firefox_webm.xml
Created May 5, 2019
Firefox getDisplayMedia MediaRecorder webm mkv2xml
View firefox_webm.xml
This file has been truncated, but you can view the full file.
<mkv2xml>
<EBML>
<EBMLVersion>1</EBMLVersion>
<EBMLReadVersion>1</EBMLReadVersion>
<EBMLMaxIDLength>4</EBMLMaxIDLength>
<EBMLMaxSizeLength>8</EBMLMaxSizeLength>
<DocType>webm</DocType>
<DocTypeVersion>2</DocTypeVersion>
<DocTypeReadVersion>2</DocTypeReadVersion>
@guest271314
guest271314 / chromium_webm.xml
Created May 5, 2019
Chromium getDisplayMedia MediaRecorder webm mkv2xml
View chromium_webm.xml
This file has been truncated, but you can view the full file.
<mkv2xml>
<EBML>
<EBMLVersion>1</EBMLVersion>
<EBMLReadVersion>1</EBMLReadVersion>
<EBMLMaxIDLength>4</EBMLMaxIDLength>
<EBMLMaxSizeLength>8</EBMLMaxSizeLength>
<DocType>webm</DocType>
<DocTypeVersion>4</DocTypeVersion>
<DocTypeReadVersion>2</DocTypeReadVersion>
@guest271314
guest271314 / copy-clipboard-data.html
Created Mar 10, 2019
Javascript - copy text string on click
View copy-clipboard-data.html
<!DOCTYPE html>
<html>
<head>
<style>
</style>
</head>
<body>
<span>text</span>
<button>click</button>
<div>other text</div>
@guest271314
guest271314 / speech-synthesis-end-event.js
Created Mar 8, 2019
Why does a SpeechSynthesisUtterance sometimes not fire an 'end' event in Chromium-based browsers?
View speech-synthesis-end-event.js
// https://stackoverflow.com/questions/54861046/why-does-a-speechsynthesisutterance-sometimes-not-fire-an-end-event-in-chromiu#
const button = document.createElement('button');
const arr = [];
button.innerHTML = 'click';
document.body.appendChild(button);
button.onclick = () => {
console.log('start script');
// button.disabled = true;
const utt = new SpeechSynthesisUtterance('e');
View answer-to-cheaper-by-the-dozen-phrase-origin.txt
Preface
[Gil Scott-Heron, Winter In America, Central Park Summerstage, NYC 6-27-10 (HD).][1]
> This come from an old African folk tale. I know this because it was
> told to me by some old Africans. You got to be careful where you get
> your information. See you can't get no old African folk tales from no
> young Chinese people.
View imageData
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
@guest271314
guest271314 / answer-to-what-does-farrakhan-mean-by-false-jews.txt
Created Jan 23, 2019
Answer to 'What does Farrakhan mean by “false Jews”?'
View answer-to-what-does-farrakhan-mean-by-false-jews.txt
Must preface this answer with the fact that do not believe in or practice any religion, "Abrahamic-based" or otherwise. From perspective here, all religions, are merely political organizations, without exception.
To the extent that "Jew" is a considered a practitioner of the religion Judaism religion and not a specific distinct group based on another other factors, to self-identify as Jew is simply to self-identify with a political organization.
If the premise is that to be Jewish or a Jew is considered by that individual to be more than simply believing or practicing a religion, that is a separate question which would require, at the outset, what that individual considers to be "Jewish" other than simply a political organization.
Therefore this answer is based on the political self-identification and organization "Jew", not belief in the unseen or a mystery "god" nor writings or spirituality attributed or connected to Judaism (religion, for individuals who take religion as something other than purely a
View generator-with-indexes.js
// https://stackoverflow.com/questions/53687210/how-to-iterate-over-a-generator-with-indexes
function* myGen(){
let i = 10;
while(i<20) {
i+=1;
yield i;
}
}
for(let [index, j] of [...myGen()].entries()) { //<-- I want .entries() but for a Generator
You can’t perform that action at this time.