- version 3.6
Check those constraints:
$this->anything()
| <?php | |
| $apnsHost = 'gateway.sandbox.push.apple.com'; | |
| $apnsCert = 'apns-dev.pem'; | |
| $apnsPort = 2195; | |
| $streamContext = stream_context_create(); | |
| stream_context_set_option($streamContext, 'ssl', 'local_cert', $apnsCert); | |
| $apns = stream_socket_client('ssl://' . $apnsHost . ':' . $apnsPort, $error, $errorString, 2, STREAM_CLIENT_CONNECT, $streamContext); |
| ## From a post on the ML, apropos this: | |
| ## http://lowlatencyweb.wordpress.com/2012/03/20/500000-requestssec-modern-http-servers-are-fast. | |
| ## For sysctl.conf | |
| net.ipv4.tcp_slow_start_after_idle = 0 | |
| echo "2048 64512" > /proc/sys/net/ipv4/ip_local_port_range | |
| echo "1" > /proc/sys/net/ipv4/tcp_tw_recycle | |
| echo "1" > /proc/sys/net/ipv4/tcp_tw_reuse |
| // Given a query string "?to=email&why=because&first=John&Last=smith" | |
| // getUrlVar("to") will return "email" | |
| // getUrlVar("last") will return "smith" | |
| // Slightly more concise and improved version based on http://www.jquery4u.com/snippets/url-parameters-jquery/ | |
| function getUrlVar(key){ | |
| var result = new RegExp(key + "=([^&]*)", "i").exec(window.location.search); | |
| return result && unescape(result[1]) || ""; | |
| } |
| .fc { | |
| direction: ltr; | |
| text-align: left; } | |
| .fc table { | |
| border-collapse: collapse; | |
| border-spacing: 0; } | |
| .fc .btn { | |
| line-height: 1.2em; } | |
| html .fc { |
| <?php | |
| /** | |
| * PHP Anonymous Object | |
| */ | |
| class AnObj | |
| { | |
| protected $methods = array(); | |
| public function __construct(array $options) |
| <?php | |
| // API access key from Google API's Console | |
| define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' ); | |
| $registrationIds = array( $_GET['id'] ); | |
| // prep the bundle | |
| $msg = array |
| ul.tree, ul.tree ul { | |
| list-style: none; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| ul.tree ul { | |
| margin-left: 10px; | |
| } | |
| ul.tree li { | |
| margin: 0; |