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
| DEC 20, 2013 | 01:25PM EST | |
| Nicole Williams replied: | |
| Hi James, | |
| Apologies about the delay in getting in touch! I’ve done testing on our end and wasn’t able to recreate similar errors with downtime and loading for Cloud.typography. If it’s not too much trouble, would you mind confirming if you’re still having issues? | |
| Thanks in advance. | |
| Kindest Regards, |
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
| #!/usr/bin/env ruby | |
| require "httparty" | |
| require "json" | |
| class Github | |
| include HTTParty | |
| HIPCHAT_HOOK = { | |
| name: "hipchat", |
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
| Failures: | |
| 1) AWS::Record::Model it should behave like an aws record base class it should behave like record class #create! raises an exception when create returns false | |
| Failure/Error: Unable to find matching line from backtrace | |
| NameError: | |
| undefined method `__rspec_original_dup' for class `#<Class:0x1123dfff0>' | |
| Shared Example Group: "record class" called from ./spec/shared/record/abstract_base_examples.rb:62 | |
| # /Library/Ruby/Gems/1.8/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance.rb:73:in `alias_method' | |
| # /Library/Ruby/Gems/1.8/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance.rb:73:in `restore_dup' | |
| # /Library/Ruby/Gems/1.8/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance.rb:72:in `class_eval' |
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
| Failures: | |
| 1) AWS::Record::Model it should behave like an aws record base class it should behave like record class #create! raises an exception when create returns false | |
| Failure/Error: Unable to find matching line from backtrace | |
| NameError: | |
| undefined method `__rspec_original_dup' for class `#<Class:0x113869fe8>' | |
| Shared Example Group: "record class" called from ./spec/shared/record/abstract_base_examples.rb:62 | |
| # /Library/Ruby/Gems/1.8/gems/rspec-mocks-2.12.2/lib/rspec/mocks/any_instance.rb:73:in `alias_method' | |
| # /Library/Ruby/Gems/1.8/gems/rspec-mocks-2.12.2/lib/rspec/mocks/any_instance.rb:73:in `restore_dup' | |
| # /Library/Ruby/Gems/1.8/gems/rspec-mocks-2.12.2/lib/rspec/mocks/any_instance.rb:72:in `class_eval' |
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 logging | |
| import bugsnag | |
| class BugsnagHandler(logging.Handler): | |
| def emit(self, record): | |
| if record.levelno == logging.ERROR or record.levelno == logging.WARNING: | |
| bugsnag.notify(Exception(record.message)) |
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
| module SimpleMongoidSlug | |
| extend ActiveSupport::Concern | |
| included do | |
| cattr_accessor :slug_scope, :slug_field | |
| end | |
| module ClassMethods | |
| def slug(*field) | |
| options = field.extract_options! |
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
| Bugsnag::Notification.class_eval do | |
| class << self | |
| def deliver_exception_payload_with_thread(*args) | |
| Thread.new do | |
| Bugsnag::Notification.deliver_exception_payload_without_thread(*args) | |
| end | |
| end | |
| alias_method :deliver_exception_payload_without_thread, :deliver_exception_payload | |
| alias_method :deliver_exception_payload, :deliver_exception_payload_with_thread |
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="slider-value"></div> | |
| <input type="text" data-slider="true" data-slider-values="0,100,500,800"> | |
| <script> | |
| var sliderValues = { | |
| 0: "None", | |
| 100: "Small", | |
| 500: "Medium", | |
| 800: "Large" | |
| }; |
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
| module Delayed | |
| module Plugins | |
| class Bugsnag < Plugin | |
| module Notify | |
| def error(job, error) | |
| ::Bugsnag.auto_notify(error) | |
| super | |
| end | |
| 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
| // | |
| // Simple pub/sub using redis and server-sent events (EventSource) | |
| // | |
| // Usage: | |
| // | |
| // // Attach the middleware | |
| // redisSse = require("redis-sse"); | |
| // app.use(redisSse({redis: yourRedisClient})); | |
| // | |
| // // Set up a subscription to a channel in your route |