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
files: | |
- /opt/ingress-cms/log/production.log | |
- /opt/ingress-cms/log/sidekiq.log | |
- /opt/ingress-cms/log/unicorn.stderr.log | |
- /opt/ingress-cms/log/unicorn.stdout.log | |
- /var/log/cfn-init.log | |
- /var/log/cfn-wire.log | |
- /var/log/nginx/cms.cirrusview.com.access.log | |
destination: | |
host: logs2.papertrailapp.com |
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
# File: MainView.m | |
[Doorman requestUnlockDoor:^(BOOL successfulRequest) { | |
if (successfulRequest) { | |
// do stuff | |
} | |
else { | |
// do other stuff | |
} | |
}]; |
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
#import <Foundation/Foundation.h> | |
int main (int argc, const char * argv[]) { | |
NSString *testString; | |
testString = [[NSString alloc] init]; | |
testString = @"Here's a test string in testString!"; | |
NSLog(@"testString: %@", testString); | |
return 0; | |
} |
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
<!-- update_city_menu.html.erb --> | |
<select id="neighborhood_field" name="search[city_field]"> | |
<%- if @state.cities.present? -%> | |
<%= options_from_collection_for_select(@state.cities, :id, :name) %> | |
<%- else -%> | |
<option value=''>There are no cities in the state you selected.</option> | |
<%- end -%> | |
</select> |
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
<!-- update_city_menu.html.erb --> | |
<% if @state.cities.present? %> | |
<select id="neighborhood_field" name="search[city_field]"> | |
<%= options_from_collection_for_select(@state.cities, :id, :name) %> | |
</select> | |
<% end %> |
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.rb | |
def update_city_menu | |
@state = State.find(params[:search][:state]) | |
render :layout => false | |
end |
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
<!-- index.html.erb --> | |
<% form_tag search_path do %> | |
<%= select :search, :state, State.all.collect { |m| [m.full_name, m.id] }.sort, {:prompt=>'Please Select...'} %> | |
<%= observe_field(:state, :url => { :action => :update_city_menu }, | |
:update => :city_field_div, | |
:with => :state | |
) %> | |
<div id="city_field_div"></div> | |
<%= submit_tag 'Submit' %> |
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
<%- @homepage ? @home_or_int = 'home' : @home_or_int = 'int' -%> | |
<%- @homepage ? @int_or_nil = '' : @int_or_nil = '_int' -%> | |
<%- RAILS_ENV == 'production' ? @google_cse_id = '007606818108534743064:ed-nrsdhb4c' : @google_cse_id = '007606818108534743064:dppds1dran0' %> | |
<div id="<%= @home_or_int %>_search"> | |
<form action="../default/searchresults" id="cse-search-box"> | |
<div> | |
<input type="hidden" name="cx" value="007606818108534743064:dppds1dran0" /> | |
<input type="hidden" name="cof" value="FORID:9" /> |
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
<%- if @homepage -%> | |
<div id="home_search"> | |
<!-- <div id="cse" style="width: 100%;">Loading</div> | |
<script src="http://www.google.com/jsapi" type="text/javascript"></script> | |
<script type="text/javascript"> | |
google.load('search', '1'); | |
google.setOnLoadCallback(function(){ | |
new google.search.CustomSearchControl('012346094628449066995:wpxldwrpz1g').draw('cse'); |
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
<div id="dynamic_nav"> | |
<ul> | |
<li><%= link_to session[:user] ? 'My Account' : 'Create An Account', session[:user] ? my_account_path : new_account_path %></li> | |
<li><%= link_to session[:user] ? 'Logout' : 'Login', session[:user] ? logout_path : login_path %></li> | |
</ul> | |
</div> <!-- end dynamic nav --> |
NewerOlder