https://gyakky.herokuapp.com/capture/twitter/1030059159431999488#.png
VSCodeã®ä¾¿å©ãã使ããããTypeScriptåããã»ã©æéããããªããã¿ãããªã¨ãã«tsconfig.jsonã ãä½ã£ã¦ããã¨ã¡ãã£ã¨ä¾¿å©ã«ãªãããã ã£ãã®ã§ã¡ã¢ãã 追è¨ï¼ TypeScriptã¸ç§»æ¤ããäºå®ãç¡ãå ´åã§ããã°ãjsconfig.jsonãé ç½®ããã§ãååããã§ãï¼éãã¯allowJSãdefaultã§trueãªãã¨ã¨ãããããã¨ã¯tsconfig.jsonã¯å¾è¿°ã®ã³ãã³ãã§ãã¤ã©ã¼ãã¬ã¼ããçæã§ããã¨ããç¹ãããã¨æããã¾ãï¼ å ·ä½çã«ã¯ãã®ã¸ãã¨ã使ãã æªä½¿ç¨ã®importæ¤åº ã©ã¤ãã©ãªã®åæ å ±ãå©ç¨ããæ¤åº JSDocãããã°ãããå©ç¨ããåæ¤è¨¼ ããæ¹ ã¾ãtsconfig.jsonãçæãããnpx使ã
ããæ¥ããªã ãåããã®è¨äºãè¦ã¦ããã¨ãããã¨ã¯ãããã¦ããã¨ãããããã¨ãããã¦ãããã¨ããçã®ç·ãããã¨ãããã®ã ããã è»å¼±ãªç·ãã¡ãã¹ãããã®äºæ¸¬å¤æã«éª¨æãã«ããã¦ããéã«ãåã¯å骨ããããã«ããã«æ¥ãã ãã¾ãã®ããããè² ããæ°ã¯å®é大äºã ãå¼·ããªããã°ãåã¯ã¡ãã·ã³ã§éåãæ»ã¬ã ããã ã ãçã®ç·ã¨ç¡è¬ã¯éãã ã¨ãã«ãåã¯ç¥ã®é«ééè·¯ãããããã·ã¥ããã²ã¤ãããããã ã¤ã¾ãä»ããã®ã¨ãã¨ãããã¨ã ã ESLintãå ¥ãã ãåã®JavaScriptããã¡ããã¡ããªãã¨ãããã¯ãã£ã¦ããã ãªããªããã¾ãã¯ESLintã使ã£ã¦ããªãããã ã ãåã¯ã³ã¼ãã®èéãè¸ç ´ã§ããã¿ããªç·ãæ°åã£ã¦ããããããã«ãéçãæ¥ãã ããã ä»ã®ã¾ã¾ã§ã¯ãåãåãç®ãä¼ããã®ã¯ãã¤ãã®é£ã§ã¯ãªãæ··æ²ã¨ããã³ã¼ãã®æãæºãã ã ã¾ãã¯ESLintãå ¥ããã ç°¡åã ã ãåã®ãã®ç®ã®åã®æ¿ã®é»
/* @flow */ import React from "react" import styled from "styled-components" import pure from "recompose/pure" type Props = {| value: string |} export default pure(function Example(props: Props) { const { value } = props return ( <Container> <Value>{value}</Value> </Container> ) }) const Container = styled.div` width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;
æè¿Reactã¨Vueãã©ã£ã¡ã触ãæ©ä¼ããã£ããããReactã¨Vueã©ãé¸å®ããã®ï¼ãã¨ããåããæããããã¹ãã¨çããããªãã£ããªãã¨å¾æããã£ãããã¦ããã®ã§ãVueã触ã£ã¦å¾ãããææ³ãã¾ã¨ãã¦ã¿ãã çµè«ã¨ãã¦ãªã«ãæ°ãããã¨ãçºè¦ããã¨ãããã®ã§ã¯ãªããä¸éã§è¨ããã¦ããäºãèªåãªãã«åæ§ç¯ããã ãã®çµè«ã«ãªã£ãã¨æãã TL; DRVueããã¯å ¨ä½çã«åªããï¼Gentleãï¼ãæããäºãå¤ããè¯ãç¹ã ã¨æãã大è¦æ¨¡ã«ãªãã¨ãReactã®å ç¢ãã¯é åçãVueã大ãããªã£ãæã«æ¯ãããè¨è¨ãåºæ¥ããã¯å人çã«ã¯æççããããã ã£ããVueãããã ã£ããReactãã¿ãããªåå²ç¹ãããã¨ããããã§ã¯ãªãã®ã§ãæçµçã«ã¯å¥½ã¿ã«ãªã£ã¦ããã¨æããããããã好ãããããããã好ãããããã¾ã§ã®ãã¬ã¼ã ã¯ã¼ã¯éæ´ä»åã®è©±ãããã«ããã£ã¦ãåã¨åãã¬ã¼ã ã¯ã¼ã¯ã®ä»ãåããã¾ã¨ãã¦ããã¨ã
PWAã¨ãããhtml5ã®ãªãã©ã³ããæè¡è çéã§é¨ãã§ããããããªã®åãå ¥ããããªãã ãã PWAã®å®ç©è¦ãï¼è§¦ã£ãï¼ï¼ instagramã®PWAãæé«ãï¼ãã¤ãã£ãã¨è¦åãã¤ããªãï¼ï¼ã¨ãã»ããã¦ããã°ã¼âã«ã®ã¨ãã³ã¸ã§ãªã¹ãã ãã¨ã³ã¸ãã¢ãé¨ãã§ããã®ã§è§¦ã£ã¦ã¿ãã®ã ãã ãªã¯ã³ã³ã§ãã£ãã ãã¤ãã£ãã¨è¦åãã¤ããªããã ã£ããæ¬å½ã«ã¨ã³ã¸ãã¢è¾ããã»ãããããã ã¾ããã¿ã¤ã ã©ã¤ã³ä¸ã§è¤æ°æ稿ããã£ãæã«ã¹ã¯ã¤ãã§åãæ¿ããããªãã ãªãã¨å·¦å³ãã¿ããããã®ã§ããã HTMLãæä½ãã¦ãææºè¼ã®ã¬ã¯ã¬ã¯ã®æãã ã¦ã¼ã¶ã¼ã£ã¦ããããäºç´°ãªã¬ã¯ã¬ã¯ã«ææã ããããã¼ã±ããæãã人ãªããããããã ããã§ãã£ã¦ã¹ãã¼ãªã¼ãºã ããæä½ã åç»ãèªååçããªãã®ãæ¢ã¾ãã¯æ¢ã¾ãã¯ãããä½ãªã®ï¼ï¼ï¼ã£ã¦æãã ãããªã®åãå ¥ããããªãã§ããã ã«ã¡ã©ã¯ç´æ¥èµ·åã§ããªããããã£ã«ã¿ã¼ãå°ãª
æè¿Storybookãä¼ç¤¾ã§å°å ¥ãã¦ãã¦ãç°å¢è¨å®ã«ã¤ãã¦ã¾ã¨ãã¾ããã åºæ¬çã«ã¯ãå ¬å¼ãµã¤ãã®ã¨ããã§ãããã³ã³ãã¼ãã³ãã®ä¾ã®è¨è¼ããªãã£ãããReactã¨Vueã§ã§ãããã®ãç°ãªã£ãããã¦ãå°ã£ãé¨åãåã£ãã®ã§ãããã«åãç°å¢ãä½ãã¾ããã github.com æ¬ã¨ã³ããªã®ã³ã¼ãã¯Node v8.9.4ã®ç°å¢ã§åä½ã確èªãã¦ãã¾ãã Storybookï¼ https://storybook.js.org/ The UI Development Environment ReactãVueãªã©ã®UIã©ã¤ãã©ãªã§ä½æããã³ã³ãã¼ãã³ãã®åä½ããã¶ã¤ã³ãã¨ã³ã¸ãã¢ããã¶ã¤ãéã§å ±æãé²è¦§ã§ãããã¼ã«ã§ãã Storybookã¨ããååã®éããããã³ã³ãã¼ãã³ããã³ã³ãã¼ãã³ãã®éåã«å¯¾ãã¦ãstoryãè¤æ°ç¨æããstoryãã¨ã®æ¯ãèããé²è¦§ãããã¨ãã§ãã¾ãã ç°å¢æ§ç¯ Stor
Production Version Minified, 402kb Development Version Uncompressed, 752kb Overview When applying effects to text on the web, designers have traditionally been constrained to those provided by CSS. In the majority of cases this is entirely suitable â text is text right? Yet still, there exist numerous examples of designers combining CSS properties or gifs and images to create effects that evoke so
Double O ã¨ãããµã¼ãã¹ãä½ãã¾ããã ããã³ãã¨ã³ãã¯ãã¥ã¢ãª Web Components ãæ¡ç¨ãã¦ãã¦ãããã¯ã¨ã³ã㯠Lambda 㨠DynamoDB ã®ã¿ã§æ§æãã¾ããã (å³å¯ã«ã¯ CloudFront ã¨ã API Gateway ã¨ãããããã©ããã¯çãã¦ããããï¼) REST API 以å¤ã® Util 系㮠Lambda é¢æ°ã¯ãã¹ã¦ AWS Cloud9 ã§ç®¡çãããã¨ã§ç°å¢æ§ç¯ãä¸è¦ãª Lambda ãã§ãã¦æ¥½ã§ããã TL;DR ãµã¼ãã¼ã¬ã¹ã«ã¤ãã¦ã¯ããæ®éã®ãã¨ãããã¦ããªãã®ã§ã詳ããã¯è§¦ããªãã§ããã¾ãã ãã¥ã¢ãª Web Components ã ãã§ãµã¼ãã¹ãæç«ããããã¨ãã§ããã HTMLElement ã¯ã©ã¹ãç¶æ¿ããã ããªã®ã§ã¡ã¸ã£ã¼ã©ã¤ãã©ãªã¯ä¸è¦ã«ãªã£ãã Web Components ã® Custom Elements ã¯æ¨æºä»æ§
2018å¹´2æ6æ¥ ãªããããã¯ãã« Vue.js ãæ¡ç¨ããã®ã? éç¨ãã¦ã¿ã¦ã©ãã£ã ã£ã? ã¨ãã話 ä½ãç¥ããã¦ãã¾ããã Nagisa ã§ã¯ã¢ããªã ãã§ãªã Web ã®ãããã¯ãããµã¼ãã¹ãããã¾ãããã³ã¬ZERO ã UPTOON! ã æåã³ããã¯ã¸ã㳠辺ããããã§ãã ä½ãã Vue.js ã§ä½ããã¦ãã SPA ã§ã社å ã»å¤ä¸¡æ¹ãã âãªã㧠Vue.js ãªã®?â ã¨ãããèããã¾ããããã§ãä»åã¯ã©ãã㦠Vue.js ãé¸æããã®ããVue.js ã®ä½ãããã®ããVue.js ã§éç¨ãã¦ã¿ã¦ã©ãã ã£ããã®è©±ããããã¨æãã¾ãã ã¯ããã« Vue.js ãå°å ¥ããåã®ãã³ã¬ ZERO Web 㯠2.0系㮠Riot ã§ä½ããã¦ãã¾ãããä»ãã SPA ã®ãããªå½¢ã§ã¯ãªããµã¼ããµã¤ã (Go) ã«ã¦ã¡ã¿ã¿ã°ãçæã空ã®ãã¦ã³ããã¤ã³ã <div id="app"><
NaN === NaN 㯠false NaNãã¤ã¾ã㯠Not a Number å士ã®åå¤æ¯è¼ã false ã«ãªãã®ã¯ããã JavaScript ã¨ãã§ç½ ã ã¨è¨ããã¦ãã¾ãããç½ ã§ããªãã§ããªãã§ãã false ãè¿ãã¨ããä»æ§ã§ããä»æ§ã®çµç·¯ã追ãã¨ããã«ã IEEE754 ã¨ããæµ®åå°æ°ç¹ã®æ¨æºè¦æ ¼ã§æ±ºãããã¦ããããããã¨ããçç±ãããããã¾ãã ã§ã¯ IEEE754 ã§ã¯ãªã㧠NaN == NaN ã false ã«ãããã¨ãã話ã«ãªã£ãã®ããã¨ããã®ã調ã¹ã¦ã¿ã¾ããã ä»åã¯ããããæ´å²ã®è©±ã§ãã IEEE754 ç¾å¨ã®ããã°ã©ãã³ã°è¨èªã®å¦çç³»ã®å¤ããæ¡ç¨ãã¦ããæµ®åå°æ°ç¹ã®æ¨æºè¦æ ¼ã§ãã ãã®æ¨æºè¦æ ¼ã¯ä»¥ä¸ã®ãã¨ãå®ç¾©ãã¦ããã - åºæ¬å½¢å¼: äºé²ããã³åé²ã®æµ®åå°æ°ç¹æ°ãã¼ã¿ã®éåãæéãªæ°ï¼ç¬¦å·ä»ã¼ãã¨éæ£è¦åæ°ãå«ãï¼ãç¡éãç¹æ®ãªãæ°ã§ã¯ãªããå¤ï¼NaN
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? 12/1 ã« Qiita ã®ããããã¼ã¸ããªãã¥ã¼ã¢ã«ãã¾ãããããã¾ã§ React ã使ã£ã¦ãã¾ããããããããã㦠hyperapp ãæ¡ç¨ãã¾ãããã¾ãããè¦ã¦ããã¾ãæ¡ç¨äºä¾ãè¦å½ãããªãã®ã§ããã®è¨äºã§ã¯ä¸ä½ãªãã§ä»ãã¨ããã React ã§ã¯ãªã hyperapp ãé¸æããã®ããã©ãããã¨ãããé åçãªã®ãã«ã¤ã㦠ãã¬ã¼ã³ãã¼ã·ã§ã³å±¤ãå®è£ ããããã®ãã¼ã«ã¨ã㦠å¦ç¿ã³ã¹ã ã®è¦³ç¹ããæ¸ãããã¨æãã¾ãããªããã®è¨äºã«æ¸ããã¦ãããã¨ã¯å ¨ã¦å人ã®ææ³ã§ãããã¯ã£ãããã£ã¦å人ã®æ¥è¨ã¬ãã«ã§ãã ãã㨠hyperapp
PySpaçµ±åæ念ä½ã§ããããããJavaScriptãè¦ãããªããããã®æ¸ãæ¹ã¯ããè¦ããªãã¦ãããï¼ãããã代æ¿ãããï¼ã¨ãããã®ãéãã¦ã¿ã¾ããã ES6以éã®é£ããã¯ãæ§æ¥ã®æ¸ãæ¹ã«ãã©ã¹ãå¢ããã ãã§ã¯ãªãã大éã®ãæ§æ¥ã®æ¸ãæ¹ã¯ééããèªçºããããããéæ¨å¥¨ãã¨ãããã®ãä½ãåºããç¹ã«ããã¾ãã5å¹´åã10å¹´åã®æ¬ãã¦ã§ãããã¾ãå½¹ã«ç«ãã¡ã¾ããããªããæ¸ãæ¹ãè¤æ°ãããã®ã¯ã好ãå«ãã¯å½ç¶ããã¨æãã¾ãããããã¦éæ¿ã«1ã¤ã«çµã£ã¦ããã¨ãããããã¾ãããªããããã¯ããããæ°è¦ã«å¦ã¶äººããéå»ã®ããã¥ã¡ã³ããã³ã¼ããè¦ãæã«å¤ãæ å ±ãé¸å¥ããããã®ã¾ã¨ãã§ããæ®å¿µãªãããä»æã®æ¸ãæ¹ã®ã¿ã§æ§æãããæ¸ç±ãªã©ãåå¨ããªãããã§ãã ãã¶ãæ示çã«æ¸ãã¦ãã¦ãèªã¿é£ã°ã人ã¯ããã¨æãã¾ããããã§ã«æ¸ãã¦ãã人åãã§ã¯ããã¾ãããããããæ¸ãã³ã¼ãããã®ã¹ã¿ã¤ã«ã«ãã¦ããã®ã¯å¥ã«ãã
ã¿ã¤ãã«éãã«ãã使ãæ£è¦è¡¨ç¾ãæ¯åã°ã°ãã®ãå¹çæªãã®ã§ã¾ã¨ãã¦ã¿ã¾ãããåè¨èªã§æ£è¦è¡¨ç¾ã®ãµã³ãã«ãæ¸ãã¦ã¿ã¾ããã æ£è¦è¡¨ç¾å¼ Emailã¢ãã¬ã¹ ^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$ ãã¡ã¤ã³å ^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]\.[a-zA-Z]{2,}$ ã¤ã³ã¿ãããURL ^(http|https)://([\w-]+\.)+[\w-]+(/[\w-./?%&=]*)?$ ã¦ã¼ã¶ã¼å (Twitter username) ^[a-zA-Z0-9_\-.]{3,15}$ åºå®é»è©± ^0\d-\d{4}-\d{4}$ æºå¸¯é»è©± ^(070|080|090)-\d{4}-\d{4}$ IPé»è©± ^050-\d{4}-\d{4}$ ããªã¼ãã¤ã¤ã« ^0120-\d{3}-\d{3}
Mercari Advent Calendar 2017 13æ¥ç®ã¯ ããã³ãã¨ã³ããã¼ã ã® @sottar ã web ã¢ããªã®éçºï¼ç¹ã«ã¢ãã¤ã«éçºï¼ã§å½¹ç«ã¤ Chrome DevTools ã®ä¾¿å©ãªæ©è½ãç´¹ä»ãã¾ãã ã¯ããã« ã¡ã«ã«ãªã§ã¯ PC ããã®ã¢ã¯ã»ã¹ãããã¢ãã¤ã«ããã®ã¢ã¯ã»ã¹ãå¤ããããweb ã¢ããªãã¢ãã¤ã«ããã®ã¢ã¯ã»ã¹ãæèããã³ã¼ããæ¸ãå¿ è¦ãããã¾ãã ãããã¢ãã¤ã«åãã®ã³ã¼ããæ¸ãéã«ãæ¯åå®æ©ãæ¥ç¶ãã¦ç¢ºèªããã®ã¯é¢åã§ããããã§æè¿ã®ãã©ã¦ã¶ã«ä»å±ãã¦ããéçºè ãã¼ã«ã«ã¯ã¢ãã¤ã«åãã®ã³ã³ãã³ãã®éçºã«å½¹ç«ã¤æ©è½ãæè¼ããã¦ããããããã®æ©è½ã使ãããªããã¨ã§ã¢ãã¤ã«åãã®éçºããã¤ã¤ãéçºã®ã¹ãã¼ããä¸ããäºãå¯è½ã§ãã ããã§æ¬æ¥ã¯ Chrome DevTools å ã«ãããç¹ã«ã¢ãã¤ã«ããã¤ã¹åãã®ã³ã³ãã³ãéçºã«å½¹ç«ã¤æ©è½ãç´¹ä»ãã¾ãã Dev
Unicodeã®UTF-16ã¨ã³ã³ã¼ãã£ã³ã°ã§ã¯ã»ã¨ãã©ã®æåï¼ã³ã¼ããã¤ã³ãï¼ã¯2ãã¤ãã§è¡¨ç¾ãããããUnicodeã«å¾ãã追å åé²ãããæåã®å¤ãã¯4ãã¤ãã§è¡¨ç¾ãããã4ãã¤ãæåããã¾ãæ±ããªãããã°ã©ã ã¨ããã®ã¯ããã¨ããããããããä¸çä¸ã§åºã使ãããããã«ãªã£ãçµµæåãããã«ãã£ã¦4ãã¤ãæåã§ããããã§ããã®ãããªæåãæ±ããªãåé¡ããããã¼ã¹ã§è§£æ±ºã«åããã¤ã¤ãããããã«ã¤ãã¦å°ã説æãã¦ã¿ããã¨æãã Unicodeã80年代ãã90年代åé ã«ããã¦ãã¶ã¤ã³ãããã¨ãã®ç®æ¨ã®ä¸ã¤ã¯ãUnicodeã«å«ã¾ããæåæ°ã65536å以å ã«åãããã¨ã ã£ããç¾ä»£ã®æç« ãå®ç¨çãªã¬ãã«ã§è¡¨ãããã«ã¯ãæ¼¢åãªã©ãå«ãã¦ãããã ãã®ç¨®é¡ã®æåãããã°ååã ã¨èããããã®ã ãå½ç¶ããã¯1æåã2ãã¤ãã§è¡¨ããã¨ã念é ã«ç½®ãã¦ãããã¤ã¾ãã³ã³ãã¥ã¼ã¿ã®æºç±æããå½æã«è³ãã¾ã§åç´ã«è±èª
ãããã¯ç§ãDefinitelyTyped (DT) ã失æã ã¨æã£ã¦ããçç±ãã§ãã DefinitelyTypedã¯æ確ã«å¤±æã ã¨æã£ã¦ããã®ã§ããããé¿ããã®ã¯ãããªã«é£ãããªãããªã¨ãã¾ã (1) anyãèªãã¦ãåããªãã¦ãããããã¨ããæ°æã¡ã§ãã (2) ä¸å¤®repoã¯ä½ããããããã®gemã«å¯¾ãã¦åå®ç¾©ãããããããã¤ãã ã§ãªãã¨ããªãã£ãããâ FUJI Goro (@__gfx__) September 19, 2017 ãããã話ã®çºç«¯ã§ãã DTã«ã¤ãã¦ã¯ä»¥åãã¾ãã¡ã¤ã±ã¦ãªãçç±ãæ¸ãããã¨ãããã¾ãã TypeScriptã®DefinitelyTypedã¯ããã¡ã§ãã¨ãã¨ããã¾ã使ããã°ã©ããã¼ããããã®è·é¢æããã - Islands in the byte stream ãã®æã®è©±ãä¸è¨ã§ã¾ã¨ããã¨ãã©ã¤ãã©ãªã®ä½è ã§ã¯ãªã第ä¸è ãã¡ã³ããã¦ãããã¨ãå¤ã
èªç¤¾ã®æ±ºç®ã 9 æ«ãã㨠2 é±éã¨ãããã¨ã§æ¯ãè¿ã£ã¦ã¿ããã åæãæè³æã§ã ä»æã¯ç¨®èãæãªãã¦èãã¦ããããéè¯ãååæã«ããªã£ããæ£ç´è²ã ã¨æ³å®å¤ã®æã ã£ãããã«æããã èªç¤¾è£½åãä¸å¿ã«æ¯ãè¿ã£ã¦ããã©ãã©æ¸ãã¦ããã éè¯ãèªç¤¾è£½åã売ãå§ããå¶æ¥ãããªãã®ã§ãå®å ¨ã«åãåãããå£ãéãã¦å¾ ã¤ã¹ã¿ã¤ã«ãªã®ã§ããã¤å£²ããããéé ¼ã¿ã ããã 2017 å¹´ã«å ¥ã£ã¦ããã¯ã»ã¼æ¯æ売ãã¦ã社å¤ã®ãæä¼ãã®å£²ä¸ãããå¤ããã¨ããã£ããããã èªç¤¾è£½åã®å£²ä¸ã¯ãã£ãã·ã¥ããã¼çã«ã¨ã¦ãå®å®ããã¨ããäºããå®æãã 1 å¹´ã ã£ãã 大æã«æ¡ç¨ããå§ããå ¬éã§ããç¯å²ã ã¨ãªã³ã¼ãã¹ã¯ã¨ããã½ãããã³ã¯ï¼æ¬ç§°ç¥ï¼ã¨ãã大æã«æ¡ç¨ãããã®ã¯ç¤¾ä¼çä¿¡ç¨ã¨ããé¢ã§å¤§ããã£ããæã¡åããã§ããã¡ãå°ããä¼ç¤¾ã ããå¿é ã¨ãã話ããªããªã£ãã 製åã®æ§è½ãæ©è½ãå質ãªã©ã ãã§åè² ãã§ããããã«ãªã£ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}