Skip to content

Instantly share code, notes, and snippets.

Avatar
🖊️
🍍🍎🖊️

Benjamin Gruenbaum benjamingr

🖊️
🍍🍎🖊️
View GitHub Profile
View gist:5427228
/*
*
* What Im trying to get to work
*
*/
function playersGameName(options){
// stuff in here to init whatevs.
}
View gist:5612583
Here is some `Code` and words. This is more random wody stuff, `some code` suddenly a widd more some more `Other Code` which makes the above code seems `Related` although it is not.
View gist:5612585

Here is some Code and words. This is more random wody stuff, some code suddenly a widd more some more Other Code which makes the above code seems Related although it is not.

View gist:5612589

Here is some Code and words. This is more random wody stuff, some code suddenly a widd more some more Other Code which makes the above code seems Related although it is not.

View gist:5612591

Here is some Code and words. This is more random wody stuff, some code suddenly a widd more some more Other Code which makes the above code seems Related although it is not.

View gist:5875704

###Discussion relating to this

Who here feels that perma-banning okok for asking:

is it possible to cut photos on the fly with js?

link

Was justified?

View gist:5909909
Here is a solution using ES6 sets.
var a = new Set(Array1);
Array2.forEach(function(elem){
a.delete(elem);
});
return a;
View gist:6078208

Asking a Question

Hi, welcome to our chat room. We accept questions from people coming into the room.

When asking, the following will greatly increase your chance of getting an answer:

  • Create a self contained code example illustrating the issue. You can upload it to jsfiddle , codepen or jsbin.
  • If you paste code, format it by pressing Control+K or pressing the "Fixed Font" button. Code you put inside backticks is also formatted.
  • Make sure there are no name error or syntax errors.
View eventemitter fastest
"use strict";
function EventEmitter() {}
EventEmitter.prototype.on = EventEmitter.prototype.emit = function() {};
View gist:7119117

דברים שמפתחי JavaScript צריכים לדעת לווב.

  1. איך מבצעים בקשת AJAX לשרת
  2. מה זה AJAX
  3. איך אני מחזיר ערך מקריאת AJAX
  4. איך מבצעים איטרציה על עברי מערך
  5. איך מבצעים איטרציה על איברי אובייקט
  6. איך אני מוסיף פעולה ללחיצה על טאג HTML שרשמתי
  7. איך אני יוצר HTML חדש מJavaScript ומוסיף אותו לדף
  8. איך אני שומר מידע בJavaScript שהמשתמש יגש אליו פעם הבאה שהוא חוזר לדף