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 | |
private function request($url, $payload) { | |
$cmd = "curl -X POST -H 'Content-Type: application/json'"; | |
$cmd.= " -d '" . $payload . "' " . "'" . $url . "'"; | |
if (!$this->debug()) { | |
$cmd .= " > /dev/null 2>&1 &"; | |
} |
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 | |
/* | |
* This file is part of the ConsoleKit package. | |
* | |
* (c) 2012 Maxime Bouroumeau-Fuseau | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
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
(def bit-bucket-writer | |
(proxy [java.io.Writer] [] | |
(write [buf] nil) | |
(close [] nil) | |
(flush [] nil))) | |
(defmacro noprint | |
"Evalua la expresiones dadas con todas las impresiones a *out* silenciadas." | |
[& forms] | |
`(binding [*out* bit-bucket-writer] |
NewerOlder