I hereby claim:
- I am version2beta on github.
- I am version2beta (https://keybase.io/version2beta) on keybase.
- I have a public key ASBWycr-1gFFwyfPI3S1ZqThdpYCW1tvfVnDZk0UAvp3JAo
To claim this, I am signing this object:
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"sync" | |
"time" | |
) | |
const logging = true |
package main | |
import ( | |
"fmt" | |
"io" | |
"os" | |
"strings" | |
) | |
type rot13Reader struct { |
package main | |
import ( | |
"fmt" | |
"golang.org/x/tour/tree" | |
) | |
func Walk(t *tree.Tree, ch chan int) { | |
if t == nil { | |
return |
I hereby claim:
To claim this, I am signing this object:
-> cat Vagrantfile | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.omnibus.chef_version = :latest | |
config.vm.box = "precise64" | |
config.vm.network :private_network, ip: "10.42.42.2" | |
# config.vm.network :public_network |
-> cat Vagrantfile | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.omnibus.chef_version = :latest | |
config.vm.box = "itvdev" | |
config.vm.network :private_network, ip: "10.42.42.2" | |
# config.vm.network :public_network |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.omnibus.chef_version = :latest | |
config.vm.box = "itvdev" | |
config.vm.network :private_network, ip: "10.42.42.2" | |
# config.vm.network :public_network |
# execute 'DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade' | |
include_recipe "postgresql" | |
include_recipe "postgresql::server" | |
include_recipe "postgresql::ruby" | |
include_recipe "database" | |
databases_file = "pgdatabases.tar.bz" | |
cookbook_file "/var/lib/postgresql/#{databases_file}" do | |
source databases_file |
<?php | |
// Get the children | |
error_log(print_r($modx->resource->get('id'), 1)); // prints 1 | |
$children = $modx->resource->getMany('Children'); // returns children of 1 | |
if ($children) { | |
// Parse children | |
$retVal = '<ul>'; | |
foreach ($children as $child) { | |
$retVal .= '<li>Resource ' . $child->get('id') . ', child of resource ' . $child->get('parent') . '</li>'; |
app.route('/') | |
.html(function (req, resp) { | |
db.get('home', function(err, body) { | |
if (err) return resp.error(err) | |
console.log(templates.home(body)); | |
}) | |
.pipe(templates.home()) | |
.pipe(resp); | |
}) | |
.methods('GET') |