I hereby claim:
- I am adaburrows on github.
- I am adaburrows (https://keybase.io/adaburrows) on keybase.
- I have a public key ASDE6w2y_MoIs8mhnREyU6Y7KMResn9WwjO2vSEC9OaCtQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| require 'puppet' | |
| require 'puppet/network/http_pool' | |
| require 'uri' | |
| url = URI.parse('https://localhost:443/reports/upload') | |
| headers = { "Content-Type" => "application/x-yaml" } | |
| body = <<HELLO | |
| --- !ruby/object:Puppet::Transaction::Report | |
| metrics: | |
| resources: !ruby/object:Puppet::Util::Metric |
| <?php | |
| /** | |
| * Just trying out more functional programming in PHP | |
| * This gist provides some basic utility functions for: | |
| * + Working with functions | |
| * + Working with arrays | |
| */ | |
| // This function allows creating a new function from two functions passed into it | |
| function compose(&$f, &$g) { |
| <?php | |
| /** | |
| * This is by no means complete, but it's a sketch of an idea I had to create a | |
| * classless functional style framework for PHP. | |
| * | |
| * It might turn out to be something cool! | |
| */ | |
| // This function allows creating a new function from two functions passed into it | |
| function compose(&$f, &$g) { |
| <?php | |
| /** | |
| * Fibonacci: | |
| *============================================================================ | |
| * Class for computing fibonacci numbers using functional programming in PHP | |
| * Uses the formula at: http://jburrows.wordpress.com/2009/12/30/fibonacci/ | |
| */ | |
| class fibonacci { |