Skip to content

Instantly share code, notes, and snippets.

View akinov's full-sized avatar
🍺
Yeah

akinov akinov

🍺
Yeah
View GitHub Profile
@akinov
akinov / 100instance.rb
Last active March 21, 2020 08:08
100日後に死ぬインスタンス
require 'date'
class Crocodile
class DeadError < StandardError; end
def initialize(born = Date.today)
@born = born
end
def move
if Date.today >= @born + 100
raise DeadError
@akinov
akinov / mf_attendance_remote_set.js
Last active February 28, 2020 01:31
マネフォクラウド勤怠リモート日入力
$$('.attendance-table-row-').forEach((e)=>{
if (!/平日/.test(e.textContent)) return false;
$('.attendance-table-icon-edit',e).click();
var day = $('.column-day', e);
if (window.confirm(day.textContent + 'はリモート?')) {
$('.attendance-text-area').value = 'リモート';
$('.attendance-button-primary.attendance-button-size-wide').click();
} else {
$('.attendance-table-button-contents a.attendance-button-normally').click();
}
/*!
* InstaWindowTool
* https://insta-window-tool.web.app/
*
* Copyright Akinov and other contributors
* Released under the MIT license
*
*/
// Polyfill Object.assign

ゆるふわ アンチハラスメントポリシー

ゆるふわではアンチハラスメントポリシーを定めています。イベントに参加するみなさんは以下のポリシーを遵守するように心がけてください。

当ポリシーの目的と適用範囲

当ポリシーは、イベントの参加者全員が楽しく、安全に集える場を維持するために策定されました。

「参加者全員が楽しく、安全に集える場を維持する」という目的には、「将来開催されるイベントについてもみなさんが不安や心配を感じることなく、気軽に参加できること」も含まれています。

@akinov
akinov / GorillaScript.js
Last active December 22, 2019 15:42
大量にゴリラを生成できるスクリプト
for (let i = 0; i < 300; i++) {
const d = document.createElement('span');
d.innerHTML = '&#x1f98d;';
d.style.fontSize = '50px';
d.style.position = 'absolute';
d.style.zoom = Math.random();
d.style.top = Math.random() * 100 + '%';
d.style.left = Math.random() * 100 + '%';
document.body.appendChild(d);
}
@akinov
akinov / moneyforward_timesheet_completer.js
Last active December 26, 2019 10:35
マネフォクラウドの勤怠一括入力
$('#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';
})
// ==UserScript==
// @name messenger ninja
// @namespace https://gist.github.com/akinov/95cf1c427ce26198a5bfc9c6b70ec109
// @version 0.1
// @description ninja!
// @author akinov
// @grant none
// @match https://www.messenger.com/*
/* load jQuery */
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// ==UserScript==
// @name rotate img
// @namespace https://gist.github.com/akinov/96c1c5c95460412f9eb29d958ac88a49
// @version 0.1
// @description try to take over the world!
// @author akinov
// @grant none
// @include /\.(jpg|jpeg|png)$/
/* load jQuery */
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
@akinov
akinov / add_issue_template_link_for_github.user.js
Last active March 28, 2018 09:01
Add issue template link
@akinov
akinov / toggle_whitespace_for_github_pr.user.js
Last active March 7, 2018 08:37
Toggle whitespace for Github PR
// ==UserScript==
// @name Toggle whitespace
// @namespace https://gist.github.com/akinov/a38822c6aaec04e8f1d1ce9fffd932f7
// @version 0.1
// @description Diff miyasui!!
// @author akinov
// @match https://github.com/*/pull/*
// @grant none
/* load jQuery */
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js