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] |
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
<?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
forever start -c php app/cli.php index neighborhoods |
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
[2015-05-15 18:31:35] local.ERROR: exception 'ReflectionException' with message 'Class cache does not exist' in /Users/fernandez104/Documents/AdmitOne/admitone/vendor/laravel/framework/src/Illuminate/Container/Container.php:776 | |
Stack trace: | |
#0 /Users/fernandez104/Documents/AdmitOne/admitone/vendor/laravel/framework/src/Illuminate/Container/Container.php(776): ReflectionClass->__construct('cache') | |
#1 /Users/fernandez104/Documents/AdmitOne/admitone/vendor/laravel/framework/src/Illuminate/Container/Container.php(656): Illuminate\Container\Container->build('cache', Array) | |
#2 /Users/fernandez104/Documents/AdmitOne/admitone/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(644): Illuminate\Container\Container->make('cache', Array) | |
#3 /Users/fernandez104/Documents/AdmitOne/admitone/vendor/laravel/framework/src/Illuminate/Container/Container.php(1231): Illuminate\Foundation\Application->make('cache') | |
#4 /Users/fernandez104/Documents/AdmitOne/admitone/vendor/laravel/framework/src/Illuminate/Session/Se |
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 | |
/** | |
* @Get("/{id:[0-9]+}") | |
* @AclAllow("scopes"={"basic"}) | |
*/ | |
public function getAction($id) | |
{ | |
Filter::on($this, __FUNCTION__, func_get_args(), function($chain) { | |
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 | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| Default Authentication Driver | |
|-------------------------------------------------------------------------- | |
| | |
| This option controls the authentication driver that will be utilized. |
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
/* | |
* Search and replace a string with another string , in a string | |
* */ | |
char *str_replace(char *search , char *replace , char *subject) | |
{ | |
char *p = NULL , *old = NULL , *new_subject = NULL ; | |
int c = 0 , search_size; | |
search_size = strlen(search); | |
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
{ | |
"name": {"use": "text", "value": "h1 span", "filters": ["trim-space"]}, | |
"screen": {"use": "text", "value": "#phone div[data-gallery] .col-xs-16 div.bor-t-1", "filters": ["trim-space"]}, | |
"os": {"use": "text", "value": "#phone div[data-gallery] .col-xs-16 div.bor-t-1", "i": 1, "filters": ["trim-space"]}, | |
"camera": {"use": "text", "value": "#phone div[data-gallery] .col-xs-16 div.bor-t-1", "i": 2, "filters": ["trim-space"]}, | |
"storage": {"use": "text", "value": "#phone div[data-gallery] .col-xs-16 div.bor-t-1", "i": 3, "filters": ["trim-space"]}, | |
} |
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
micro query sg.micro.srv.spider Spider.PrepareDatasets '{ | |
"selector_id": 1, | |
"group": "motorcycle" | |
}' |
OlderNewer