This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://atom.io/packages/sync-settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2021-02-07T10:14:15.719Z","extensionVersion":"v3.4.3"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"bootstrapped": true, | |
"in_process_packages": | |
[ | |
], | |
"installed_packages": | |
[ | |
"Package Control", | |
"Sync Settings", | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const minWidth = 375 | |
const el = document.querySelector('meta[name="viewport"]') | |
const updateContent = () => { | |
if (window.screen.width < minWidth) { | |
el.setAttribute('content', `width=${minWidth}`) | |
} else { | |
el.setAttribute('content', 'width=device-width') | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable no-console, no-continue */ | |
/* eslint 'import/no-extraneous-dependencies': ['error', { optionalDependencies: false }] */ | |
const { execSync } = require('child_process') | |
const { dirname } = require('path') | |
function convertFilesToTree(files) { | |
const tree = {} | |
const dirs = [...new Set(files.map((file) => dirname(file)))] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<filter id="drop-shadow" width="200%" height="200%" x="-50%" y="-50%" color-interpolation-filters="sRGB"> | |
<feGaussianBlur stdDeviation="3"/> | |
<feOffset dx="2" dy="2"/> | |
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.75 0"/> | |
<feMerge> | |
<feMergeNode/> | |
<feMergeNode in="SourceGraphic"/> | |
</feMerge> | |
</filter> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Document</title> | |
<style> | |
#container { | |
height: 100px; | |
background-color: #ccc; | |
transition: height 0.5s; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
. "$(dirname "$0")/_/husky.sh" | |
COMMIT_MSG_FILE=$1 | |
STAGED_FILES=$(git diff --cached --name-only) | |
PATTERN='package-lock.json' | |
MESSAGE='Please rerun `npm install`' | |
if echo "$STAGED_FILES" | grep --quiet --line-regexp --max-count 1 "$PATTERN"; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- main | |
renovate: | |
stage: main | |
image: node:alpine | |
variables: | |
RENOVATE_PLATFORM: gitlab | |
RENOVATE_ENDPOINT: https://gitlab.example.com/api/v4 | |
RENOVATE_TOKEN: $RENOVATE_TOKEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function () {const settingsButton = document.querySelector('[data-testid="room-header_room-settings-button"]',);const unreadRooms = document.querySelectorAll('#RoomList [role="listitem"]:has(._unreadBadge)',);let currentUnreadRoomIndex = 0;const handleHashChange = () => {settingsButton.click();Array.from(document.querySelector('[role="menu"]').children).find((item) => item.textContent.includes('メッセージをすべて既読にする')).click();if (currentUnreadRoomIndex < unreadRooms.length) {unreadRooms[currentUnreadRoomIndex].click();currentUnreadRoomIndex += 1;} else {window.removeEventListener('hashchange', handleHashChange);}};window.addEventListener('hashchange', handleHashChange);handleHashChange();})(); |
OlderNewer