Lade die neueste "mainline"-Version (hier 1.7.9) von http://nginx.org/en/download.html herunter und entpacke sie:
$ wget http://nginx.org/download/nginx-1.7.9.tar.gz
$ tar xf nginx-1.7.9.tar.gz
$('a.reveal').click(function(event) { | |
event.preventDefault(); | |
var $div = $('<div>').addClass('reveal-modal').appendTo('body'), | |
$this = $(this); | |
$.get($this.attr('href'), function(data) { | |
return $div.empty().html(data).append('<a class="close-reveal-modal">×</a>').reveal(); | |
}); | |
}); |
<catalog_category_default> | |
<reference name="product_list"> | |
<action method="setDefaultDirection"> | |
<dir>DESC</dir> | |
</action> | |
</reference> | |
</catalog_category_default> |
/////////////////////////////////////////////////////////////////////////// | |
// // | |
// MOVED PERMANENTLY TO https://github.com/MilllerTime/react-pointable // | |
// // | |
/////////////////////////////////////////////////////////////////////////// | |
// Allows listening for pointer events using PEP for browsers that don't support them. | |
// This component also adds support for dynamic event addition/removal that React does well, | |
// even though React doesn't support any pointer events yet. |
Lade die neueste "mainline"-Version (hier 1.7.9) von http://nginx.org/en/download.html herunter und entpacke sie:
$ wget http://nginx.org/download/nginx-1.7.9.tar.gz
$ tar xf nginx-1.7.9.tar.gz
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 14, | |
// font family with optional fallbacks |
https://gist.github.com/ljharb/58faf1cfcb4e6808f74aae4ef7944cff
While attempting to explain JavaScript's reduce
method on arrays, conceptually, I came up with the following - hopefully it's helpful; happy to tweak it if anyone has suggestions.
JavaScript Arrays have lots of built in methods on their prototype. Some of them mutate - ie, they change the underlying array in-place. Luckily, most of them do not - they instead return an entirely distinct array. Since arrays are conceptually a contiguous list of items, it helps code clarity and maintainability a lot to be able to operate on them in a "functional" way. (I'll also insist on referring to an array as a "list" - although in some languages, List
is a native data type, in JS and this post, I'm referring to the concept. Everywhere I use the word "list" you can assume I'm talking about a JS Array) This means, to perform a single operation on the list as a whole ("atomically"), and to return a new list - thus making it mu