(from Understanding Nginx Server and Location Block Selection Algorithms - https://goo.gl/YyzshP)
server {
| license: gpl-3.0 |
| license: gpl-3.0 | |
| redirect: https://beta.observablehq.com/@mbostock/d3-multi-line-chart |
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@d3/grouped-bar-chart |
| SELECT ?ediblething ?ediblethingLabel WHERE { | |
| SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | |
| wd:Q158657 wdt:P171+ ?parent_taxon . # Q158657 is "Malus pumila", the tree we want to find fruit for | |
| ?ediblething | |
| wdt:P1582 ?parent_taxon ; | |
| wdt:P279 ?superthing . | |
| ?superthing wdt:P361 wd:Q21925565 . | |
| } | |
| LIMIT 100 |
(from Understanding Nginx Server and Location Block Selection Algorithms - https://goo.gl/YyzshP)
server {
| function Mutilator(data, name, context) { | |
| this.n = name || `mutilation-${+new Date()}`; | |
| this.d = data; | |
| this.c = context || window; | |
| this.isArr = function(p) { | |
| return this.d[p].constructor == Array; | |
| }; | |
| this.dispatch = function(p, v, t) { | |
| this.c.dispatchEvent( | |
| new CustomEvent(this.n, { |
| import { Transmuter, listen } from './transmuter.js'; | |
| // Set up intial state | |
| const initialState = { | |
| name: 'lala', | |
| isIt: true, | |
| count: 123, | |
| }; | |
| // Setup store |
| <?php | |
| $xml = simplexml_load_file('php://stdin'); | |
| $threads = []; | |
| $posts = []; | |
| $userMap = [ | |
| 'evertp' => [ | |
| 'url' => 'https://evertpot.com', |
| %%----------------------------------------------------------------------- | |
| %% Make your own quadrille, graph, hex, etc paper! | |
| %% Uses the pgf/TikZ package for LaTeX, which should be part of | |
| %% any modern TeX installation. | |
| %% Email: mcnees@gmail.com | |
| %% Twitter: @mcnees | |
| %%----------------------------------------------------------------------- | |
| \documentclass[11pt]{article} |
| <?php | |
| // Context: I'm trying to argue that DI (and DIC) are great, and DIC libs suck. | |
| // Happy to be proven wrong! | |
| final class Router { | |
| private $dependencies; | |
| public function __construct (Dependencies $dependencies) { | |
| $this->dependencies = $dependencies; | |
| // You might say that this is Service Locator, but it's not. This router is toplevel, | |
| // and toplevel must have access to dependencies. After that it can all just bubble nicely using proper DI. |