This guide will introduce you to the concept of shell pipelines and process substitution by playing youtube videos in your terminal.
We need to install ffmpeg, python3, and sox if not already installed. On OS X, you can use homebrew:
#!/usr/bin/env bash | |
set -eou pipefail | |
cd /home/pi | |
git clone https://github.com/popcornmix/omxplayer.git | |
cd omxplayer | |
sudo apt-get update && sudo apt install -y git libasound2-dev libva2 libpcre3-dev libidn11-dev libboost-dev libdbus-1-dev libssh-dev libsmbclient-dev libssl-dev | |
# see https://github.com/popcornmix/omxplayer/issues/731 |
diff --git a/go/vt/vtgate/vindexes/hybrid.go b/go/vt/vtgate/vindexes/hybrid.go | |
index 55ad0fe773..fd1c40b063 100644 | |
--- a/go/vt/vtgate/vindexes/hybrid.go | |
+++ b/go/vt/vtgate/vindexes/hybrid.go | |
@@ -28,6 +28,7 @@ import ( | |
var ( | |
_ SingleColumn = (*Hybrid)(nil) | |
+ hybridVindexes = make(map[string]Vindex) | |
) |
diff --git a/src/Phan/Analysis/PostOrderAnalysisVisitor.php b/src/Phan/Analysis/PostOrderAnalysisVisitor.php | |
index a7557675d..1d51b9c63 100644 | |
--- a/src/Phan/Analysis/PostOrderAnalysisVisitor.php | |
+++ b/src/Phan/Analysis/PostOrderAnalysisVisitor.php | |
@@ -1621,31 +1621,31 @@ class PostOrderAnalysisVisitor extends AnalysisVisitor | |
// Check for failing to return a value, or returning a value in a void method. | |
if ($method_return_type->hasRealTypeSet()) { | |
if (!$this->checkIsValidReturnExpressionForType($node, $method_return_type->asRealUnionType(), $method)) { | |
return $context; | |
} |
#!/usr/bin/env bash | |
set -euo pipefail -o errtrace | |
main(){ | |
trap 'fail $? $LINENO' ERR | |
sudo true | |
local user_cpu; | |
while true ; do | |
sudo true |
This guide will introduce you to the concept of shell pipelines and process substitution by playing youtube videos in your terminal.
We need to install ffmpeg, python3, and sox if not already installed. On OS X, you can use homebrew:
diff --git a/go/vt/vtgate/vindexes/sqlite_lookup.go b/go/vt/vtgate/vindexes/sqlite_lookup.go | |
index 870fb8be32..ff6df7f31b 100644 | |
--- a/go/vt/vtgate/vindexes/sqlite_lookup.go | |
+++ b/go/vt/vtgate/vindexes/sqlite_lookup.go | |
@@ -29,106 +29,115 @@ import ( | |
"vitess.io/vitess/go/stats" | |
"vitess.io/vitess/go/vt/key" | |
_ "github.com/mattn/go-sqlite3" // sqlite driver | |
) |
diff --git a/go/vt/vtgate/vindexes/sqlite_lookup.go b/go/vt/vtgate/vindexes/sqlite_lookup.go | |
index 870fb8be32..f83d4d0f53 100644 | |
--- a/go/vt/vtgate/vindexes/sqlite_lookup.go | |
+++ b/go/vt/vtgate/vindexes/sqlite_lookup.go | |
@@ -29,106 +29,115 @@ import ( | |
"vitess.io/vitess/go/stats" | |
"vitess.io/vitess/go/vt/key" | |
_ "github.com/mattn/go-sqlite3" // sqlite driver | |
) |
/usr/bin/memcached -u memcached -p 11212 -U 11213 -m 64 -c 1024 -R 256 -t 4
mc_tcp_vs_udp.php
script and observe that setting keys is slightly faster via UDP: php mc_tcp_vs_udp.php
:Setting 100 keys via TCP...
Setting 100 keys via TCP took 4.86524 ms
Getting keys: tcp_0, tcp_100 ...
array(2) {
["tcp_0"]=>
string(1) "0"
["tcp_100"]=>
%YAML 1.2 | |
--- | |
name: PHP | |
file_extensions: | |
- php | |
- php3 | |
- php4 | |
- php5 | |
- php7 | |
- phps |
diff --git a/src/Phan/AST/ContextNode.php b/src/Phan/AST/ContextNode.php | |
index 240d20795..7742316ef 100644 | |
--- a/src/Phan/AST/ContextNode.php | |
+++ b/src/Phan/AST/ContextNode.php | |
@@ -856,6 +856,197 @@ class ContextNode | |
); | |
} | |
+ public function getMethods( | |
+ $method_name, |