本文書は、青空文庫で配布されているテキストファイルをUnicodeに変換する規則、またUnicodeで入力されたテキストファイルを青空文庫テキストファイル用のShift_JISのファイルに変換する規則を提案する。
青空文庫テキストファイルはJIS X 0208のShift_JISで記述されているが、Unicodeに相互変換したいというニーズがある。
- UTF-8で入力・出力したい
- UTF-8に対応したツールを使いたい
require 'rubycocoa' | |
##### begin from drb/invokemethod.rb | |
module DRb | |
class DRbServer | |
module InvokeMethod18Mixin | |
def block_yield(x) | |
if x.size == 1 && x[0].class == Array | |
x[0] = DRbArray.new(x[0]) | |
end |
diff -uwbNr decidim-cfj/config/application.rb decidim/development_app/config/application.rb | |
--- decidim-cfj/config/application.rb 2023-07-03 17:49:30 | |
+++ decidim/development_app/config/application.rb 2023-08-21 23:24:55 | |
@@ -1,37 +1,22 @@ | |
-# frozen_string_literal: true | |
- | |
require_relative "boot" | |
-require "decidim/rails" | |
-# Add the frameworks used by your app that are not loaded by Decidim. |
# Be sure to restart your server when you modify this file. | |
# Your secret key is used for verifying the integrity of signed cookies. | |
# If you change this key, all old signed cookies will become invalid! | |
# Make sure the secret is at least 30 characters and all random, | |
# no regular words or you'll be exposed to dictionary attacks. | |
# You can use `rails secret` to generate a secure secret key. | |
# Make sure the secrets in this file are kept private |
# Be sure to restart your server when you modify this file. | |
# Your secret key is used for verifying the integrity of signed cookies. | |
# If you change this key, all old signed cookies will become invalid! | |
# Make sure the secret is at least 30 characters and all random, | |
# no regular words or you will be exposed to dictionary attacks. | |
# You can use `rails secret` to generate a secure secret key. | |
# Make sure the secrets in this file are kept private |
import puppeteer from 'puppeteer'; | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
await page.goto('https://www.kdpcommunity.com/s/announcement-archive?language=ja', { waitUntil: 'networkidle0' }); | |
const src = await page.content(); | |
console.log(src); | |
await browser.close(); |
I hereby claim:
To claim this, I am signing this object:
diff --git a/decidim-comments/app/cells/decidim/comments/comments/show.erb b/decidim-comments/app/cells/decidim/comments/comments/show.erb | |
index 982366a..f21dc52 100644 | |
--- a/decidim-comments/app/cells/decidim/comments/comments/show.erb | |
+++ b/decidim-comments/app/cells/decidim/comments/comments/show.erb | |
@@ -20,6 +20,11 @@ | |
<%= cell("decidim/comments/comment_thread", comment, order: order) %> | |
<% end %> | |
</div> | |
+ <% if comment_limited? %> | |
+ <%= link_to commentable_path(limit: 0), class: "button primary expanded" do %> |
ja: | |
faker: | |
lorem: | |
words: | |
- あいさつ | |
- あした | |
- あたらしい | |
- あたらしく | |
- あたり | |
- あたりまえ |
require 'fileutils' | |
Dir.glob("lib/**/*.rb") do |file| | |
rbs_file = file.sub('lib/', 'sig/').sub(/\.rb$/, '.rbs') | |
FileUtils.mkdir_p(File.dirname(rbs_file)) | |
puts "#{file} -> #{rbs_file}" | |
cmd = "rbs prototype rb #{file} > #{rbs_file}" | |
system(cmd) | |
end |