This file contains hidden or 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
# Lua Prometheus collecter and exporter | |
lua_shared_dict prometheus_metrics 200M; | |
lua_package_path "{{nginx_lua_prometheus_path}}/?.lua"; | |
init_by_lua ' | |
prometheus = require("prometheus").init("prometheus_metrics") | |
metric_requests = prometheus:counter( | |
"nginx_http_requests_total", "Number of HTTP requests", {"host", "app","status", "uri", "method"}) | |
metric_latency = prometheus:histogram( | |
"nginx_http_request_duration_seconds", "HTTP request latency", {"host", "app","status", "uri", "method"}) |
This file contains hidden or 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
# Check which containers should be running | |
- name: fail if container not running | |
command: "docker inspect --format='{% raw %}{{.State.Status}}{% endraw %}' {{ item }}" | |
register: command_result | |
failed_when: command_result.stdout != 'running' | |
ignore_errors: True | |
with_items: | |
- api | |
- web |
This file contains hidden or 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
#define ApplicationDelegate ((AppDelegate *)[[UIApplication sharedApplication] delegate]) | |
#define UserDefaults [NSUserDefaults standardUserDefaults] | |
#define NotificationCenter [NSNotificationCenter defaultCenter] | |
#define SharedApplication [UIApplication sharedApplication] | |
#define Bundle [NSBundle mainBundle] | |
#define MainScreen [UIScreen mainScreen] | |
#define ShowNetworkActivityIndicator() [UIApplication sharedApplication].networkActivityIndicatorVisible = YES | |
#define HideNetworkActivityIndicator() [UIApplication sharedApplication].networkActivityIndicatorVisible = NO | |
#define NetworkActivityIndicatorVisible(x) [UIApplication sharedApplication].networkActivityIndicatorVisible = x | |
#define NavBar self.navigationController.navigationBar |
This file contains hidden or 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 Cart::WizardWidget < Cart::BaseWidget | |
has_widgets do | |
setup(options) | |
self << widget("cart/list", :cart_list, :display, purchase_order: @purchase_order) | |
self << widget("cart/resume", :cart_resume) | |
self << widget("shipping/form", :shipping_form, :display, purchase_order: @purchase_order) | |
self << widget("payment/form", :payment_form) | |
self << widget("authentication") |
This file contains hidden or 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
# Controller | |
has_widgets do |root| | |
root << widget("cart/wizard", :cart_wizard, :display, purchase_order: @purchase_order) | |
end | |
# Cart Wizard Widget | |
after_initialize :setup! |
This file contains hidden or 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
define("Geolocation", { | |
deviceSupport: function() { | |
if(navigator.geolocation) | |
return true; | |
else if(google.gears) | |
return true; | |
else | |
return false; | |
}, |
This file contains hidden or 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
actionmailer (2.3.4, 2.3.2, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.2) | |
actionpack (2.3.4, 2.3.2, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.2) | |
activerecord (2.3.4, 2.3.2, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.2) | |
activeresource (2.3.4, 2.3.2, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.2) | |
activesupport (2.3.4, 2.3.2, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.2) | |
adzap-ar_mailer (2.1.5) | |
ambethia-smtp-tls (1.1.2) | |
binarylogic-authlogic (2.1.1) | |
bones (2.5.1) | |
brynary-webrat (0.4.0) |