discuss.reactjs.org

Shallow rendering

Shallow rendering is an experimental feature that lets you render a component "one level deep" and assert facts about what its render method returns, without worrying about the behavior of child components, which are not instantiated or rendered. This does not require a DOM.

jsdom

https://github.com/tmpvar/jsdom A JavaScript implementation of the WHATWG DOM and HTML standards, for use with io.js

Basic Performant Sharing Buttons - Web Design Weekly

https://web-design-weekly.com/2015/06/18/basic-performant-sharing-buttons/

http://www.facebook.com/sharer.php?u={url}
https://plus.google.com/share?url={url}
https://twitter.com/share?url={url}&text={title}&via={via}

http://neverrun.github.io/

String.search

If string is passed, it's converted to RegEx new RegExp(obj) If using just with string, it's faster to use indexOf

Google Maps getBounds of with specified center and zoom, not actual

google.maps.Map.prototype.boundsAt = function (zoom, center, proj, div) {
  var p = proj || this.getProjection();
  if (!p) {
    return undefined;
  }
  //var d = $(div || this.getDiv());
  var d = div || this.getDiv();
  var zf = Math.pow(2, zoom) * 2;
  var dw = d.clientWidth  / zf;
  var dh = d.clientHeight / zf;
  var cpx = p.fromLatLngToPoint(center || this.getCenter());
  var llb = new google.maps.LatLngBounds(
      p.fromPointToLatLng(new google.maps.Point(cpx.x - dw, cpx.y + dh)),
      p.fromPointToLatLng(new google.maps.Point(cpx.x + dw, cpx.y - dh)));
  return {
    'from_long': llb.qa.j,
    'to_long': llb.qa.A,
    'from_lat': llb.za.A,
    'to_lat': llb.za.j
  };
};

D3 select node

d3.select('#map').node()

style property of HTML element

It is generally better to use the style property than to use elt.setAttribute('style', '...'), since using the style property will not overwrite other CSS properties that may be specified in the style attribute.

Prototype chain in Google Maps

PointLayer.prototype = new HideableOverlay();
HideableOverlay.prototype = new google.maps.OverlayView();

Dean Karnazes

https://en.wikipedia.org/wiki/Dean_Karnazes

Ultra-marathon Man: Confessions of an All Night Runner

For his 12th birthday, he cycled 40 miles (64 km) to his grandparents' home for fun without telling his parents.

At the end of the race, Coach McTavish commented: "Good work son, how'd it feel?" To this Karnazes replied: "Well, going out hard was the right thing to do. It felt pretty good." The coach replied: "If it felt good, you didn't push hard enough. It's supposed to hurt like hell."

Benner Cummings

(560 km) in 80 hours and 44 minutes

Ran a marathon to the South Pole in −13 °F (−25 °C) temperatures without snowshoes in 2002

Ran a marathon in each of the 50 states in 50 consecutive days in 2006

Beautiful Open

http://beautifulopen.com