As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
<?php | |
$feed = 'https://www.box.com/shared/58ee78a0c5a9cfcf5cfc/a34f97e67c/rss.xml'; | |
$dom = new DOMDocument(); | |
$dom->load($feed); | |
$xpath = new DOMXPath($dom); | |
$xpath->registerNamespace('media', 'http://search.yahoo.com/mrss/'); | |
$nodes = $xpath->query('channel/item'); |
App::after(function($request, $response) | |
{ | |
// Compress output | |
ini_set("pcre.recursion_limit", "16777"); | |
$buffer = $response->getContent(); | |
$re = '%# Collapse whitespace everywhere but in blacklisted elements. | |
(?> # Match all whitespans other than single space. | |
[^\S ]\s* # Either one [\t\r\n\f\v] and zero or more ws, | |
| \s{2,} # or two or more consecutive-any-whitespace. | |
) # Note: The remaining regex consumes no text at all... |
gatsby-config.js
onPreBootstrap
if it is implemented in any plugins, for example gatsby-plugin-typography. Receives handy [apiCallArgs](https://github.com/gatsbyjs/gatsby/blob/ffd8b2d691c9