This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
╰─$ bundle exec bin/examples sqs | |
Commands: | |
examples s_q_s help [COMMAND] # Describe subcommands or one specific subcommand | |
examples s_q_s receive # Receive a message from a test SQS queue | |
examples s_q_s send {message} # Send {message} to a test SQS queue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
driver: | |
name: vagrant | |
customize: | |
memsize: 2048 | |
numvcpus: 2 | |
provisioner: | |
name: chef_zero |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def bin_files | |
@cookbook.manifest[:files].collect{|file| file[:path].split("/")[2..-1].join("/") if file[:path] =~ /apps\/#{Regexp.quote(new_resource.name)}\/[^.]/}.compact || [] | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rails_helper' | |
RSpec.describe DashboardController, type: :controller do | |
describe "Dashboard" do | |
before do | |
sign_in_as_a_valid_user | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -XGET -H "Content-Type: application/json" -H "Accept: application/json" "http://api.example.dev:13000/v1/echo/wibble" | |
{"message":"wibble"}% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.routes.draw do | |
namespace :api, :path => "", :constraints => { :subdomain => "api" }, :defaults => { :format => :json } do | |
namespace :v1 do | |
resources :users | |
get '/echo/:message', to: 'status#echo' | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(A45=Applications!B45, | |
if(Applications!P45='Risk Criteria'!$K$3, | |
'Risk Criteria'!$L$3, | |
if(Applications!P45='Risk Criteria'!$K$4, | |
'Risk Criteria'!$L$4, | |
if(Applications!P45='Risk Criteria'!$K$5, | |
'Risk Criteria'!$L$5, | |
if(Applications!P45='Risk Criteria'!$K$6, | |
'Risk Criteria'!$L$6, | |
"else clause" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Group < ActiveRecord::Base | |
validates :name, :presence => true | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:*" | |
], | |
"Resource": [ | |
"arn:aws:s3:::*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
div.container { | |
width: 100%; | |
} | |
div.container table { | |
width: 600px; | |
} | |
table th { | |
text-align: right; | |
width: 150px; |