Skip to content

Instantly share code, notes, and snippets.

# RGB変換プログラム
# 3つの10進数を受け取り、それぞれを16進数に変換した文字列を返す
def to_hex(*args)
arry = args.map {|s|s.to_s(16).rjust(2,"0")}
p "##{arry.join}"
end
to_hex(255, 255, 255)
to_hex(4, 60, 120)
@SyunWatanabe
SyunWatanabe / moneyforward_timesheet_completer.js
Created December 26, 2019 10:35 — forked from akinov/moneyforward_timesheet_completer.js
マネフォクラウドの勤怠一括入力
$('#js-multiple-timesheet-employee-daily-records-table tr').each((i, e)=>{
if (!/平日/.test(e.textContent)) return;
$('.add_fields',e).click();
$('[name*="elapsed_minutes_at_work_in_with_neuminour_string_format"]', e)[0].value = '10:00';
$('[name*="elapsed_minutes_at_work_out_with_neuminour_string_format"]', e)[0].value = '19:00';
})