I hereby claim:
- I am vitalibondar on github.
- I am vtlbn (https://keybase.io/vtlbn) on keybase.
- I have a public key whose fingerprint is A9AD 0D9D 7155 7EE0 22A1 9246 1439 6CD8 5C84 25C0
To claim this, I am signing this object:
const diffDate = (date, diff) => { | |
// date: '1993-09-11' | |
// diff: +1, -1 | |
console.log('input', date); | |
console.log('diff', diff); | |
date.setDate(date.getDate() + diff); | |
console.log('output', date); | |
const a = [ | |
date.getFullYear(), | |
('00' + (1 + date.getMonth())).slice(-2), |
defaults write com.apple.LaunchServices LSHandlers -array-add '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.sublimetext.4;}' |
code:script.js | |
//うまく動かないのでいったん保留 | |
// import 'https://scrapbox.io/api/code/cdn/キーボードだけでページ遷移/ショートカットキーでページ遷移.js' | |
addEventListener('keydown', e => { | |
if(!$('#text-input').is(":focus") && !$('.search-form input').is(":focus")) { | |
//focus to editor to insert text | |
if(e.key === 'i') { | |
$('#text-input').focus(); | |
e.preventDefault(); |
var diffDate = function (date, diff) { | |
// date: '1993-09-11' | |
// diff: +1, -1 | |
var d = new Date(date); | |
d.setDate(d.getDate() + diff); | |
var a = [ | |
d.getFullYear(), | |
('00' + (1 + d.getMonth())).slice(-2), | |
('00' + d.getDate()).slice(-2) | |
]; |
I hereby claim:
To claim this, I am signing this object: