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
0. | |
以下実行しても、結局、nodeとnpmを入れ直すしかないかもしれないな〜とは思っています。 | |
1. | |
babelがコマンドとして登録されているように見えます。 | |
babelコマンドが何を参照しているのか、Powershellで、以下コマンドを実行して、見てみてください。 | |
$ gcm babel | fl | |
参考:https://qiita.com/Hiraku/items/e42bc5756157949a9742 |
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://status.cloud.google.com から、Google Cloud Functions のインシデントのみを抜き出し、概要とURIを表示 | |
curl https://status.cloud.google.com/incidents.json | jq -r '. | map(select(.service_name == "Google Cloud Functions")) ' | jq -r '. | map({external_desc: .external_desc, uri: .uri})' |
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 { default: creditCardScript } = await import("./creditCardScript"); |
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
import { useEffect } from 'react'; | |
export const useDidMount = (func: Function) => useEffect(() => { func() }, []); | |
export const useWillUnMount = (func: Function) => useEffect(() => func, []); |
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
import styled, { css } from 'styled-components'; | |
const mixinColor = css` | |
color: white; | |
background: blue; | |
`; | |
const mixinBorder = css` | |
border-radius: 5px; | |
`; |
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
/** | |
* 数値 n を length 桁の文字列にして返す。n桁数より少ない場合は0埋めする。 | |
* @param {Number} n 数値 | |
* @param {Number} length 文字列の長さ | |
* @return {String} n の桁数が length に満たない分を 0埋めした文字列 | |
*/ | |
export default function zeroPadding(n, length) { | |
const N = `${n}`; | |
return (length + 1) - N.length > 0 ? Array((length + 1) - N.length).join('0') + N : N; | |
} |
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 eventNames = () => { | |
const deviceEvents = { | |
Touch: typeof document.ontouchstart !== 'undefined', | |
Pointer: typeof window.PointerEvent !== 'undefined', | |
MSPointer: window.navigator.msPointerEnabled, | |
}; | |
if (deviceEvents.Pointer) { | |
return { | |
start: 'pointerdown', |
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 eventNames = () => { | |
const deviceEvents = { | |
Touch: typeof document.ontouchstart !== 'undefined', | |
Pointer: window.navigator.pointerEnabled, | |
MSPointer: window.navigator.msPointerEnabled, | |
}; | |
if (deviceEvents.Pointer) { | |
return { | |
start: 'pointerdown', |
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
<?xml version="1.0"?> | |
<root> | |
<!-- http://qiita.com/khiri-co/items/2e509be9ad94f09b3be9#%E5%8F%B3ctrl--%E3%82%AD%E3%83%BC--updownleftright を一部改変 --> | |
<!-- Vendr/Device Id の設定 --> | |
<devicevendordef> | |
<vendorname>MiSTEL</vendorname> | |
<vendorid>0x04d9</vendorid> | |
</devicevendordef> | |
<deviceproductdef> |
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(d,url,w){var%20title=d.getElementsByTagName('title')[0].innerHTML.trim();text='['+title+'%20'+url+']';%20w.prompt('Copy%20to%20clipboard:%20⌘+C%20or%20Ctrl+C',text);})(document,%20location.href,%20window) |
NewerOlder