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
Fork this and add your example |
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
# This sets up the functions needed to make this work. | |
DG_DIR="${HOME}/.drewgo" | |
# Shows the list of saved directories. | |
function dg_show { | |
if [[ -r "${DG_DIR}/directories" ]]; then | |
cat "${DG_DIR}/directories" | |
else | |
echo "You haven't added anything yet." |
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
@HEAD | |
@Produces(MediaType.APPLICATION_JSON) | |
@Consumes(MediaType.APPLICATION_FORM_URLENCODED) | |
public Response HEAD(@PathParam("token") String token, | |
@DefaultValue("0") @FormParam("id") Number id) | |
throws JsonGenerationException, JsonMappingException, IOException { | |
EditSession session = AppState.INSTANCE.getEditSession(token); | |
Number change_id = session.getChangeId(); | |
boolean has_changed = change_id != id; |
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
org.ofbiz.core.entity.GenericDataSourceException: Generic Entity Exception occurred in deleteByAnd (SQL Exception while executing the following:DELETE FROM label WHERE FIELDID IS NULL AND ISSUE=? (Binary logging not possible. Message: Transaction level 'READ-COMMITTED' in InnoDB is not safe for binlog mode 'STATEMENT')) |
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
--- | |
tab_widths: | |
Default: 2 | |
Plain Text: 2 | |
Ruby on Rails: 2 | |
YAML: 2 | |
RSpec: 2 | |
Ruby: 2 | |
softnesses: | |
Default: true |
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/initializers/pry.rb | |
# | |
# Don't forget to add this to your Gemfile: | |
# gem 'pry', :group => [:development, :test] | |
# | |
begin | |
require 'pry' | |
module Rails | |
class Console | |
class IRB |
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 'spec_helper' | |
describe MywidgetWidget do | |
has_widgets do |root| | |
root << widget(:mywidget) | |
end | |
it "says hello world" do | |
render_widget :mywidget |
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
diff --git a/spec/rspec-apotomo/widget_example_group_spec.rb b/spec/rspec-apotomo/widget_example_group_spec.rb | |
index 9390bcc..95dc5eb 100644 | |
--- a/spec/rspec-apotomo/widget_example_group_spec.rb | |
+++ b/spec/rspec-apotomo/widget_example_group_spec.rb | |
@@ -5,6 +5,10 @@ require 'rspec/rails/example/widget_example_group' | |
# This class is used as a dummy widget for testing | |
class DummyWidget < Apotomo::Widget | |
responds_to_event :doo | |
+ | |
+ def display |
OlderNewer