所得税額 = (所得金額(A) - 所得控除額(B)) × 税率 - 税額控除額(C)
- 「所得金額(A)- 所得控除額(B)」は 課税所得金額 といい、1,000円未満の端数を切り捨てる。
| // https://letsbuildui.dev/articles/building-a-dropdown-menu-component-with-react-hooks | |
| import { useState, useEffect, RefObject } from 'react'; | |
| export const useDetectOutsideClick = (ref: RefObject<HTMLElement>, initialState: boolean) => { | |
| const [isActive, setIsActive] = useState(initialState); | |
| useEffect(() => { | |
| const pageClickEvent = (event: MouseEvent) => { | |
| // If the active element exists and is clicked outside of | |
| if (ref.current !== null && !ref.current.contains(event.target as Node)) { |
| // http://stackoverflow.com/questions/1219860/javascript-jquery-html-encoding | |
| function htmlEncode(value){ | |
| return $('<div/>').text(value).html(); | |
| } | |
| function htmlDecode(value){ | |
| return $('<div/>').html(value).text(); | |
| } |
| import { Transformer } from 'unified'; | |
| import { Element } from 'hast'; | |
| import { visit } from 'unist-util-visit'; | |
| export default function rehypeRemoveStyleAttrs(): Transformer { | |
| return (tree) => { | |
| visit(tree, 'element', (node: Element) => { | |
| if (node.properties?.style) { | |
| node.properties.style = undefined; | |
| } |
| #!/usr/bin/env bash | |
| # Check that terminfo exists before changing TERM var to xterm-256color | |
| # Prevents prompt flashing in Mac OS X 10.6 Terminal.app | |
| if [ -e /usr/share/terminfo/x/xterm-256color ]; then | |
| export TERM='xterm-256color' | |
| fi | |
| # Turn off standout; turn off underline | |
| tput sgr 0 0 |
| // https://www.netlify.com/blog/2017/07/18/http/2-server-push-on-netlify/ | |
| const debug = require('debug')('nuxt:netlify-http2-server-push'); | |
| const path = require('path'); | |
| const glob = require('glob'); | |
| const fs = require('fs'); | |
| module.exports = function module(moduleOptions) { | |
| // This module is only enabled on production builds | |
| if (this.options.dev) { |
| Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function. |
| { | |
| "profiles": [ | |
| { | |
| "complex_modifications": { | |
| "rules": [ | |
| { | |
| "description": "Toggle input source (English or Japanese) by kana key (available since Karabiner-Elements 11.1.8)", | |
| "manipulators": [ | |
| { | |
| "conditions": [ |
| /* YUI Fonts.css | |
| Copyright (c) 2010, Yahoo! Inc. All rights reserved. | |
| Code licensed under the BSD License: | |
| http://developer.yahoo.com/yui/license.html | |
| version: 3.3.0 | |
| build: 3167 | |
| */ | |
| body{font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}select,input,button,textarea{font:99% arial,helvetica,clean,sans-serif;}table{font-size:inherit;font:100%;}pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height:100%;} | |
| @mixin font_10 { font-size: 77%; } |