The official and authoritative source for this document has moved. Please update your bookmarks.
You can still use the comments at the bottom of the page to register comments even for the new official location.
The official and authoritative source for this document has moved. Please update your bookmarks.
You can still use the comments at the bottom of the page to register comments even for the new official location.
<?php | |
error_reporting(E_ALL); | |
/* Data can be send to coroutines using `$coroutine->send($data)`. The sent data will then | |
* be the result of the `yield` expression. Thus it can be received using a code like | |
* `$data = yield;`. | |
*/ | |
/* What we're building in this script is a coroutine-based streaming XML parser. The PHP |
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
<html> | |
<body> | |
<!-- ----------------------------------------------- --> | |
<!-- inline script block with commented code inside: --> | |
<!-- ----------------------------------------------- --> | |
<script id="myjscode"> | |
/* | |
(function(h,v){function q(b){if(""===m)return b; |
#!/usr/bin/env php | |
<?php | |
/** | |
* Zend Framework (http://framework.zend.com/) | |
* | |
* @link http://github.com/zendframework/zf2 for the canonical source repository | |
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) | |
* @license http://framework.zend.com/license/new-bsd New BSD License | |
*/ |
# Automatically print tasks description wrapping the execution of | |
# the task. | |
module Capistrano::Configuration::Namespaces | |
alias_method :_task, :task | |
def task(name, options = {}, &block) | |
desc = next_description | |
full_task_name = [fully_qualified_name, name].compact.join(':') | |
$column = 0 | |
$last_was_after = true |
This is only a summary. For a full list of changes see the NEWS file.
Feature | RFC / announcement | Author |
---|---|---|
Bundled ZendOptimizer+ as OPcache | https://wiki.php.net/rfc/optimizerplus | zeev |
git stash show -p stash@{0} > Stash0.patch |
#/usr/bin/env bash | |
# MIT © Sindre Sorhus - sindresorhus.com | |
# git hook to run a command after `git pull` or `git merge` if a specified file was changed | |
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" |