Skip to content

Instantly share code, notes, and snippets.

View ruzia's full-sized avatar

Hirokatsu Endo ruzia

  • SonicGarden
  • Tokyo, Japan
View GitHub Profile
################
# BASE
FROM ruby:3.0.3-slim AS base
WORKDIR /app
ENV RAILS_ENV production
ENV BUNDLE_DEPLOYMENT true
ENV BUNDLE_PATH vendor/bundle
ENV BUNDLE_WITHOUT development:test
@ruzia
ruzia / handsontable.full.js.diff
Created August 2, 2016 15:10
Patch: Working well in japanese ime
@@ -8922,7 +8922,8 @@ TextEditor.prototype.open = function() {
this.instance.addHook('beforeKeyDown', onBeforeKeyDown);
};
TextEditor.prototype.close = function(tdOutside) {
- this.textareaParentStyle.display = 'none';
+ this.textareaParentStyle.top = '-9999px';
+ this.textareaParentStyle.left = '-9999px';
this.autoResize.unObserve();
if (document.activeElement === this.TEXTAREA) {
this.instance.listen();
require 'open-uri'
url = 'http://dx.doi.org/10.1038/ng.3011'
html = begin
open(url)
rescue
$!.io.read
end
p html