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
common_packages = %w(python-setuptools python-dev) | |
case node['platform'] | |
when "centos", "redhat", "amazon" | |
(common_packages + ['gcc']).each do |pkg| | |
package pkg do | |
action :install | |
end | |
end | |
when "debian", "ubuntu" | |
(common_packages + ['build-essential']).each do |pkg| |
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
rake routes | grep group | |
group_index GET /group(.:format) group#index | |
POST /group(.:format) group#create | |
new_group GET /group/new(.:format) group#new | |
edit_group GET /group/:id/edit(.:format) group#edit | |
group GET /group/:id(.:format) group#show | |
PATCH /group/:id(.:format) group#update | |
PUT /group/:id(.:format) group#update | |
DELETE /group/:id(.:format) group#destroy | |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use JSON; | |
my %results = (); | |
my $keyspace = 'None'; | |
my $table = 'None'; | |
while (<>) { |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use JSON; | |
my %results = (); | |
my $keyspace = 'None'; | |
my $table = 'None'; | |
while (<>) { |
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; |
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
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
(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
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
$ curl -XGET -H "Content-Type: application/json" -H "Accept: application/json" "http://api.example.dev:13000/v1/echo/wibble" | |
{"message":"wibble"}% |
OlderNewer