This file contains hidden or 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
// 現在のページにあるハイパーリンクが設定されているすべてのテキストに下線を引く | |
function main() { | |
const textNodes: TextNode[] = figma.currentPage.findAll(node => { | |
return node.type === 'TEXT' && node.hyperlink !== null | |
}) | |
textNodes.forEach(async textNode => { | |
await Promise.all(textNode.getRangeAllFontNames(0, textNode.characters.length).map(figma.loadFontAsync)) | |
textNode.textDecoration = 'UNDERLINE' | |
}) |
This file contains hidden or 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
tell application "Google Chrome" to activate | |
tell application "System Events" | |
tell process "Google Chrome" | |
click menu item "プロファイル名" of menu 1 of menu bar item "プロファイル" of menu bar 1 | |
end tell | |
end tell |
This file contains hidden or 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
import type { Config } from 'tailwindcss' | |
const config: Config = { | |
content: ['./src/**/*.{js,ts,jsx,tsx,mdx}'], | |
theme: { | |
// Common | |
colors: { | |
'[]': '[]', | |
inherit: 'inherit', | |
transparent: 'transparent', |
This file contains hidden or 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
import * as AuthSession from 'expo-auth-session' | |
import Constants from 'expo-constants' | |
import * as WebBrowser from 'expo-web-browser' | |
import qs from 'qs' | |
import hmacsha1 from 'hmacsha1' | |
const consumerKey = Constants.expoConfig?.extra?.oauthConsumerKey | |
const consumerSecret = Constants.expoConfig?.extra?.oauthConsumerSecret |
This file contains hidden or 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
import { HTMLMotionProps, motion } from 'framer-motion' | |
import { forwardRef, ReactNode } from 'react' | |
type HeadingTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | |
type HeadingProps = { | |
as: HeadingTags | |
children: ReactNode | |
} | |
const CustomTagComponent = forwardRef<HTMLHeadingElement, HeadingProps>( |
This file contains hidden or 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 layoutMode = 'HORIZONTAL' // 'HORIZONTAL' or 'VERTICAL' | |
figma.currentPage.selection.forEach(node => { | |
if (node.type === 'FRAME') { | |
const firstItemPosition = layoutMode === 'HORIZONTAL' ? node.children[0].x : node.children[0].y | |
const firstItemSize = layoutMode === 'HORIZONTAL' ? node.children[0].width : node.children[0].height | |
const secondItemPosition = layoutMode === 'HORIZONTAL' ? node.children[1].x : node.children[1].y | |
const itemSpacing = secondItemPosition - (firstItemPosition + firstItemSize) | |
node.layoutMode = layoutMode | |
node.itemSpacing = itemSpacing |
This file contains hidden or 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
import React from 'react' | |
import { StyleSheet, StyleProp, ViewStyle, View, FlexAlignType, ViewProps } from 'react-native' | |
type HStackProps = ViewProps & { | |
align?: FlexAlignType | |
style?: StyleProp<ViewStyle> | |
} | |
const HStack: React.FC<HStackProps> = ({ align = 'stretch', style, children, ...delegated }) => { | |
return ( |
This file contains hidden or 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
{ | |
"title": "Left Control + Spacebar to Enter", | |
"rules": [ | |
{ | |
"description": "Left Control + Spacebar to Enter", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "spacebar", |
This file contains hidden or 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(){var%20href_pc="https://twitter.com/settings/your_twitter_data/twitter_interests";var%20href_mobile="https://mobile.twitter.com/settings/your_twitter_data/twitter_interests";if(location.href!==href_pc&&location.href!==href_mobile){return%20location.href=href_pc;}var%20inputArray=[];var%20timer=0;var%20count=0;document.querySelector("main").querySelectorAll('input[type="checkbox"][checked]').forEach(function(input){inputArray.push(input);});window.addEventListener("error",function(error){clearInterval(timer);alert("エラーが発生したため中断しました");});timer=setInterval(function(){var%20input=inputArray[count];var%20label=input.closest("label");var%20offsetTop=input.getBoundingClientRect().top+window.scrollY-100;window.scrollTo(0,offsetTop);label.dispatchEvent(new%20MouseEvent("click"));count++;if(count===inputArray.length){clearInterval(timer);alert("すべてのチェックを外しました");}},3000);})(); |
This file contains hidden or 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
blendModes = { | |
/* eslint-disable @typescript-eslint/naming-convention */ | |
ADD: PIXI.BLEND_MODES.ADD, | |
ADD_NPM: PIXI.BLEND_MODES.ADD_NPM, | |
COLOR: PIXI.BLEND_MODES.COLOR, | |
COLOR_BURN: PIXI.BLEND_MODES.COLOR_BURN, | |
COLOR_DODGE: PIXI.BLEND_MODES.COLOR_DODGE, | |
DARKEN: PIXI.BLEND_MODES.DARKEN, | |
DIFFERENCE: PIXI.BLEND_MODES.DIFFERENCE, | |
DST_ATOP: PIXI.BLEND_MODES.DST_ATOP, |
NewerOlder