javascript
ããããµã¼ãã£ã³ããã¦ããã¨ããã¼ã¸ä¸ã«å¼µãä»ããããyoutubeã®åç»ãåæã«åçãããã¦ã§ããã¼ã¸ãããè¦ã¾ãããããªãé³ãé³´ãã ãã¦ããããçµæ§ãã£ã¨ãããããããåç»ããã¼ã¸ã®é ã«ãããã¥ããã¨ããã«ãããã¨ãå¤ããåçãåæ¢ããã ãã§â¦
ä»æ¥ã®ä½æ¥ä¸(ã¨ãããåå¼·ä¸)ãé åãä»»æã®æ°ã®è¦ç´ ã«åå²ãããã¨ãªãã¾ããããã¨ã°ã ã¨ãããã¥ããã§ããããã¨ãã°ãããªæãã [1,2,3,4,5,6,7,8,9].divide(4) => [[1,2,3,4],[5,6,7,8],[9]] [1,2,3,4,5,6,7,8,9].divide(3) => [[1,2,3],[4,5,6],[7,â¦
javascriptã§ã¨ã©ãã¹ããã¹ã®ãµããã - nekoTheShadowâs diary 以åä¸ã®ãããªè¨äºãæ¸ãã¾ããããä»æ¥ã¯ãã®çºå±ç·¨ãjavascriptã§ç´ æ°ããã¿ã®ã¡ã½ãããä½ã£ã¦ããããã¨æãã¾ãã ã¨ã©ãã¹ããã¹ã®ãµãã ãåããç´ æ°ãæ¢ãã¨ãã®å®çªã¢ã«ã´ãªãºã ã§â¦
ãã2-3æ¥ç¶ãã¦ããjavascriptã·ãªã¼ãºã«ã¤ãã¦ãã¾ã¨ãã¦ã¿ã¾ããã javascriptã§ããããé åãã - nekoTheShadowâs diary javascriptã§éè¤é åã - nekoTheShadowâs diary ï¼ or ⦠; that is the question. - nekoTheShadowâs diary ä¸ãã é å éè¤â¦
æ¨æ¥ã¯éè¤é åãjavascriptã§å®è£ ãã¾ããããä»æ¥ã¯ãã®ä»²éã§ããçµã¿åããã¨éè¤çµã¿åããã«ææ¦ãã¾ãã rubyã§ããã¨ããã®combinationã¨repeated_combinationã§ããã javascriptã§éè¤é åã - nekoTheShadowâs diary詳ããä»æ§ã«ã¤ãã¦ã¯ä¸æ¨æ¥æ¸â¦
javascriptã§ããããé åãã - nekoTheShadowâs diary æ¨æ¥ã¯æ®éã®é åã§ããããä»æ¥ã¯éè¤é åã«ææ¦ãã¾ãã ã¨ãã£ã¦ããæ¨æ¥ä½ã£ãã¡ã½ãããå°ãããããã ããªã®ã§ã詳ãããã¨ã«ã¤ãã¦ã¯æ¨æ¥ã®è¨äºãè¦ã¦ããã ããã°å¹¸ãã§ãããªãå®è£ ã®ã¤ã¡ã¼â¦
以åãjavascriptã§é åãã¨ããè¨äºãæ¸ãã¾ããããä»æ¥ã¯ãã®æ¹è¯ç·¨ã§ãã javascriptã§é åã - nekoTheShadowâs diaryrubyã«ã¯permutationã¨ããã¡ã½ããããããç°¡åã«é åãåå¾ã§ãã¾ãã ä»æ¥ã¯ãããã¾ãã±ãããããã¨ãããã¨ã§ãã p ["a","b",â¦
ãrubyã§POSTãã¨ããè¨äºã¯éå»ã«æ¸ãã¾ãããã rubyã§POSTãããã¦ãã¹ãããã·ã§ããæ¤ç´¢APIãã - nekoTheShadowâs diary ä¸æ¨æ¥ã®è¨äºã«å¯¾ããä¿®æ£ã - nekoTheShadowâs diaryåããã¨ãjavascriptã§ãããããã¨ãããã¨ã§ããã ç¹ã«apiãå©ç¨ããã¨â¦
<ul id = "ul"> <li><a href = url1>first</a></li> <li><a href = url2>second</a></li> <li><a href = url3>third</a></li> </ul> è¦ããã«ããããããã¨ãjavascriptã§åçã«çæãããã¨ããããã§ãã åºæ¬çãªãã¨ã¨ã§ãããåå¿è çã«ã¯å¼ã£ããã£ãã®ã§ãã¡ã¢ãã¦ããã¾ãã "appendChild"ã®ä½¿ãæ¹ãè¦ã¦ããã¨ããåè¦ç´ ã追å ãããã¨ã ãæ¸ããã¦ãããã¨â¦
javascriptçéã§ã¯æè¿ãã®ååãè¦ãªãæ¥ããªãã¨ãã£ã¦ãéè¨ã§ã¯ãªãReactã ãã ä½ãã§ããã®ããä½ã®ããã«ä½ãããã®ããããããããªããã ããã ã¾ãããã»ã©èå³ããªãããã®ããã§æ å ±ãéããæ°åãããããæµè¡ã«ç½®ãå»ãã«ãããä»æ¥ãã®é ãâ¦
æ¨æ¥ã®ç¶ãã¨ããããªãã¨ããããIframe Youtube Apiã®ãã¥ã¼ããªã¢ã«ã詳ããèªãã§ããã¨ãè¦ããã¨ã®ãªãjavascriptã®è¨è¿°ã«ééã // 2. This code loads the IFrame Player API code asynchronously. var tag = document.createElement('script'); tagâ¦
Iframe Player Apiãªããã®ãçºè¦ã ãµããµããyoutubeã®åç»ãã¬ã¤ã¤ã¼ãåãè¾¼ã¿ã¤ã¤ãjavascriptã§å¶å¾¡ãããã®ããããè¦ã¤ãã¦ãã¾ã£ãã®ãä½ãã®ç¸ããã£ããéãã§ã¿ã¾ããããããæ¼ãã°åçãå§ã¾ãã¾ã var player; var onYouTubeIframeAPIReady =â¦
sublimetext3ã¯"ctr+B"ãæ¼ãã ãã§ãã«ããã¦ãããåªããã®ã å æ¥node.jsãå°å ¥ããã®ã§ãjavascriptãç°¡åã«ãã«ãã§ããããªã¨æã£ã¦ããã®ã§ããâ¦â¦ããããªããªããã¾ããããªã!æ å ±åéãã¦ã¿ã¦ããåºã¦ããã®ã¯sublimetext3ã§ã¯ãªãã¦ãsublimetextâ¦
ã¯ã¦ãªè¨æ³ã¯scriptã¿ã°ãåãè¾¼ãã ãã§ããã¡ãã¨åãã¨ããåªããã®ã ãããå©ç¨ãã¦ãããæ°æ¥ã¯gistã«æ¸ããã³ã¼ããåãè¾¼ãã§ããã®ã§ããã ä»æãããã¨ã«æ°ã¥ãã¦ãã¾ã£ãã®ã§ããgistãåãè¾¼ããã®ãªããèªåã§æ¸ããã³ã¼ããåãè¾¼ããã¯ããâ¦
ç´ æ°çæã¢ã«ã´ãªãºã ã®å®çªã¨ããã°ãã¨ã©ãã¹ããã¹ã®ãµããã javascriptã®ç·´ç¿ä¸ãå¿ è¦ã«ãªã£ãã®ã§ä½ãã¾ããã ä¸åä¸åæ¸ãã®ã¯ããã©ããããã®ããããã£ã¨æ¸ãã¦ãã¾ã£ãã®ã§ãããã¡ãã£ã¨å·¥å¤«ã®ããããã¯ããããã
è¦ããã«rubyã§ããã¨ããã®ãããããã¨ããããã®ã§ãã (1..5).to_a #=> [1, 2, 3, 4, 5] (-1..3).to_a #=> [-1, 0, 1, 2, 3] javascriptã«ã¯ãªããããªã®ã§ãèªåç¨ã«è£½ä½ã ä¸åº¦ä½ã£ã¦ããã¨ããã¨ã¯ã³ããã§æ¸ãã®ã§æ¥½ã§ããããã£ã¨è³¢ãããæ¹ã¯ããâ¦
javascriptã®åå¼·ä¸ãé åãã»ãããªããæ¸ãã¦ã¿ã¾ããã çå±ã¯ããããããããåãã¦ããã®ã§ããã¨ãã¾ããããé ããã©ãªã