I hereby claim:
- I am richardsondx on github.
- I am richardsondx (https://keybase.io/richardsondx) on keybase.
- I have a public key ASAbWDn-nbRVwC_v7ul--0bEjDuiQ6JqT-lW8XPJXXineQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
class String | |
# ..... some code | |
# | |
# See ActiveSupport::Inflector.humanize. | |
def humanize(capitalize: true, keep_id_suffix: false) | |
ActiveSupport::Inflector.humanize(self, capitalize: capitalize, keep_id_suffix: keep_id_suffix) | |
end | |
# .... more codee | |
end |
# Code smell | |
gem 'rubocop' | |
gem "rubycritic", require: false | |
gem 'reek' | |
gem 'simplecov', require: false | |
gem 'gemsurance' | |
# Better error page for Rack apps | |
gem "better_errors" | |
gem "binding_of_calle" |
// compose is the compose window element | |
// Here I'm clicking the x button on the compose window. But it Doesn't seem to work or trigger a save. | |
$(compose).find('[aria-label="Save & Close"]').trigger('click'); | |
// select subject to trigger a Save, not sure if that works. | |
$(compose).find('input[name=subjectbox]').trigger('select'); | |
// Reload Page | |
$.ajax({ | |
url: window.location.href, |
# Example of .jrubyrc | |
# Set compilation mode. JIT = at runtime; FORCE = before execution. (JIT, FORCE, OFF, OFFIR) | |
# compile.mode = FORCE | |
# Dump to console all bytecode generated at runtime. | |
# compile.dump = true | |
# Enable verbose JIT logging (reports failed compilation) | |
# jit.logging.verbose = true |
Global action exception caught: GC overhead limit exceeded; ["java.util.LinkedHashMap.newNode(LinkedHashMap.java:256)", "java.util.HashMap.putVal(HashMap.java:630)", "java.util.HashMap.put(HashMap.java:611)", "java.security.Provider.implPut(Provider.java:832)", "java.security.Provider.put(Provider.java:322)", "org.bouncycastle.jce.provider.BouncyCastleProvider.addAlgorithm(Unknown Source)", "org.bouncycastle.jce.provider.BouncyCastleProvider.addAlgorithm(Unknown Source)", "org.bouncycastle.jcajce.provider.symmetric.AES$Mappings.configure(Unknown Source)", "org.bouncycastle.jce.provider.BouncyCastleProvider.loadAlgorithms(Unknown Source)", "org.bouncycastle.jce.provider.BouncyCastleProvider.setup(Unknown Source)", "org.bouncycastle.jce.provider.BouncyCastleProvider.access$000(Unknown Source)", "org.bouncycastle.jce.provider.BouncyCastleProvider$1.run(Unknown Source)", "java.security.AccessController.doPrivileged(Native Method)", "org.bouncycastle.jce.provider.BouncyCastleProvider.<init>(Unknown Source)", "org. |
Java::JavaLang::OutOfMemoryError (GC overhead limit exceeded): | |
java.lang.Throwable.getStackTraceElement(Native Method) | |
java.lang.Throwable.getOurStackTrace(Throwable.java:827) | |
java.lang.Throwable.getStackTrace(Throwable.java:816) | |
java.lang.Thread.getStackTrace(Thread.java:1552) | |
org.jruby.RubyKernel.caller20(RubyKernel.java:1041) | |
org.jruby.RubyKernel$INVOKER$s$0$2$caller20.call(RubyKernel$INVOKER$s$0$2$caller20.gen) | |
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:193) | |
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:189) | |
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:129) |
# In Rails, add this to your Initializer/ folder | |
# | |
# Fix by @richardsondx - Richardson Dackam | |
# | |
# Thi monkey patch is not actually forcing farady to uncompress the response but it's telling it not to compress | |
# So it forces Faraday to avoid compressing the response. | |
# The gresponse from google had the header 'accept-encoding': 'gzip' | |
# unlike http.net, http.request doesn't automatically uncompress gzip request | |
# more info about http.request at https://github.com/ruby/ruby/blob/ruby_2_2/lib/net/http.rb |