itemclick: function(s,r) { alert(r.data.text); }
a ragtag collection of things I couldn't find in a quick 5-minute search on google, as well as some curiosities and what not.
Tuesday, May 28, 2013
How to alert a treepanel's node text
Took me awhile to find on stack overflow, but here's how you access the node's text
Monday, May 27, 2013
metric completion of a graph
I had trouble naming the following scenario: turn a graph G into a complete graph with weighted edges such that each edge's weight represents the distance between the two vertices (ie, a distance matrix except for on a complete graph).
Turns out, this is called metric completion of a graph. Now we can google away!
Turns out, this is called metric completion of a graph. Now we can google away!
Friday, May 17, 2013
mixins
Mixins are "donor" classes that can be included in "recipient" classes, merging the members (properties and methods) of the "donor" class into the "recipient" class.
This is actually a form of multiple inheritance, as the "donor" class's (ie the mixin class) methods and properties can be accessed as if they were of the parent class.
The point of mixins is usually to add functionality from an encapsulated class into the current class without having to make the current class a subclass of the encapsulated class that has the functionality we want.
Subscribe to:
Posts (Atom)