このルールさえ押さえておけば、読んでいるコードが省略記法を使っていてもほぼ読めるようになります。
def concatAsString(a: Int, b: Int): String = {
val a_ = a.toString();
val b_ = b.toString();
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: myapp passenger in standalone | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# X-Interactive: true | |
# Short-Description: Start/stop myapp.com web site | |
### END INIT INFO | |
#PATH=/sbin:/usr/sbin:/bin:/usr/bin |
module RecognizePath | |
def recognize_path(path, options) | |
recognized_path = Rails.application.routes.recognize_path(path, options) | |
# We have a route that catches everything and sends it to 'errors#not_found', you might | |
# need to rescue ActionController::RoutingError | |
return recognized_path unless recognized_path.slice(:controller, :action) == {controller: 'errors', action: 'not_found'} | |
# The main app didn't recognize the path, try the engines... | |
Rails.application.railties.engines.each do |engine| |
def hash_for_includes_all_masters(recursive=true, all_associations=[]) | |
all_associations << self.to_s | |
result_arr = [] | |
self.reflect_on_all_associations.each do |model| | |
association_name = model.name | |
class_name = model.class_name | |
next if all_associations.include?(class_name) | |
next unless class_name.include?('Master') | |
next if model.options.has_key?(:polymorphic) |
# -*- coding: utf-8 -*- | |
def cmd(target, pane, remote_command) | |
command = "tmux send-keys -t:#{target}.#{pane} #{remote_command} C-m" | |
system command | |
end | |
def window(window_name) | |
system "tmux new-window -a -n #{window_name}" | |
end |
更新: | 2022-03-18 |
---|---|
作者: | @voluntas |
バージョン: | 2022.1 |
URL: | http://voluntas.github.io/ |
# UnityFS unpack tool for MLTD (Million live theater days). | |
# Output directory is created automatically. | |
# Usage: ruby unityfs2asset.rb data.unity3d | |
require 'fileutils' | |
require 'extlz4' | |
require 'bin_utils' | |
class BinaryReader | |
def initialize(data) |
明日の下書き
Use https://github.com/jfarley248/iTunes_Backup_Reader
git clone https://github.com/jfarley248/iTunes_Backup_Reader
cd iTunes_Backup_Reader
# apply https://github.com/jfarley248/iTunes_Backup_Reader/pull/12
gh pr checkout https://github.com/jfarley248/iTunes_Backup_Reader/pull/12