javascript
確çåå¸ããã®å¾®åå¯è½ãªãµã³ããªã³ã°ææ³ ç¢ºçãã¯ãã«ã«ãã¤ãºå ¥ãã¦argmaxããã°indexãåãããã®ã¾ã¾one-hot vectorã«ãã§ãã. => ãã¤ãºã®å ¥ãæ¹ã工夫ããã¨åå¸éãã®ãµã³ããªã³ã°ãå¯è½ (Gumbel-Max Trick) ãµã³ããªã³ã°ã¯ãããã©å¾®åãããã aâ¦
ãã¯ããã½ã³ã³ãããã§Reactã¢ããªãä½æã»å ¬éã§ããæ代. å¿ è¦ãªãã® Webãã©ã¦ã¶ GitHubã¢ã«ã¦ã³ã steps ã¬ãã¸ããªçæ: 好ããªååã®GitHubã¬ãã¸ããªã.gitignore=Nodeã§çæ (10ç§) ç·¨éã¢ã¼ã: âCodeãã¿ã³ -> Open with Codespaces (å¾ ã¡1å) ç´ â¦
A: é次å¦çã¨ä¸éçµæå©ç¨ããé¢å¿ã«åºã¥ãã¦åé¢ã§ãã Async Generator (Async Iterator with Generator) ã¨ã¯ async function*ã§å®ç¾©ã§ããGeneratorã®ãã¨ã ä¾: // Delay utility const asyncProcessing = (output: number): Promise<number> => new Promise((</number>â¦
Node.jsã§ES Modulesããã¤ãã£ãã«åãæ代ãªã®ã§ãã Working Code // package.json { "type": "module", } // eptESM.js export const f1 = () => 1; // eptCJS.cjs const f2 = () => 2; module.exports = f2; // ipt.js import { f1 } from "./eptESM.jsâ¦
Atom IDEã¨ã¯: Atomã¨ãã£ã¿ãçµ±åéçºç°å¢ (Integrated Development Enviroment)ã®ããã«éç¨ãããã¨ããæ¦å¿µ Atomãã©ã°ã¤ã³ç¾¤ã«ãã£ã¦å®ç¾ã§ãã IDE-like UI: atom-ide-ui Language Server support: atom-languageclient åè¨èªã§ ide-xxx (e.g. ide-tyâ¦
Unity & Node.js使ããªããæé5åã§ã§ãããã æ¦è¦ Unity (client) å´ã¯websocket-sharpããNode.js (server) å´ã¯wsã使ãã Unityã¢ããªã®ç»é¢clickåæ°ãserverã¸éããã¹ãã³ã¼ããæ¸ããã®ã¨ããã æé websocket-sharpã®ãã¦ã³ãã¼ãã¨ãã«ã serveâ¦
ãã©ã¦ã¶ã¯ã¢ã¸ã¥ã¼ã«ãæã¤ã ãã©ã¦ã¶ã¨ã¢ã¸ã¥ã¼ã« ã¢ã¸ã¥ã¼ã«åã¯ç¶ºéºã§ç®¡çããããå®å ¨ãªã³ã¼ããçãã ã¢ã¸ã¥ã¼ã«ã¯æé«ã ã ããã¦ä»ãããã©ã¦ã¶(ããã³ãã¨ã³ã)ã§ãã¢ã¸ã¥ã¼ã«ã¯ä½¿ãã ã¢ã¸ã¥ã¼ã«ã¯åä½ã§åãã®ã主ããä»äºã§ã¯ãªãã ä»ã®ã¢ã¸â¦
Gmailã¸æ±ºããããå½¢å¼ã§äºå®ã®ã¡ã¼ã«ãéãã¨ãGoogle Calendarã«ãã®äºå®ãèªåç»é²ããã. ãã®æ¹æ³ã調ã¹ã¦ã¿ã. æ¦è¦ ä»çµã¿ schema.orgãå®ããå½¢å¼ã«åã£ã¦äºå®ãã¡ã¼ã«ããã ã¡ã¼ã«ã¯htmlã¡ã¼ã«ãJSON-LDçãå½¢å¼ã¨ãã¦å®ãããã¦ããã Gmailãµã¼â¦
Ramda.jsã®é¢æ°ãæ©è½ãã¨ã«æ´çãã¦ã¿ãã æ¥æ¬èªã®Ramda.jsè¨äºãå°ãªãã®ã¯ããªãã§ãªãã ããï¼ å¶å¾¡æ§é ã®æ½è±¡å æ¡ä»¶åå² ifç³» R.ifElse R.ifElse(condition, onTrue, onFalse) conditioné¢æ°ã«åºã¥ãã¦onTrue || onFalseé¢æ°ãå®è¡. http://ramdajs.câ¦
éåæã¨ã¨ã©ã¼å¦ç ã¨ã©ã¼ãèµ·ãããããè¤æ°ã®éåæå¦çãæ±ãã®ããã©ãã ã¨ããåãã£ã. éåæå¦çã®å®äºã¿ã¤ãã³ã°ã¯ãããã¯ã¼ã¯ã«ãã£ã¦åå¾ããã¨ã©ã¼ã§ä»åãç´ãå¦çãå¿ é ã«ãªã. ãã¾ãå¦çããããã®æè¡ã¨ã㦠Async/await try-catch (withâ¦
æå¤ã¨é£ããããã©çåããã¨ç°¡åã æ¹æ³ Node.js謹製ãHTTP.request() requestã©ã¤ãã©ãª 1. HTTP.request() Node.jsã«ä»éããã¢ã¸ã¥ã¼ã«. ä»æ§æ¸éã使ãã°ç°¡åã«ä½¿ãã. HTTP | Node.js v9.3.0 Documentation 2. requestã©ã¤ãã©ãª npmã§é å¸ããã¦ãã©â¦
å ¥åå¤ãã¤ã³ã¿ã©ã¯ã·ã§ã³ã®çµæããã¼ã¿ã¨ã°ã©ãã«åæ ããä»çµã¿ã¯d3.jsã«åãã£ã¦ããã®ãå¦ã çµè« d3.jsã«ã¯åæ¹åãã¤ã³ãã£ã³ã°ã«è©²å½ããä»çµã¿ããªã. dataã®åå¾ã»æ´æ°ã¨rebindingãrebindingå¾ã®æ´æ°ãå¿ è¦. ãã¼ã There's no data-binding magiâ¦
ä¸ã®textè¦ç´ ãã¯ãªãã¯ãã¦ãããããªãã¨ç·¨éã§ããã!! ç§ã¯textè¦ç´ ãã§ãç·¨éã§ãããï¼ (ã¯ãªãã¯ãã¦ã¿) ããã人åã: ä»çµã¿ãä¸è¨ã§ãã㨠contentEditableãªHTMLè¦ç´ ã®ä¸ã«textè¦ç´ ãé ç½®ãããã®ã»ãããforeignObjectã¸å ¥ãã¦SVGè¦ç´ ä¸ã«åããâ¦
Javascriptæ¨æºã§æ¥æãæ±ãã«ã¯Dateãªãã¸ã§ã¯ãã使ã. 使ãæ¹ã¯å²ã¨ç°¡åã§ãããã¤ãåé¡ç¹ã¯ãããã©ã¨ãããã使ãåã«ã¯ã¾ã æ¦è¦ ãããªé¢¨ã«ãªã£ã¦ãã inputã¯ãã¼ã«ã«æé (æ¥æ¬æéã¨ãã¢ã¡ãªã«æéã¨ããæå·®ã®ãããªãã®) ã®æ å ±ãæã£ã¦ãããâ¦
generatorã®æ¦å¿µ generatorï¼ã¨ããæ¦å¿µï¼ã¨ã¯ãç¹°ãè¿ããç°¡åã«ã»è¦éãè¯ãè¨è¿°ããä»çµã¿ã§ãã. generatorã®å©ç¨ generatorãå©ç¨ãããã¨ã«ãã£ã¦ ç¹°ãè¿ããªãã¸ã§ã¯ã(ã¤ãã¬ã¼ã¿)ã®å®¹æãªä½è£½ è¦éãã®è¯ãéåæå¦çã³ã¼ãè¨è¿° ãå¯è½ã«ãªã. geneâ¦
git init npm init gitã¯.git directory, npmã¯package.json ãå½ ããããããã°gitã¨npmãæ¶ãã¦ã大ä¸å¤«(ã®ã¯ã) ã§ãã³ã¼ãèªä½ãå¹ãé£ã¶ã¨å ãåããªã. ãªã®ã§GitHubã®ãã©ã¤ãã¼ããªãã¸ããªããªã¢ã¼ã. ããã§ä¸äºãªãã±ã¼ï¼ 復æ§ãããã¨ãã¯GitHuâ¦
Readableã¨Writable Sourceããreadãã¦å¦çããã¦ããã®ã§ãReadable streamãSourceç¸å½. writeãã¦ãã¨ã¯ãã¾ããã¼ã¨å¸ãè¾¼ãã§ããã®ã§ãWritable streamãSink, distinationç¸å½. Readable streams are an abstraction for a source from which data iâ¦
electronã®ã¹ã¿ã¼ãã¢ããç»é²ãå¯è½ã«ããä¸æè°ã©ã¤ãã©ãª node-auto-launch â node-winreg â child_process.spawn github.com Child Process Node.js v0.11.11 Manual & Documentation node.jsã¯ããããã³ãã³ãã©ã¤ã³ãå©ããããã. åããã»ã¹äºã . â¦
JSã§ããã°ã©ã ã¯åµãã (æãªãããã£ããã¼ãªè¨è) HoloLensãå§ãã¨ãããWindows Holographicã§ã¢ããªãä½æãã. å¬ãããã¨ã«ãjavascriptã§ãããå¯è½ãªãã§ãã Windows Holographic Windows Holographicsã«ãããã¢ã㪠Windows Holographicã®ã¢ãâ¦
æãã¤ãã§ã¬ãªã¬ãªæ¸ãã¦ããããã°ã©ã ããæ¡å¤ããæãã«ãªãããªãã¡ã¯ã¿ãªã³ã°ããããªã£ã. ä¿å®ã¨ããæ¦å¿µãè¦ããåã«æ¸ããã³ã¼ãããä¿å®åºæ¥ãããã«ããã. ãããªã¨ããã©ããããããã®ã ãã. ãªãã¡ã¯ã¿ãªã³ã° ã³ã¼ãã®ä¿å®ã»æ©è½è¿½å ãããâ¦
é åããç¹å®ã®è¦ç´ ãä¹ãé¤ã (ä¾. [a, b, X, d] -> [a, b, d]) æ¹æ³ãè¤æ°ç´¹ä»ããã ä¸è¦§ Array.filter (ES2016) Array.indexOf + Array.splice 詳細 Array.filter (ES2016) EcmaScript2016ã§æ°ç»å ´ãããArray.filterã¡ã½ãããå©ç¨ããæ¹æ³. // aryé åâ¦
ã¢ã¸ã¥ã¼ã« Arrays (Statistics, Search, Transformations, Histograms) Axes Brushes Chords Collections (Objects, Maps, Sets, Nests) Colors Dispatches Dragging Delimiter-Separated Values Easings Forces Number Formats Geographies (Paths, Projecâ¦
ã¦ã¼ã¶ã¼ãéå®ããwebãµã¤ãã»webã¢ããªã¯ãã°ã¤ã³ã®ä»çµã¿ãå¿ è¦ã«ãªã. AWS cognito, ç¹ã«User Poolsã®æ©è½ã§ãããå®è£ ã§ãã. Cognitoã¨ã¯ä½ãï¼ã¨ããæ¹ã¯ãã¡ãä¸èªãæ¨å¥¨. tarepan.hatenablog.com Cognitoãç¨ããã»ãã·ã§ã³ç®¡çã®å¤§æ ã¤ã³ã¿ã¼ããâ¦
Amazon Cognitoã¨ã¯IDãµã¼ãã¹ã¨ãã¼ã¿åæãæä¾ãã. Amazon Cognitoã®æ©è½ ããã¤ãã®ãµã¼ãã¹ãé¢ãããã£ã¦åå¨. æ©è½ãã¸ã£ã³ã¸ã£ã³è¿½å ããã®ã§ååã®æ´åæ§ã(ry Amazon Cognito Cognito User Pools (Your User Pools) Cognito Identity (Federated â¦
Amazon Cognito User Poolsã¨ã¯ã¦ã¼ã¶ã¼å簿管çãµã¼ãã¹ã§ãã. User Poolsã®æ©è½ User Poolsåä½ãç¨ãããã¨ã§ åç°¿ã®ä½æã»ç®¡ç ã¦ã¼ã¶ã¼ã®è¿½å ã»ã¡ã¼ã«èªè¨¼ã»åé¤ password管ç ã¦ã¼ã¶ã¼å±æ§ã®ç®¡çã»å¼ã³åºã ãã°ã¤ã³/ã»ãã·ã§ã³ç®¡ç ãªã©ãåºæ¥ã. ä»â¦
æ¦è¦ webã¢ããª(ãã©ã¦ã¶ã§åãã¢ããª)ãæãã¤ãããä½ããã ãã©ã¦ã¶ã§å ¨é¨ã®å¦çãããã®ã£ã¦ãããã大å¤ããã ãµã¼ãã¼ãåãã¦è²ã ããâ¦ã®ããªãé£ãããã âã¯ã©ã¦ã(AWS)ã§æ軽ã«webã¢ããªãä½ããï¼ å ·ä½çã« ã¢ãã¾ã³ ã¦ã§ããµã¼ãã¹ / AWSã使â¦
ããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã« package.jsonã®dependencyã«æ¸ãã¦ããã°EBå´ã§åæã«ã¤ã³ã¹ãã¼ã«ãããããEB package.json ãã¡ã¤ã«ãããå ´åã¯ãElastic Beanstalk ã§ã¯ä¾åé¢ä¿ãã¤ã³ã¹ãã¼ã«ããããã« npm install ãå®è¡ããã¾ãã link ã¢ããªã®èµ·å ç¹â¦
Math.max()ãåºæ¬ æè¿å¢ãã便å©è¨æ³: ã¹ãã¬ããæ¼ç®å (...) Math.max() å¼æ°ã®æ大å¤ãè¿ãã¾ã. å¼æ°: æ°å (ã«ã³ãåºåã, é åä¸å¯) Math.max(1,2,4,7,3) == 7 é åã®æå¤§å¤ æ°ããæ¹æ³ ã¹ãã¬ããæ¼ç®å (...) ãå©ç¨. ES6ããç»å ´ããã¹ãã¬ããæ¼â¦
ãã¼ã¿ã®æ´æ° Data(data, key)ã®keyæå®ãå©ç¨ nebuta.hatenablog.com ãã¼ã¿ã®é·ç§» transition treeã®é·ç§» Interactive d3.js tree diagram - bl.ocks.org ãã¼ã¿ã®å¼ãåºã data() å¼æ°ç¡ãã§selectionã®ç¬¬1groupããjoinãããdatumé åãè¿ãã¦ããã. hâ¦
æ¦è¦ æåé循ç°ã°ã©ãã®å¯è¦å(visualization)ã«ã¤ãã¦ææ³ã¨è¨äºã®ã¾ã¨ãã æåé循ç°ã°ã©ã Directed Acyclic Graph architecture topolodical sort layer assignment vertex ordering within layers median vertex positioning within layers Sugiyama â¦