Write a ruby program that evaluates a Rerverse Polish Notation expression
The input of program will be
5 1 2 + 4 × + 3 −
The output should be
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
HOSTNAME = ENV['BOXHOSTNAME'] || "app-berkshelf" | |
BASE_BOX = ENV["BASEBOX"] || "ubuntu/trusty64" | |
DEBUG = ENV["DEBUG"] || false | |
RUNLIST = ENV['RUNLIST'] || %w(app) | |
CHEFJSON = ENV['CHEFJSON'] || { | |
mysql: { | |
server_root_password: 'rootpass', |
2014/12/13 21:34:29 [INFO] Terraform version: 0.3.5 69b2c245dd586b435fd71915b38b777fb0ee315c | |
2014/12/13 21:34:29 Detected home directory from env var: /Users/gosuri | |
2014/12/13 21:34:29 [DEBUG] Discoverd plugin: atlas = /Users/gosuri/projects/gocode/bin/terraform-provider-atlas | |
2014/12/13 21:34:29 [DEBUG] Discoverd plugin: aws = /Users/gosuri/projects/gocode/bin/terraform-provider-aws | |
2014/12/13 21:34:29 [DEBUG] Discoverd plugin: cloudflare = /Users/gosuri/projects/gocode/bin/terraform-provider-cloudflare | |
2014/12/13 21:34:29 [DEBUG] Discoverd plugin: cloudstack = /Users/gosuri/projects/gocode/bin/terraform-provider-cloudstack | |
2014/12/13 21:34:29 [DEBUG] Discoverd plugin: consul = /Users/gosuri/projects/gocode/bin/terraform-provider-consul | |
2014/12/13 21:34:29 [DEBUG] Discoverd plugin: digitalocean = /Users/gosuri/projects/gocode/bin/terraform-provider-digitalocean | |
2014/12/13 21:34:29 [DEBUG] Discoverd plugin: dnsimple = /Users/gosuri/projects/gocode/bin/terraform-provider-dnsimple | |
2014/12/13 21:34:29 [DEBUG] D |
Write a ruby program that evaluates a Rerverse Polish Notation expression
The input of program will be
5 1 2 + 4 × + 3 −
The output should be
2015/01/15 23:26:14 [INFO] Terraform version: 0.3.7 dev d01670f49b5cfcd524ffe7d03ac69f79511c1934+CHANGES | |
2015/01/15 23:26:14 Detected home directory from env var: /Users/gosuri | |
2015/01/15 23:26:14 [DEBUG] Discoverd plugin: atlas = /Users/gosuri/projects/go/bin/terraform-provider-atlas | |
2015/01/15 23:26:14 [DEBUG] Discoverd plugin: aws = /Users/gosuri/projects/go/bin/terraform-provider-aws | |
2015/01/15 23:26:14 [DEBUG] Discoverd plugin: cloudflare = /Users/gosuri/projects/go/bin/terraform-provider-cloudflare | |
2015/01/15 23:26:14 [DEBUG] Discoverd plugin: cloudstack = /Users/gosuri/projects/go/bin/terraform-provider-cloudstack | |
2015/01/15 23:26:14 [DEBUG] Discoverd plugin: consul = /Users/gosuri/projects/go/bin/terraform-provider-consul | |
2015/01/15 23:26:14 [DEBUG] Discoverd plugin: digitalocean = /Users/gosuri/projects/go/bin/terraform-provider-digitalocean | |
2015/01/15 23:26:14 [DEBUG] Discoverd plugin: dnsimple = /Users/gosuri/projects/go/bin/terraform-provider-dnsimple | |
2015/01/15 23:26:14 [DEBUG] Discoverd plugin: |
=== RUN TestAccAWSELBUpdate_HealthCheck | |
2015/02/02 19:02:13 [WARN] Test: Executing step 0 | |
2015/02/02 19:02:13 [DEBUG] Creating graph for path: [root] | |
2015/02/02 19:02:13 [DEBUG] Graph [root] created and valid. 3 nouns. | |
2015/02/02 19:02:13 [INFO] Validating provider: aws | |
2015/02/02 19:02:13 [DEBUG] aws_elb.bar: expanding to count = 1 | |
2015/02/02 19:02:13 [INFO] Validating resource: aws_elb.bar | |
2015/02/02 19:02:13 [DEBUG] Creating graph for path: [root] | |
2015/02/02 19:02:13 [DEBUG] Graph [root] created and valid. 3 nouns. | |
2015/02/02 19:02:13 [INFO] Configuring provider: aws |
#define _GNU_SOURCE | |
#define _FILE_OFFSET_BITS 64 | |
#include <stdio.h> | |
#include <time.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sys/resource.h> | |
#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \ | |
} while (0) |
2015/02/17 16:23:45 [INFO] Terraform version: 0.3.7 dev e9778c85a5291b6db767277703a4f08bbee20765 | |
2015/02/17 16:23:45 Detected home directory from env var: /Users/gosuri | |
2015/02/17 16:23:45 [DEBUG] Discoverd plugin: atlas = /Users/gosuri/projects/go/bin/terraform-provider-atlas | |
2015/02/17 16:23:45 [DEBUG] Discoverd plugin: aws = /Users/gosuri/projects/go/bin/terraform-provider-aws | |
2015/02/17 16:23:45 [DEBUG] Discoverd plugin: azure = /Users/gosuri/projects/go/bin/terraform-provider-azure | |
2015/02/17 16:23:45 [DEBUG] Discoverd plugin: cloudflare = /Users/gosuri/projects/go/bin/terraform-provider-cloudflare | |
2015/02/17 16:23:45 [DEBUG] Discoverd plugin: cloudstack = /Users/gosuri/projects/go/bin/terraform-provider-cloudstack | |
2015/02/17 16:23:45 [DEBUG] Discoverd plugin: consul = /Users/gosuri/projects/go/bin/terraform-provider-consul | |
2015/02/17 16:23:45 [DEBUG] Discoverd plugin: digitalocean = /Users/gosuri/projects/go/bin/terraform-provider-digitalocean | |
2015/02/17 16:23:45 [DEBUG] Discoverd plugin: dnsimple = /Us |
// Testing different runtime reflections in golang | |
// See "The Laws of Reflection" for an introduction | |
// to reflection in Go: http://golang.org/doc/articles/laws_of_reflection.html | |
package main | |
import ( | |
"fmt" | |
"reflect" | |
) |
2015/06/02 16:44:38 [INFO] Terraform version: 0.6.0 dev b386cc7d03f3fa6acc0ac9586146ad867d9553b5 | |
2015/06/02 16:44:38 Detected home directory from env var: /Users/gosuri | |
2015/06/02 16:44:38 [DEBUG] Discovered plugin: atlas = /Users/gosuri/projects/go/bin/terraform-provider-atlas | |
2015/06/02 16:44:38 [DEBUG] Discovered plugin: aws = /Users/gosuri/projects/go/bin/terraform-provider-aws | |
2015/06/02 16:44:38 [DEBUG] Discovered plugin: cloudflare = /Users/gosuri/projects/go/bin/terraform-provider-cloudflare | |
2015/06/02 16:44:38 [DEBUG] Discovered plugin: cloudstack = /Users/gosuri/projects/go/bin/terraform-provider-cloudstack | |
2015/06/02 16:44:38 [DEBUG] Discovered plugin: consul = /Users/gosuri/projects/go/bin/terraform-provider-consul | |
2015/06/02 16:44:38 [DEBUG] Discovered plugin: digitalocean = /Users/gosuri/projects/go/bin/terraform-provider-digitalocean | |
2015/06/02 16:44:38 [DEBUG] Discovered plugin: dme = /Users/gosuri/projects/go/bin/terraform-provider-dme | |
2015/06/02 16:44:38 [DEBUG] Discovered plugin: dnsimple = |
2015/07/14 15:35:36 [INFO] Terraform version: 0.6.1 dev 7f738dc272259e094898bb9c21c2cfaeaa4fdfcd | |
2015/07/14 15:35:36 Detected home directory from env var: /Users/gosuri | |
2015/07/14 15:35:36 [DEBUG] Discovered plugin: atlas = /Users/gosuri/code/go/bin/terraform-provider-atlas | |
2015/07/14 15:35:36 [DEBUG] Discovered plugin: aws = /Users/gosuri/code/go/bin/terraform-provider-aws | |
2015/07/14 15:35:36 [DEBUG] Discovered plugin: azure = /Users/gosuri/code/go/bin/terraform-provider-azure | |
2015/07/14 15:35:36 [DEBUG] Discovered plugin: cloudflare = /Users/gosuri/code/go/bin/terraform-provider-cloudflare | |
2015/07/14 15:35:36 [DEBUG] Discovered plugin: cloudstack = /Users/gosuri/code/go/bin/terraform-provider-cloudstack | |
2015/07/14 15:35:36 [DEBUG] Discovered plugin: consul = /Users/gosuri/code/go/bin/terraform-provider-consul | |
2015/07/14 15:35:36 [DEBUG] Discovered plugin: digitalocean = /Users/gosuri/code/go/bin/terraform-provider-digitalocean | |
2015/07/14 15:35:36 [DEBUG] Discovered plugin: dme = /Users/gosuri/code/go/bin/te |