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
var PaymentForm = React.createClass({ | |
propTypes: { | |
onValidPaymentDetails: React.PropTypes.func.isRequired, | |
onErrors: React.PropTypes.func.isRequired | |
}, | |
getInitialState: function() { | |
return { | |
buttonDisabled: false, | |
showSpinner: false | |
}; |
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
2015-07-12T00:51:18.966610+00:00 app[web.1]: | |
2015-07-12T00:51:20.107453+00:00 heroku[web.1]: State changed from starting to crashed | |
2015-07-12T00:51:20.108642+00:00 heroku[web.1]: State changed from crashed to starting | |
2015-07-12T00:51:20.090710+00:00 heroku[web.1]: Process exited with status 1 | |
2015-07-12T00:51:28.011296+00:00 heroku[web.1]: Starting process with command `mix phoenix.server` | |
2015-07-12T00:51:37.672540+00:00 app[web.1]: {"Kernel pid terminated",application_controller,"{application_start_failure,swagger,{{shutdown,{failed_to_start_child,'Elixir.Swagger.Endpoint',{shutdown,{failed_to_start_child,'Elixir.Phoenix.Endpoint.Server',{function_clause,[{'Elixir.Keyword',put_new,[{system,<<\"PORT\">>},otp_app,swagger],[{file,\"lib/keyword.ex\"},{line,320}]},{'Elixir.Phoenix.Endpoint.Server',default,3,[{file,\"lib/phoenix/endpoint/server.ex\"},{line,39}]},{'Elixir.Phoenix.Endpoint.Server',init,1,[{file,\"lib/phoenix/endpoint/server.ex\"},{line,24}]},{supervisor,init,1,[{file,\"supervisor.erl\"},{line,243 |
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
/** @jsx React.DOM */ | |
var STATES = [ | |
'AL', 'AK', 'AS', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'DC', 'FL', 'GA', 'HI', | |
'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MD', 'MA', 'MI', 'MN', 'MS', | |
'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'OH', 'OK', 'OR', | |
'PA', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VA', 'WA', 'WV', 'WI', 'WY' | |
] | |
var Example = React.createClass({ |
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
config.before(:each) do | |
DatabaseCleaner.strategy = :truncation | |
end | |
config.before(:each, :js => true) do | |
DatabaseCleaner.strategy = :truncation | |
end | |
config.before(:each) do | |
DatabaseCleaner.start |
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
function setupTabsFor(tableName, initialTabLocation) { | |
$('#' + tableName + '-tabs a').click(function (e) { | |
e.preventDefault() | |
window.location.hash = this.href.split('#', 2)[1]; | |
$(this).tab('show') | |
}) | |
var location = window.location.hash; | |
if(!location) location = '#' + initialTabLocation | |
$('#' + tableName + '-tabs a[href="' + location + '"]').tab('show') |
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
c_cyan=`tput setaf 6` | |
c_red=`tput setaf 1` | |
c_green=`tput setaf 2` | |
c_sgr0=`tput sgr0` | |
parse_git_branch () | |
{ | |
if git rev-parse --git-dir >/dev/null 2>&1 |
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
# A sample Guardfile | |
# More info at https://github.com/guard/guard#readme | |
guard :rspec, all_on_start: false, all_on_pass: false, cmd: 'spring rspec -f doc' do | |
watch(%r{^spec/.+_spec\.rb$}) | |
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } | |
watch('spec/spec_helper.rb') { "spec" } | |
# Rails example | |
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } |
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
# A sample Guardfile | |
# More info at https://github.com/guard/guard#readme | |
guard :rspec, all_on_start: false, all_on_pass: false, cmd: 'spring rspec -f doc' do | |
watch(%r{^spec/.+_spec\.rb$}) | |
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } | |
watch('spec/spec_helper.rb') { "spec" } | |
# Rails example | |
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } |
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
- (void)webViewDidFinishLoad:(UIWebView *)webView | |
{ | |
if ([webView canGoBack]){ | |
NSLog(@"Can Go back"); | |
self.backButton.enabled = YES; | |
} else { | |
self.backButton.enabled = NO; | |
} | |
if ([webView canGoForward]) { |
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
#import "AppDelegate.h" | |
#import <CheckMate/CheckMate.h> | |
@implementation AppDelegate | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
[CheckMate initializeFramework:@"af498d68fa9186212a08dfdbd51cd760"]; | |
return YES; | |
} |
NewerOlder