Skip to content

Instantly share code, notes, and snippets.

View dodalovic's full-sized avatar

Dusan Odalovic dodalovic

View GitHub Profile
package rs.dodalovic.streams.flap_map;
import java.util.List;
public class Developer {
private final String name;
private final List<String> programmingLanguages;
public Developer(String name, List<String> programmingLanguages) {
this.name = name;
@dodalovic
dodalovic / bubbling.js
Created August 23, 2014 18:45
Prevent event bubbling
'use strict'
var eventDetails = function(element, event) {
event.stopPropagation ? event.stopPropagation() : (event.cancelBubble = true);
console.log("target.id:" + event.target.id + ", this.id:" + element.id);
};
@dodalovic
dodalovic / 0_reuse_code.js
Created August 21, 2014 09:30
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console