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
/* | |
This is the c configuration file for the keymap | |
Copyright 2012 Jun Wako <[email protected]> | |
Copyright 2015 Jack Humbert | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 2 of the License, or | |
(at your option) any later version. |
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
precision mediump float; | |
varying vec2 vTextureCoord; | |
uniform sampler2D uSampler; | |
uniform vec2 uResolution; // app.screen | |
uniform vec2 uMouse; // -1.0 ~ 1.0 | |
uniform vec2 uRed; | |
uniform vec2 uGreen; | |
uniform vec2 uBlue; |
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": "My Rules", | |
"rules": [ | |
{ | |
"description": "Change grave to esc / fn+grave to backslash / backslash to grave", | |
"manipulators": [ | |
{ "_comment": "graveをescにする" }, | |
{ | |
"type": "basic", | |
"from": { |
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, |
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
{ | |
"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
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
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 { 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
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 |