Example inputs:
Variable | Value |
---|---|
key | the shared secret key here |
message | the message to hash here |
Reference outputs for example inputs above:
| Type | Hash |
<?php | |
$one = [ | |
'arithmetic' => ['+$a', '-$a'], | |
'bitwise' => ['~$a'], | |
'incdec' => ['++$a', '--$a'], | |
'logical' => ['!$a'], | |
]; | |
$two = [ |
<?php | |
$file = $argv[1]; | |
$tagToStruct = function($value, $tag) { | |
$key = substr($tag, 1); | |
return ["<$key>" => $value]; | |
}; | |
$callbacks = [ |
#!/usr/bin/env php | |
<?php | |
/** | |
* Magic 8 Ball IRC bot | |
* Created by Lance Brignoni | |
* Converted to PHP by Arnold Daniels | |
* 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. |
Example inputs:
Variable | Value |
---|---|
key | the shared secret key here |
message | the message to hash here |
Reference outputs for example inputs above:
| Type | Hash |
<?php | |
class FooController extends Controller | |
{ | |
/** | |
* @var FooGateway | |
*/ | |
protected $foos; | |
/** |
0xfEBDC084cA75b7d053D22b93644d9D9A012f7859 |
#!/bin/bash | |
# phpbrew-php will determine the PHP version of the project from the NetBeans project or composer.json. | |
command_exists () { | |
type "$1" &> /dev/null ; | |
} | |
vergte() { | |
[ "$1" = "`echo -e "$1\n$2" | sort -V | tail -n1`" ] |
To use the AWS and Elastic Beanstalk command line application, you need to install them using the Python package installer pip.
sudo pip install awscli awsebcli
<?php | |
/* This script can to be used when your replacing your WordPress site with | |
* a static site, while keeping your blog on WordPress. | |
* | |
* Make sure you increase the number of syndicated posts to include all posts | |
* in Settings > Reading on your WordPress blog. | |
*/ | |
if ($argc < 2) { |