- GuzzleException
- SeekException
- TransferException
- RequestException (
RequestInterface
;ResponseInterface
|null
)- TooManyRedirectsException
- ConnectException
- BadResponseException
- ServerException
- RequestException (
- ClientException
#!/usr/bin/env python | |
# | |
# Copyright 2011 Abdulrahman Alotaiba | |
# http://www.mawqey.com/ | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
/* | |
** client.c -- a stream socket client demo | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <string.h> | |
#include <netdb.h> |
RequestInterface
; ResponseInterface
| null
)
#include <boost/thread.hpp> | |
#include <iostream> | |
using namespace std; | |
void ThreadFunction() | |
{ | |
int counter = 0; | |
for(;;) |
<?php | |
namespace App\Models; | |
class Application extends Model | |
{ | |
/** | |
* The attributes that should be mutated to dates. | |
* | |
* @var array |
$value = array( | |
"deep"=>1, | |
"data"=>null, | |
"node"=>array( | |
"deep"=>2, | |
"data"=>null, | |
"node"=>array( | |
"deep"=>3 | |
) | |
), |
#!/usr/bin/env php | |
<?php | |
$app = function($request) { | |
$body = <<<EOS | |
<!DOCTYPE html> | |
<html> | |
<meta charset=utf-8> | |
<title>Hello World!</title> |
Description of this regular expression is as below: | |
Passwords will contain at least 1 upper case letter | |
Passwords will contain at least 1 lower case letter | |
Passwords will contain at least 1 number or special character | |
Passwords will contain at least 8 characters in length | |
Password maximum length should not be arbitrarily limited | |
(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$ |
// Creates a new promise that automatically resolves after some timeout: | |
Promise.delay = function (time) { | |
return new Promise((resolve, reject) => { | |
setTimeout(resolve, time) | |
}) | |
} | |
// Throttle this promise to resolve no faster than the specified time: | |
Promise.prototype.takeAtLeast = function (time) { | |
return new Promise((resolve, reject) => { |
/** | |
* strtr() for JavaScript | |
* Translate characters or replace substrings | |
* | |
* @author Dmitry Sheiko | |
* @version strtr.js, v 1.0.2 | |
* @license MIT | |
* @copyright (c) Dmitry Sheiko http://dsheiko.com | |
**/ |