参考:How To: Setup DBD::Oracle in Ubuntu « ZenHat
# apt-get install cpanminus
cat <<EOF >> ~/.bashrc
# frozen_string_literal: true | |
# from https://github.com/rails/rails/blob/v7.1.3.2/guides/bug_report_templates/active_storage.rb | |
require "bundler/inline" | |
gemfile(true) do | |
source "https://rubygems.org" | |
gem "rails" |
参考:How To: Setup DBD::Oracle in Ubuntu « ZenHat
# apt-get install cpanminus
cat <<EOF >> ~/.bashrc
;;; workcat-save-yoshi.el --- ヨシッ! | |
;; Author: Wataru MIYAGUNI <gonngo@gmail.com> | |
;; Copyright (c) 2022 Wataru MIYAGUNI | |
;; | |
;; MIT License | |
;; | |
;; Permission is hereby granted, free of charge, to any person obtaining | |
;; a copy of this software and associated documentation files (the |
(let* ((font (format "%s-%d:weight=normal:slant=normal" "Cica" 22)) | |
(fontset (create-fontset-from-ascii-font font nil "gongo"))) | |
(set-fontset-font fontset ?い (font-spec :family "Cica" :size 38)) | |
(add-to-list 'default-frame-alist `(font . ,fontset)) | |
(set-face-font 'default fontset) | |
(setq use-default-font-for-symbols nil) | |
) | |
;; この設定だと Cica-22 そのものは適用されるけど | |
;; 「い」のサイズは変わらない(22のまま) |
(leaf font | |
:global-minor-mode global-font-lock-mode | |
:config | |
(leaf spec | |
:when (memq window-system '(mac ns)) | |
:defun my-ja-font-setter my-ascii-font-setter my-font-config | |
:custom | |
'( |
# こういうことをしてくれる nanika_no_method が欲しい | |
# Ripper とかそこらへん使えばいけるのだろうか | |
nanika_no_method(<<EOS) | |
def gongo1 | |
'a' | |
end | |
EOS | |
# => ['a'] |
(make-variable-buffer-local | |
(defvar sushi-bar--conveyor-belt "")) | |
(make-variable-buffer-local | |
(defvar sushi-bar--backup-mode-line-format nil)) | |
(defvar sushi-bar--updater-object nil) | |
(defun sushi-bar--sushi-is-ready-p () | |
(eq (random 15) 1)) |
;;; json-reformat --- Reformat tool for JSON | |
;; Author: Wataru MIYAGUNI <gonngo@gmail.com> | |
;; Keywords: json | |
;; Copyright (c) 2012 Wataru MIYAGUNI | |
;; | |
;; MIT License | |
;; | |
;; Permission is hereby granted, free of charge, to any person obtaining |
(require 'deferred) | |
(require 'request-deferred) | |
(require 'eww) | |
(defun eww-hatebu-nicomment () | |
(let ((url (url-hexify-string (eww-current-url)))) | |
(deferred:$ | |
(request-deferred (concat "http://b.hatena.ne.jp/entry/jsonlite/?url=" url) | |
:type "GET" | |
:parser 'json-read) |
row1 = CSV::Row.new(['a', 'b'], [1, 2]) | |
row2 = CSV::Row.new(['a', 'c'], [4, 12]) | |
table = CSV::Table.new([row1, row2]) | |
table.to_s | |
# | |
# expected: | |
# | |
# a,b,c |