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
@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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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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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
@guest271314
guest271314 / YourDefintionOfRace.txt
Created Sep 3, 2018
What is your definition of race in 140 characters or less?
View YourDefintionOfRace.txt
a means of organizing social relations ... to establish and maintain political and economic domination @_joannabrooks #YourDefinitionOfRace
View breakableReturnableThrowableAsyncIterable.js
const o = {
value: new Map,
done: false,
async * gen(...props) {
while (!this.done) {
if (this.value.size && !this.done) {
try {
for (const [key, val] of this.value) {
// yield* [{key, value: await Promise.all([].concat(val).map(prop => typeof prop === "function" ? prop() : prop)).then(values => { this.value.delete(key); return values }).catch(err => {console.log(err); return {error:[key, err]}})}];
// does not interrupt immediately when `this.done` is set to `true`
You can’t perform that action at this time.