www.typescriptlang.org TypeScript Websiteã®ç¿»è¨³ãé²ãã¦ãããã§ãããã¢ã¯ãã£ããªã¬ãã¥ã¯ã¼ãããããä¸æãã¦ããç¶æ ã§ãã èå³ããã°Discordã®#localize-jaã¾ã§é£çµ¡ãã ãã https://discord.com/invite/typescript
åå¤åãå¤å®ããå | uraway ref: https://github.com/Microsoft/TypeScript/issues/27024#issuecomment-421529650 ããç¨åº¦åããºã«ã«æ £ãã¦ããæ¹ã¯ãåå士ãåããã©ããå¤å®ããåã¨èãã¦æ¬¡ã®ããã«æãã¤ãã®ã§ã¯ãªãã§ããããï¼ type Equals<X, Y> = [X]</x,>â¦
TypeScript 4.5 | uraway ref: https://devblogs.microsoft.com/typescript/announcing-typescript-4-5/ ECMAScript ã¢ã¸ã¥ã¼ã«ãµãã¼ãã®å»¶æ å½å TypeScript 4.5 beta ã§ã¯ãECMAScript ã¢ã¸ã¥ã¼ã«ããµãã¼ããããªãã·ã§ã³ããã£ãããç¾å¨ã¯ãã¤ããªã¼â¦
TypeScript 4.4 https://devblogs.microsoft.com/typescript/announcing-typescript-4-4/ ä»£å ¥ãããå¤å¥å¼ã® control flow analysis 以åã® TypeScript ã§ã¯ãtype guard ã®å¤å¥å¼ãå¤æ°ã«ä»£å ¥ããå ´åããã®å¤å¥å¼ã¯æ©è½ããªãã function foo(arg: unknowâ¦
TypeScript ã®é¥ããããç½ Oreilly ã® Effective Typescript ãèªãã ã説æãç°¡æ½ã§ãããããããç« ã®æ§æãèªã¿ããã¨ããã ãèªãã°è¯ãããã«ãªã£ã¦ãããããããèªããã対象èªè 層ã¯ããç¨åº¦ TypeScript ã使ã£ã¦ãããã²ã¨éãã®æ©è½ã触ã£ããã¨â¦
ãã©ã¦ã¶ä¸ã§TypeScriptããæ軽ã«è©¦ãããã¨æã£ãã®ã§ä½ãã¾ãã github.com ã³ã¼ãã¹ãããããé¸æãã¦æ¡å¼µã®ã¡ãã¥ã¼ãæ¼ãã¨ããã®ã³ã¼ããè²¼ãä»ããTS playgroundãéã æ¡å¼µã®ã¢ã¤ã³ã³ãã¯ãªãã¯ããã¨ãTSãå®è¡ã§ãããããã¢ãããéãã®ã§GitHuâ¦
C# ã ã¨ã¸ã§ããªã¯ã¹ã®åãã©ã¡ã¼ã¿ã¯å®è¡æã«ãå©ç¨ã§ãã using System; var factory = new Factory(); factory.LogType<Car>(); // Car class Car { string color = "red"; } public class Factory { public void LogType<T>() { Console.WriteLine(typeof(T).Nam</t></car>â¦
10åã§ä½ãSvelteãã¼ã¯ãã¦ã³ã¨ãã£ã¿ åè: Build a Svelte JS App: Magic Framework (Svelte 3 Tutorial) - Snipcart Svelteã¨ã¯ ãããè¦ãã¨Svelteãä½ãªã®ãã ãããåãã https://youtu.be/AdNJ3fydeao ãããèªãã¨ãªãSvelteãä½ããã¨ãããã ãâ¦
TypeScriptã§å®è£ ãããã¼ã¿æ§é GitHub - uraway/data-structures.ts at master TOC LinkedList Stack Queue HashTable Tree Heap Trie BinarySearchTree Graph åè LinkedList LinkedListã¯ãåè¦ç´ ã次ã®è¦ç´ ãåç §ãæã£ã¦ããã·ã¼ã±ã³ã¹ãªãã¼ã¿æ§é ã§â¦
Next.js API Route: ãã¡ã¤ã«ããµã¼ããã ç°å¢: next: v10.0.1 åè: https://nextjs.org/docs/basic-features/data-fetching#reading-files-use-processcwd https://github.com/vercel/next.js/issues/8251 https://medium.com/@boris.poehland.business/nâ¦
æ¿å ¥ã½ã¼ãã®ã¢ã«ã´ãªãºã ä¸ããããé åãã½ã¼ãããéãæ¿å ¥ã½ã¼ããç¨ããã¨ããã ä¸ããããé åããã½ã¼ãæ¸ã¿ã®é å(é·ãã¯1)ã¨æªã½ã¼ãã®é åã«åå²ãããæªã½ã¼ãã®é åã®ä¸ããä¸ã¤é¸ã³ãã½ã¼ãæ¸ã¿ã®é åã«æ¿å ¥ãããæ¿å ¥ãããå¤ã¨ãé£ãåãè¦â¦
CircleCIã§vscode-test vscode-test ã«ãµã³ãã«ããªãã£ãã®ã§ã¡ã¢ jobs: test: docker: - image: cimg/node:lts-browsers steps: - run: sudo apt update && sudo apt install libxss1 xvfb - run: | export DISPLAY=':99.0' /usr/bin/Xvfb :99 -screen 0 1â¦
Functional Componentã§forceUpdateãã¨ãã¥ã¬ã¼ããã åè https://www.telerik.com/blogs/what-is-render-react-how-do-you-force-it?utm_source=reactdigest&utm_medium=email&utm_campaign=274 https://reactjs.org/docs/hooks-faq.html#is-there-sometâ¦
HTTPSãã¼ã¸ã«ã¦ãAWS S3ã«ä¿åãããç»åãã¡ã¤ã«ãActive Storageã§é ä¿¡ããã¨ãMixed contentã¨ã©ã¼ãçºçãã¾ãã ref: https://www.mixedcontentexamples.com/Test/NonSecureImage https://www.mixedcontentexamples.com/ ãããã¬ã¼ãã¼ã«ã®Securityã¿â¦
CircleCIã§ãããªãã¯ã¹ãã«ã ç¾ç¶CircleCIã§ã¯ãããªãã¯ã¹ãã«ãã¯ãµãã¼ãããã¦ãã¾ããããå®ç¾ããããã®æ¹æ³ãããã¤ãããã¾ãã matrixãã¼ããµãã¼ãããã¾ãã Configuring CircleCI - CircleCI node v8ãv10ãv12ãããããã®å®è¡ç°å¢ã§ã©ã¤ãâ¦
ä½ãã¾ããããããããé¡ããã¾ãã Orb Registry: npm-publisher GitHub Repo: npm-publisher 使ç¨ä¾ 使ãæ¹ NPMãã¼ã¯ã³ãåå¾ããç°å¢å¤æ°NPM_TOKENã¨ãã¦ã»ãããpackage.jsonã®æ å ±ã«å¾ã£ã¦ããã±ã¼ã¸ãå ¬éãã¾ãã ã¢ã¸ã¥ã¼ã«ã®ãã¦ã³ãã¼ãããã«ãâ¦
é åã®ç©åæ¼ç®ã®ã¢ã«ã´ãªãºã ãç¹å¥ãªé åããä¸ããããã®ã§ç©åæ¼ç®ãè¡ã£ã¦å¤ãè¿ãããç¹å¥ãªé åãã¯æ°å¤ãããã¯ãç¹å¥ãªé åãããã¤ããç¹å¥ãªé åãå ã®æ°å¤ããã¹ã¦å ç®ãããããã¹ãã¬ãã«ã«å¿ãã¦ãã®åãä¹ç®ããã ä¾ãã°ã [x, y] â x + yâ¦
äºåæ¢ç´¢æ¨(binary search tree)ããè¿ä¼¼å¤ãæ±ãã äºåæ¢ç´¢æ¨ã®ãã¼ã¿ã¨targetãä¸ãããããäºåæ¢ç´¢æ¨ã®ãã¼ã¿ã®ä¸ããtargetã®è¿ä¼¼å¤ãæ±ããã ä¾ãã°æ¬¡ã®ãããªäºåæ¢ç´¢æ¨ã®ãã¼ã¿ã¨target 5ãä¸ããããã¨ããçãã¯6ã§ããã 8 /\ 3 10 /\ \ 1 6 14â¦
VS Code Extensionã®å ¬éãç°¡åã«ããCircleCI Orbä½ãã¾ãã ä½ãã¾ãã: https://circleci.com/orbs/registry/orb/uraway/vsce ãªãã¸ããª: https://github.com/uraway/vsce 使ãæ¹ ç°å¢å¤æ°ã¨ãã¦VSCODE_MARKETPLACE_TOKENã«Personal Access Tokenãã»ãâ¦
2ã¤ã®æ°ã®å 2ã¤ä»¥ä¸ã®ã¦ãã¼ã¯ãªæ°åã®éåAã®ä¸ãããã¿ã¼ã²ãã(target)ã®æ°åã®åã¨ãªãæ°åã®ãã¢ãè¦ã¤ãåºããæ°åã®ãã¢ã¯æ大1ã¤ãããçãã¯å¤ãå°ããé ã«ä¸¦ã¹ãã¨ããã ä¾ãã°Aã1, 10, 5, -1ã12ãtargetã15ã§ããã°ãçãã¯10, 5ã®ãã¢ã§ãâ¦
ãã¤ããªãµã¼ã å: ã½ã¼ããããæ°å¤ã®é åã¨æ°å¤targetãåãåããé åä¸ã®targetã®ã¤ã³ããã¯ã¹ãæ±ããããã®éããã¤ããªãµã¼ããç¨ãããã¨ã ã¢ã«ã´ãªãºã å®è£ $O(\log n)$ é åã®è¦ç´ æ°ãnã¨ããã¨ããleft=0ãright=nã®å¤æ°ãä½ããã¾ããleftã¨riâ¦
VPC Peeringã使ã£ã¦ãç°ãªãVPCã«ããRDSã¨EC2ãæ¥ç¶ãã VPC Peeringã¨ã¯ ãã©ã¤ãã¼ãIPã¢ãã¬ã¹ã使ã£ã¦ã2ã¤ã®VPCéã§ãã©ãã£ãã¯ãã«ã¼ãã£ã³ã°ãããã¨ãã§ãã CIDRãä¸è´ã¾ãã¯éè¤ããVPCéã®æ¥ç¶ã¯ã§ããªã VPC Peeringãè¨å®ãã VPC Peeringãâ¦
Palindrome Check (åæãã§ãã¯) ã¢ã«ã´ãªãºã æååstringãåãåã£ã¦ãåæãã©ããããã§ãã¯ããããã¹ã¦ã®æåãæ¯è¼ããªãã¨ãããªãã®ã§ãã©ããã£ã¦ãè¨ç®éã$O(n)$以ä¸ã«ãªãã¯ãã ã¢ã«ã´ãªãºã å®è£ (1) $O(n)$ 両端ããæåãçãããæ¯è¼ãã¦â¦
ãã£ããããæ°åã®ã¢ã«ã´ãªãºã åå¼·ãã¦ãã¡ã¢ ãã£ããããæ°åã¨ã¯ ããã£ããããæ°åãã¨ã¯ãåã®ï¼ã¤ã®æ°ãå ããã¨æ¬¡ã®æ°ã«ãªããã¨ããæ°åã1çªç®ã¯0ã2çªç®ã¯1ãnçªç®ã®æ°åã¯(n - 1)çªç®ã¨(n - 2)çªç®ã®æ°åã®åã ä¾ãã°ã6çªç®ã®æ°ã¯5 (0, 1, â¦
No such file or directory - bs_fetch:atomic_write_cache_file:chmod docker-composeã使ã£ã¦ãµã¼ãã¼ã¨sidekiq両æ¹ãåãããã¨ããã¨æ¬¡ã®ãããªã¨ã©ã¼ãåºãå ´åãããã¾ã: $ docker-compose up app_1 | [12] Puma starting in cluster mode... app_1 |â¦
TL;DR 2019/03/20ç¾æç¹ã§ã¯namespaceã¯CLIãããªãã¼ã ãåé¤ãã§ããªã ãããããµãã¼ãã«é£çµ¡ããã°ããã«å¯¾å¿ãã¦ããã 表é¡ã«ã¤ã㦠namespace ãä½ãééããã®ã§ããªãã¼ã æ¹æ³ãæ¢ããã¨ãããããã¥ã¡ã³ãã«æ¬¡ã®ä¸æã: Note: Namespaces cannot â¦
ã¨ãããã解ã¯ãããªã£ãã ã©ã¤ãã©ãªã®ãã¼ã¸ã§ã³ axio 0.18.0 react 16.8.3 react-dom 16.8.3 åä½ç¢ºèªã¯ãã¡ã: ãã¿ã³ã¯ãªãã¯ã§ã³ã³ãã¼ãã³ãã®ãã¦ã³ãã»ã¢ã³ãã¦ã³ããåãæ¿ãã§ãããAPIãªã¯ã¨ã¹ãä¸ã«ã¢ã³ãã¦ã³ããããã¨ãä¸ã®ãããªã¨ã©ã¼ã¡â¦
TypeScript handbook Enums https://www.typescriptlang.org/docs/handbook/enums.html Enums Enums enums ã§ã¯ãååä»ãã®å®æ°ç¾¤ãå®ç¾©ãã¾ãããã®å®æ°ç¾¤ã®å 容ãæ示ããããããããç°ãªãã±ã¼ã¹ãç°¡åã«ä½æãããã¨ãã§ãã¾ããTypeScript ã§ã¯ãæ°å¤â¦
Rails 5 API + devise ã§ãã¹ã¯ã¼ãã®ãªã»ãã åå: http://uraway.hatenablog.com/entry/2016/07/11/090206 Rails 5 API + devise ã®è³æãããã¾ããªãã£ãã®ã§ã¡ã¢ãåæã¨ã㦠devise ã使ã£ãã¦ã¼ã¶ã¼ç»é²ããã°ã¤ã³æ©è½ãæã£ã¦ãã API ãä½æãã¦ãâ¦
Docker ã§å§ãã golang å ¥é Docker ç°å¢ åä½ç¢ºèªæ¸ã®ãã¼ã¸ã§ã³: Version 2.0.0.0-mac81 (29211) ãã¡ã http://studio-andy.hatenablog.com/entry/go-todo-crud ããããããããããã¦è¯ãã®ã§ãããã«æ²¿ããã㪠Docker ç°å¢ãæ´ãã¦ã¿ãã ã¾ãã¯ä½ã¯â¦