This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func merge(cs ...<-chan int) <-chan int { | |
out := make(chan int) | |
var cases []reflect.SelectCase | |
for _, c := range chans { | |
cases = append(cases, reflect.SelectCase{ | |
Dir: reflect.SelectRecv, | |
Chan: reflect.ValueOf(c), | |
}) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include_once 'getGooglePageSpeedScreenshot.php'; | |
echo getGooglePageSpeedScreenshot($_GET['url']); | |
// Output: <img src="..." border="1" style="width: 80px; height: 80px" /> | |
echo getGooglePageSpeedScreenshot($_GET['url'], [ | |
'class' => 'thumbnail', | |
'style' => ['width: 80px;', 'height: 80px;'] |