ã¯ãã㫠好ç©ã¯ã¤ã³ãã©ã¨ããã³ãã¨ã³ãã®ãããããããã§ãã ãã®ã¨ã³ããªã¯ãLuigi Advent Calendar 2016ã17æ¥ç®ã®å 容ã¨ãªãã¾ãã ä»åã¯Redshiftã«å¯¾ãã¦Copyã³ãã³ããçºè¡ãã¦ã¿ããã¨æãã¾ãã å æ¥16æ¥ç®ã¯Redshiftã«å¯¾ãã¦ã®UPDATEã¨DELETEãå®æ½ãã¦ã¿ãã§ããã ååã¾ã§ã§Redshiftã«å¯¾ããåºæ¬çãªã¢ã¯ã»ã¹æ¹æ³ã«ã¤ãã¦ç¢ºèªãã¾ããã ä»åã¯Copyã³ãã³ããç¨ãããã¼ã¿åãè¾¼ã¿ã«ã¤ãã¦å®è£ ãã¦ã¿ã¾ãã ä¸æºå åå使ã£ãTSVãã¡ã¤ã«ã¨ãã¼ãã«ã«å¯¾ãã¦ãä»åã¯ã¸ã§ããããã¼ã¿æå ¥ããã¦ããã¾ãã 1 Customer#000000001 IVhzIApeRb MOROCCO 0 MOROCCO AFRICA 25-989-741-2988 BUILDING 2 Customer#000000002 XSTf4,NCwDV
ä»å¹´ãéçã¯çµããã§ãã*1...ããã«ã¡ã¯,éçã®äººã§ã. ãã®ã¨ã³ããªã¼ã¯,PyCon JP 2017ã§çºè¡¨ããå 容ã®ç¶ãã§ãã, ååã®ã¨ã³ããªã¼ã®ç¶ãã§ãããã¾ã.*2 Scrapyã§ã¹ã¯ã¬ã¤ãã³ã°&SQLite3ã«ä¿åãããã¼ã¿ã, Jupyter pandas matplotlib ã§åæã¨å¯è¦åããã¦ã¿ã¾ããã. ï¼è¡ã§ã¾ã¨ãã㨠Jupyteræ¬ï¼ä»¥ä¸,jupyterbookã¨ç¥ãï¼ã¯ãããï¼Pythonã§ãã¼ã¿ãæã人ãã¹ã¦ã®å¿ èªæ¸ããï¼ pandasã®read_sqlã¨where,groupbyã§ç°¡åãªéççµ±è¨åæãã§ãã çç³»ã®ææ¨ï¼æçã»åºå¡çã»é·æçã»OPSï¼ã®Histogramã§å¤§éæãªææã®å¾åãã¤ããã 対象ã®èªè Pythonã§ãã¼ã¿åæã»å¯è¦åãããããæ¹ ååã®ã¨ã³ããªã¼ã®ç¶ãã§éçãã¼ã¿ã使ã£ãåæããããæ¹ jupyterbookã®ææ³ãå®éã®å©ç¨
大ç³å¶ä½ããã°blog.s004.com ãã¶ã¤ãã¼å¤§ç³çä¹ã ç¥ãããã£ããã¨ãè¦ããã£ããã¨ã®ã¡ã¢ã¨ãä»äºç´¹ä»ã èªå·±ç´¹ä»ã»ãµã¤ã説æä¾é ¼ã»ä¾¡æ ¼ã»ãååãã¿ã¹ã¯ç®¡çãã¼ããã¼twitterfacebookatom feed OS Xãã¹ã¯ãªããã§è¡ãèªåæä½ã¯ãAppleScriptã§å¶å¾¡ããå ´åã¯ãã®ã¾ã¾ãAppleScriptããJavaScriptã®å ´åã¯ãJavaScript for Automation(以ä¸JXA)ãã¨å¼ã°ãã¦ãã¾ããã¡ãã£ã¨ããããããã©ãæ £ãããããªãã§ãããã åã¯å ã AppleScriptèªä½ãã»ã¨ãã©åãããªãç¶æ ã ã£ããã©ãã©ãããAppleã¯OSXã®ã¹ã¯ãªããã£ã³ã°ãAppleScriptããJavaScriptã«ç½®ãæããããããã§ãã AppleScriptã¯å ¨ç¶ã ãã©ãJavaScriptãªããã£ã³ã¹ãï¼ æ°ãåããã®ã§JXAã触ã£ã¦ã¿ã
ã¯ããã« ãã¹ããæ¸ããã¨ã¯ãç¹ã«RubyãRailsã®ã³ãã¥ããã£ã«ããã¦éçºã®éè¦ãªããã»ã¹ã§ããããã¹ãã®å®äºã«é·æéãè¦ããããã«ãªããªãã¨ããã¹ãã¹ã¤ã¼ãã®ããã©ã¼ãã³ã¹ãæ°ã«ããªãå¾åãããã¾ãã身ã«è¦ããããã¾ãããï¼ å°ç¨ã®ãã¹ããããã¡ã¤ã©ã§ããTestProfãç¨ãã¦ãRailsãã¹ãã®ããã©ã¼ãã³ã¹ããã«ããã¯ãç¹å®ãã¦ä¿®æ£ããæ¹æ³ãå¦ã³ã¾ãããã ç§ã¯Evil Martiansã«å ¥ç¤¾ããæåã®å¹´ããããã¾ãã¾ãªã¿ã¤ãã®Railsã¢ããªã±ã¼ã·ã§ã³ï¼ã¢ããªã¹ãã¢ã¸ã¥ãªã¹ï¼ã¢ã¸ã¥ã©ã¼+ã¢ããªã¹ï¼ãAPIã®ã¿ãHotwireãªã©ï¼ã«åãçµãã§ãã¾ããããããã®ã¢ããªã±ã¼ã·ã§ã³ã¯ãã©ãããã¹ãã¹ã¤ã¼ãã®é度é¢ã«æ¹åã®ä½å°ãã¾ã ã¾ã æ®ããã¦ãã¾ããã ç§ã¯ãã¹ãé«éåã®ãã³ãããã¦ãã¦ãéããããã«ãªããæçµçã«ãã®ãã¦ãã¦ããã¹ã¦TestProfã¨ããåã®ã¡ã¿gemã«çãè¾¼ã¿
Macã®æ¨æºæ©è½ã«ã¯ã¤ãã¯ã«ãã¯ï¼Quick Lookï¼ã¨ããã®ãããã¾ãã ãã¡ã¤ã«ãé¸æãã¦ã¹ãã¼ã¹ãæ¼ãã°ç°¡åã«ãã¬ãã¥ã¼ã表示ã§ããã¢ã¬ã§ãã æ¨æºã ã¨ãããã¹ããã¡ã¤ã«ãPDFãç»åçã表示ã§ããã¨æãã¾ãã ããã§ã¯ã便å©ãªãã©ã°ã¤ã³ãããããã ã£ãã®ã§ãç´¹ä»ãã¾ãã â»brew caskã使ã£ã¦ã¤ã³ã¹ãã¼ã«ãã¾ãã brew cask ã«ã¤ãã¦ã¯ ã³ãã© QLColorCode ã½ã¼ã¹ã³ã¼ããã·ã³ã¿ãã¯ã¹ãã¤ã©ã¤ããã¦è¡¨ç¤ºã§ããã HTMLã $ brew cask install qlcolorcode QLStephen READMEã®ãããªãã¬ã¼ã³ããã¹ããã¡ã¤ã«ããæ¡å¼µåãªãã§ã表示ã§ããã $ brew cask install qlstephen QLMarkdown Markdownã表示ã§ããã â»ç¸å½å¬ããã£ã $ brew cask install qlm
github.com Quick Lookï¼ã¯ã¤ãã¯ã«ãã¯ï¼ã¯Mac OS Xã«æè¼ããã¦ãããã¡ã¤ã«ãææ©ããã¬ãã¥ã¼ã確èªã§ããæ©è½ã§ããã¡ã¤ã«ãé¸æãã¦ã¹ãã¼ã¹ãã¼ãæ¼ãã°ãããä¸è¨ãã¼ã¸ã§Quick Lookã便å©ã«ãããã©ã°ã¤ã³ãç´¹ä»ããã¦ããã®ã§è©¦ãã¦ã¿ãã ãã©ã°ã¤ã³å 対象ãã¡ã¤ã« QLColorCode ã½ã¼ã¹ã³ã¼ããã·ã³ã¿ãã¯ã¹ãã¤ã©ã¤ã QLStephen ãã¬ã¼ã³ããã¹ããã¡ã¤ã« QLMarkdown Markdownãã¡ã¤ã« QuickLookJSON JSONãã¡ã¤ã« QLPrettyPatch .patchãã¡ã¤ã« QuickLookCSV CSVãã¡ã¤ã« BetterZipQL å§ç¸®ãã¡ã¤ã« qlImageSize ç»åãµã¤ãºã¨ãã¡ã¤ã«ãµã¤ãºã表示 WebP WebPãã¡ã¤ã« Suspicious Package .pkgãã¡ã¤ã« ProvisionQL ã
ã¯ããã« OS X ãã QuickLook ã¨ããæ©è½ãã¤ããããã ããä»ã¾ã§ç¥ããªãã£ãorz (å°ç¨ã¢ããªãéããã¨ããããã£ã¨ä¸èº«ã確èªã§ããæ©è½ã§ããã) ãã®ã¾ã¾ã§ãåå便å©ã ãããªãã¨ãã©ã°ã¤ã³ã§ãã¼ã¯ãã¦ã³ãjsonãCSVãè¦ããããã«ã§ãã¾ãã Finder ã§ãã¡ã¤ã«ã«ãã©ã¼ã«ã¹ãåããã¦ãã¹ãã¼ã¹ãã¼ãã§ãã¥ã¯ã¼ãéãã ããä¸åº¦ãã¹ãã¼ã¹ãã¼ãã§éããã ãã¥ã¯ã¼éããç¶æ ã§ããç¢å°ãã¼ãä¸ä¸ããã¨æ¬¡ã®ãã¡ã¤ã«ã«é²ãã ãã©ã°ã¤ã³ ã¤ã³ã¹ãã¼ã«æé homebrew-cask ãã¤ã³ã¹ãã¼ã« ãã¿ããªhomebrew-caskã£ã¦ç¥ã£ã¦ããï¼ã http://qiita.com/ryurock/items/1432578d364985f6cb06
æ¤è¨¼ç°å¢ Windows10 Home Edition C:\>go version go version go1.8 windows/amd64 Access Token ã®åå¾ ä»¥ä¸ã®è¨äºãåèã« Gmail API ã§ä½¿ç¨ãã Access Token ãåå¾ãã takaya030.hatenablog.com oauth2 é¢é£ããã±ã¼ã¸ã®åå¾ C:\>go get golang.org/x/oauth2 C:\>go get golang.org/x/oauth2/google C:\>go get google.golang.org/api/gmail/v1 ã½ã¼ã¹ã³ã¼ã gmailtest.go package main import ( "fmt" "time" "log" "golang.org/x/oauth2" "golang.org/x/oauth2/google
ãã®æç« ã«ã¤ã㦠macOS Sierraãã¤ã³ã¹ãã¼ã«ããå¾ã«éçºç°å¢ãæ´ããããã«ãããªã£ãä½æ¥ã ã¡ã¢ã¨ãã¦æ®ãã¾ããã SSDã®TRIMå½ä»¤ãæå¹ã« Appleç´æ£SSDã§ã¯ãªãããTRIMãæå¹å ã¿ã¼ããã«.appã«ã¦ $ trimforce help Usage: trimforce enable trimforce disable trimforce help $ sudo trimforce enable Password: IMPORTANT NOTICE: This tool force-enables TRIM for all relevant attached devices, even though such devices may not have been validated for data integrity while using TRIM. Use
æ¦è¦ ããæ¾ã®ã»ãªããã©ã³ãã ã«è¿ãLINE BOTãä½ãã¾ãã ç°å¢ã¯Django+Herokuãç´°ãããã©ãããåé¿ããªããé å¼µã£ã¦ä½ãã¾ãã åã ã¡è¿½å ãã¾ãä¼è©±ã¯æç«ããªãã§ã (ã»ãªããã©ã³ãã ã«è¿ãã ããªã®ã§) å½ç¶ã§ããéå ¬å¼ã§ã ã½ã¼ã¹ã³ã¼ã éçºç°å¢ Mac OS X 10.11.6 python 2.7.11 Django 1.10.3 ããã¾ããªæé 1. LINE Messaging APIç»é² 2. Djangoã¤ã³ã¹ãã¼ã« 3. Djangoããã¸ã§ã¯ãä½æ+åä½ç¢ºèª 4. Djangoã§botã¢ããªã±ã¼ã·ã§ã³ä½æ+åä½ç¢ºèª 5. ããæ¾ã®ã»ãªããã©ã³ãã ã§è¿ãé¨åãä½æ 6. Herokuã«ããã㤠7. LINEå´ã«Herokuã®ã¢ãã¬ã¹ãã»ãã 8. ä¼è©±ãã¦ã¿ã 詳細ãªæé 0. åæ python, pipã¯ã¤ã³ã¹ãã¼ã«æ¸ã¿ Herokuã¢ã«ã¦ã³ãä½
Haskell 㧠SQL ãå½æ°åçã«æ§ç¯ããæ¹æ³ã¨ãã¦ã¯ãrelational-recordï¼ä»¥ä¸ãHRR ã¨ç§°ãï¼ã¨ opaleye ãããããã ã ä»å㯠relational-record ãé¸æãã¦ã¿ãã 以ä¸ã®è¨äºãåèã«ãªãããæ¬ç¨¿å·çæç¹ï¼2017å¹´12æ28æ¥ï¼ã§ã¯ãå°ã å¤æ´ããã£ãããåµã£ããã¨ããã£ãã®ã§ãå·®åãè¨è¿°ããã qiita.com ã¤ã³ã¹ãã¼ã« Stack ãåæã¨ããã以ä¸ã®ã³ãã³ãã§ãhrr-test ãªãåã®ããã±ã¼ã¸ãä½ãããã $ stack new hrr-test æ°ãç®ã® Stack ã§ã¯ããã©ã«ã㧠hpack ãå©ç¨ãããã³ãã¬ã¼ãã使ããããHRR 㯠Stackage ã«ç»é²ããã¦ããããã«ãpackage.yaml ã® dependencies ç¯ã« HRR é¢é£ã®ããã±ã¼ã¸ã追å ããã ãã§ããã dependencies: -
ä¹ ãã¶ãã®ã¨ãã£ã¿è¨äºã Abstract Emacs ã¨ããã¨ãã£ã¿ããã£ã¦ãã¨ãã話ã¯ã©ããã§èª°ããä½åº¦ããã¦ããã¨æãã®ã§ä»æ´ããªããä»åç´¹ä»ããã®ã¯ Emacs ããã¼ã¹ã«ãã Spacemacs ã§ããã å 容ã¨ãã¦ã¯ã試ãã« Spacemacs 㧠Org mode ã使ã£ã¦ããã°è¨äºãæ¸ãã¦ã¿ããããªãæ°ã«å ¥ã£ãã¨ãã話ã«ãªããæè¡çãªè©±ã¯ä¸åããªãã®ã§ããã Spacemacs ã«ã¤ãã¦ããããªããã¨ããã£ã¦èª¿ã¹ã¦ãã®è¨äºã«ãã©ãçããã®ã§ããã°ãããªãã®æ±ããæ å ±ã¯ããã«ã¯ãªãã®ã§ãã©ã¦ã¶ã®æ»ããæ¼ãã¦ããã ããããããã£ã¦ããªããã¨ãçºä¿¡ããã¨ãããã¨ã¯ç¡è²¬ä»»ãªãã¨ã«ãªããããªãã®ã§ã Spacemacs ã£ã¦ãªãã ãããç°¡åã«è¨ãã¨ããäºããã¼ã«ã大éã«ç©ãã Emacsãã§ããã å㯠Windows 㧠Emacs ã使ããã¨æã£ããã¨ãæ®ã©ç¡ãã®ã§ã以ä¸ã¯ç¹ã«
æéãã ãã¶éããããæ¸ãã¦ããã ååããã®1ãæ¸ããããã®1ã§ã¯ãç°¡åãªå°å ¥ã¨ãSpacemacsã®ç°¡åãªãã¢ã¼ããç´¹ä»ããã ä»åã¯ãåºæ¬çãªè¨å®ãæ¡å¼µã«ã¾ã¤ãããã¨ã«ä»ãã¦æ¸ãã ä»ã®ã¨ãã£ã¿ãIDEã使ã£ããvimãªã©ç¹ã«ä½ãè¨å®ããªããã¨ãå¤ãã ãããããããemacsã¦ã¼ã¶ã®æ®ã©ã®äººéã¯ãããã©ã«ãã®è¨å®ãæ¡å¼µããªãããã®ã¾ã¾ä½¿ããã¨ã¯ç¡ãããã¯ããããå¿«é©ã«ä½¿ãããã«ãæ¥ã è¨å®ã調æ´ããæ¡å¼µãã¦ãããã©ãã©ãèªåãªãã®ã¨ãã£ã¿ãä½ããã®ã ã spacemacsã¯ãemacsã¨åæ§ã«è¨å®ãããæ¡å¼µããããããã¨ãã§ãããããããemacsã»ã©ã沢山ã®è¨å®ãæ¡å¼µãå ¥ãããªãã¦ãã¨ã¯ããªãã¦è¯ãããã«ã§ãã¦ãããä»åã¯ãã®ããæ¹ãè¦ã¦ãããã ã¾ããæåã«è¨å®ãã¹ãéè¦ãªé ç®ã®ã¿ã«çµããéè¦ãªã®ã¯ããã¹ã¦ãä¸åº¦ã«è¨å®ãããããã使ã£ã¦ãããã¡ã«å°ããã¤è¨å®ãå¤ãã¦ãããã¨ã ã¨æã
ãã®æ稿ã¯Edward Z. Yangã2010å¹´ã«æ¸ãã OCaml for Haskellers ãç§èªèº«ãä»å¹´é ã«æ¸ãã Haskell for OCaml programmers ã®æµãã«æ²¿ã£ã¦ãã¾ãã ç®æ¬¡ ãããã¼ã° ãªãRustãå¦ã¶ã¹ãã ç´æ¥å¯¾å¿ãå¯è½ãªãã® ãã¬ã¤ãï¼Rustã®åã¯ã©ã¹ ã¢ãããã¯ãªãªãã¸ã§ã¯ãã¨ã¡ã½ãã å®å ¨ãªåç § 寿å½ã¨è¨æ¶åãããã¦ç®¡çãªãã¸ã§ã¯ã ãªãã¸ã§ã¯ãã®å ±æï¼Rcã¨Arc ãã¯ãã¨ã¡ã¿ããã°ã©ãã³ã° ãªãã©ã« è¬è¾ åç § Copyright and licensing 注 : ãã®è¨äºã®ææ°çã¯ä¸è¨ãµã¤ãã§è¦ããã¾ãã http://science.raphael.poss.name/rust-for-functional-programmers.html ä»ã®ãã©ã¼ãããï¼ Source , PDF ãããã¼ã° Cè¨èªããã°ã©ãã®ããã®
Rust ã¯ãFirefox ãéçºãã Mozilla ãéçºãã次ä¸ä»£ãã©ã¦ã¶ã®éçºã«ä½¿ã£ã¦ããããã°ã©ãã³ã°è¨èªã§ããåç¨æ¤æ»ã¨ããæ¦å¿µãå°å ¥ãããã¨ã«ããã¡ã¢ãªå®å ¨ããã³ãã¼ã¿ç«¶åå®å ¨ãã³ã³ãã¤ã©ãä¿è¨¼ããè¨èªã§ããã2015å¹´ä¸é ã®å®å®çã®ãªãªã¼ã¹ããããã次第ã«æ³¨ç®ãéããããã«ãªãã¾ããã ã¡ã¢ãªå®å ¨ã¨ã¯ãã¡ã¢ãªã®ç¯å²å¤ã¢ã¯ã»ã¹ãäºé解æ¾ããã«åç §ãæªåæåé åã¸ã®ã¢ã¯ã»ã¹ããªãç¶æ ã表ãã¾ãããã ããRust ã®è¨ãã¡ã¢ãªå®å ¨ã¨ã¯ãã¡ã¢ãªãªã¼ã¯ãããªããã¨ãä¿è¨¼ãããã®ã§ã¯ããã¾ããã ãã¼ã¿ç«¶åå®å ¨ã¨ã¯ãããã²ã¨ã¤ã®ãªãã¸ã§ã¯ãã«å¯¾ãã¦ã®èªã¿è¾¼ã¿ããã³æ¸ãè¾¼ã¿ã®ãåæã«èµ·ãçµæãä¸å®ã«ãªãç¶æ ã«ãªããªããã¨ã表ãã¾ãã競åç¶æ ã¨ã¯ç°ãªãã¾ãã ç¡åé¢æ°ã¨ããæ¦å¿µãæ§ã ãªè¨èªã次ã ã¨å°å ¥ããããã«ãããã°ã©ãã³ã°è¨èªã¯ç¸äºã«å½±é¿ãåã¼ãå¾ã ã«å¤åãã¦ãã¾ããRust ã¯ã寿
Pythonista 3ã«ã·ã§ã«ãDropboxåæã»ãã¦ã³ãã¼ãæ©è½ãªã©Appleã許ããªãæ©è½ã追å ãã iOSæå¼·ã®çµ±åéçºç°å¢Pythonista 3ã éçºè¨èªã¯Python 3.5 / 2.7ãiOSã¨ã®è¦ªåæ§ãé«ããåã«Pythonãæ¸ããã¨ããã ãã§ãªããiOSã®éçºç°å¢ã¨ãã¦æ©è½ãã¾ãã 2008å¹´ããå§ã¾ã£ãApp Storeå²ä¸ãåãæé«ã«è奮ãè¦ããã¢ããªã§ããæ¥æ¬ã§ã¯ããã»ã©äººæ°ããªãä¸æ¹ã§ãæµ·å¤ã§ã®çµ¶è³ã£ã·ããå¯¾ç §çã§ãã Pythonista 3 ã«ãã´ãª: Productivity 販売å : Ole Zornï¼ãµã¤ãº: 244.4 MBï¼ å ¨ã¦ã®ãã¼ã¸ã§ã³ã®è©ä¾¡: ï¼0 件ã®è©ä¾¡ï¼ ãããªã¨ã³ããªãè¦ã«ãã人ãPythonista 3ãç¥ã£ãæã«è¦ããææ ¨ã«ãããAppleã許ãããªãããããAppleã審æ»éãããªãã¨ãããã®ãããã§ãããã App St
edX 㧠Haskell ã®è¬åº§ãã¨ãå§ãã¾ãã. Introduction to Functional Programming | edX å 容ã¯ãã¦ãã, ã¾ã㯠Emacs ã®ç°å¢ä½ãããå§ãã¾ãã. ç°å¢ã¥ããã«å¤¢ä¸ã«ãªã£ã¦å 容ãããããã«ãªãã¨ãã, ãã¤ãã®æªããã¿ã¼ã³. haskell-mode# Haskell ã®ãã¤ãã¼ã¢ã¼ã. https://github.com/haskell/haskell-mode (autoload 'haskell-mode "haskell-mode" nil t) (autoload 'haskell-cabal "haskell-cabal" nil t) (add-to-list 'auto-mode-alist '("\\.hs$" . haskell-mode)) (add-to-list 'auto-mode-alist '(
対象ã®èªè æ®æ®µPythonãã使ãã®æ¹ã ç¹ã«åä½ãã¹ãã³ã¼ããæ¸ãæ©ä¼ãããæ¹ã Pythonæ¨æºã®UnitTestãã¬ã¼ã ã¯ã¼ã¯ã使ãæ©ä¼ã®ããæ¹ã æ¦è¦ åä½ãã¹ããããéãï¼ã¤ã®ãã¹ãã±ã¼ã¹ã®ä¸ã§ããã©ã¡ã¼ã¿ãå¤ãã¦è¤æ°å対象ãAssertãããã¨ãããã¾ãã æ®éã«å®è£ ããã¨ãï¼ãã¿ã¼ã³å¤±æããæç¹ã§ãæ®ãã®ãã¿ã¼ã³ããã¹ããããããã¹ãã¯çµäºãã¦ãã¾ãã¾ãã Subtestãç¨ããã¨ãéä¸ã§å¤±æãããã¿ã¼ã³ããã£ã¦ãããã¹ããæå¾ã¾ã§å®è¡ããæå¦ããã¿ã¼ã³æ¯ã«åå¥ã«åºåãã¦ãããããã«ãªãã¾ãã åææ¡ä»¶ ãã®è¨äºã®å 容ã¯Python 3.5ç³»ã§æ¤è¨¼ãããã®ã§ãã ãã以åã®ãã¼ã¸ã§ã³ã ã¨æ³å®éãåããªãããããã¾ããã ãã¹ãå¯¾è±¡ä¾ ããã¡ã½ãããã¯ã©ã¹ã®ãã¹ããããå ´åã大æµã®å ´åããã¹ã対象ãåãããå ¥åãç¶æ ãªããçµæãç¶²ç¾ ããããã«ããã©ã¡ã¼ã¿ãå¤ãã¦ãã¹ããããã
æç¨ãã¦ããChromebookãAsus C202SAã§Androidã¢ããªã使ããããã«ãªãããã®ä½¿ç¨ãç¹ã«Androidç¨ããã¹ãã¨ãã£ã¿ã¨ãã¦è©å¤ã®é«ããJota+ããå ¥ãããã©ããè¿·ã£ã¦ãããã¨ã¯å æ¥æ¸ãã¾ããããçµå±ã¯è©¦ãã¦ã¿ãªããããããªããã¨æã使ãå§ãã¦ãã¾ãã sotoblog.hatenablog.com å®ã¯ãã®ãJota+ããéçºè ã®æ¹ï¼@jiro_aquaããï¼ãèªèº«ãAsus C202SAã®ã¦ã¼ã¶ã¼ã ã¨ã®ãã¨ã§ãChromebookã§ã®åä½ãæ¤è¨¼ããã¦ããããã§ãã ã ãããªã®ããã¤ã³ã¹ãã¼ã«å¾2é±éå¼±ããJota+ãã使ç¨ãã¦ãã¾ãããAsus C202SAã¯ã¿ããããã«éæè¼ã®ç«¯æ«ã§ãããªãããé常ã«ä½¿ãæããã¹ãã¬ã¹ãªãããã¹ãå ¥åãã§ãã¦ãã¾ãã é·æå ¥åã«å¿ è¦ãªæ©è½ãéä¸è¶³ãªãæã£ãè¯ã¢ããªã 1. æ¹è¡ãã¹ãã¼ã¹ãè¡çªå·çã®è¡¨ç¤º2. åæ°ã«ã¦ã³ã
6å¹´éãã¼ã£ã¨Vimã使ã£ã¦ãã¾ããããä»ã®ã¨ããå®ç§ã«ä¹ãããããããEmacsã¨ãããããã¯Spacemacsããããè¯ãã çºç«¯ Spacemacsèªä½ã¯2014å¹´ã«Githubã®Trendingã§è¦ããã¦æ°ã«ã¯ãªã£ã¦Starã¯ãã¦ãããã©ããã®ã¾ã¾å¿ãã¦ããã§ãä»å¹´ã®ã¯ãªã¹ãã¹ã¤ã(ç¹ã«é¢ä¿ã¯ãªã)ã«Qiitaã®Vimãç§ä¼ã®ã¿ã¬ã飲ã¿è¾¼ãEmacsã®è¶ å¼·åãã£ã¹ããªãã¥ã¼ã·ã§ã³Spacemacsã¾ã¨ã - Qiitaã¨ããè¨äºãè¦ããã¦ãããããããã°ãã£ããªãã£ã¦æãã ãããããèªãã§æ¹ãã¦ä¾¿å©ããã ãªã¨æã£ãã®ã§ã ææ³ Spacemacsã®ãµã¤ãã«ãã£ããã³ãã¼ããã£ã¦ããã The best editor is neither Emacs nor Vim, it's Emacs and Vim! ã£ã¦æ¸ãã¦ããã ãã©ããã¸ã§ãã®éãã ãªã¨æã£ãããããè¯ãã調ã¹ãã¨ããã¨
Spacemacsã£ã¦ãªã«ï¼ Emacsã®æ¡å¼µ(éæ¹é ï¼) å ¨ä½çã«äººéã«åªãããªã£ã(ãã¼ãã¼ãã·ã§ã¼ãã«ããã®ãµã¸ã§ã¹ãã¨ãåºãããã) è¨å®ç®¡çããããããã«ãã¦ããã(layerã·ã¹ãã ) ãã¼ãã¤ã³ããVim(Evil)ãEmacsãé¸ã¹ã ç§ã¯Emacsãã¤ã³ãã§ä½¿ã£ã¦ã¾ã ããããããçç± ç´ ã®Emacsããã¯ãããã親å(ä¸è¨) ã¨ããããå種ããã°ã©ãã³ã°è¨èªã®IDEã¨ãè¦ããªãã¦ãéçºãå§ãããã¦ä¾¿å© ãããã¬ã¨ãã¯è«¦ãã¦ãã ãã Emacsã®ãã¼ãã¤ã³ãã«æ´è³ããããã¨ããåãå ¥ããã°å ¥åã§è¿·ããªããªãã¾ã Vimæ´¾ã§ãEvilãªã大ä¸å¤«(ãã¶ã) (Spacemacsã«éã£ã話ã§ã¯ãªããã©)ã¿ã¼ããã«ã¾ã§Emacsä¸ã§æä½ã§ããããã«ãªã£ã¦ããã¨ããã¦ã¹è§¦ããã¨ãã»ã¼ãªããªããããã«ã¯ãã¼ãã¼ãã ãã§æä½ã§ããæéãå¢ãã¦ããããã§ã ãã¦ã¹æ¨ã¦ãã ãã©ãã¯ãã¼ã«
以ä¸ã®ç¹ã§ã©ãªãããæããã ããã H18.1ï½H20.12ã¾ã§ã®æ¯æã®å£²ä¸é«ã表ã«è¨è¼ãããã®è¡¨ãå ã«ã°ã©ããä½æãã¦ãã¾ããã°ã©ãã«åæ ããã表ã®ç¯å²ã¯H18.1ï½H20.12ã®å ¨ã¦ã§ãã ãã®ããã¾ã çµéãã¦ããªãæéã®ã»ã«ã空ç½ã«ãªãããããã°ã©ãã«åæ ããè¦ã¥ãããªãã¾ãã ãã¼ã¿ãå ¥åããé½åº¦ã°ã©ãã®ç¯å²ãå¤æ´ããã°ããã®ã§ããããã¾ãç®å¼ãè¨å®çã§ç©ºç½ãï¼åã¨ãªã£ã¦ããã»ã«ãã°ã©ãã«åæ ãããªãæ¹æ³ã¯ããã¾ããï¼ ãææ°ã§ããããããããé¡ããããã¾ãã
ã¯ããã« ãã¢ããããä»ã®äººã®ç°å¢ã使ã£ã¦ã³ã¼ããæ¸ãã¨ãã« ãèªåã®Emacsã使ããã°ããã£ã¨ç´ æ©ããã£ãããããã°ã©ã ãæ¸ããã®ã«ã ã£ã¦æããã¨ã¯ããã¾ãããï¼ ããã¾ãããã»ã»ã» ç¡ãæ°ããããããã¡ã¤ã«ã交代ã«ç·¨éããã°ããã ãããªã£ã¦æã£ãã®ã§ããã ãããã¡å ±æãã¦ãã¢ããããæ¡å¼µãä½ãã¾ããã åä½ã¤ã¡ã¼ã¸ èµ·åæ èµ·åããã¨ããããã¡å ±æããç¶æ ã§èµ·åãã¾ãã ãã¢ããæ ãã¨ã¯ãä¸æ¹ã§ã³ã¼ããå¤æ´ãã度ã«ãä»æ¹ã«åæ ããã¾ãã å©ç¨æ¹æ³ åå¾ ;; æãªããã®è¨å®ã®è¿½å (add-to-list 'load-path "~/.emacs.d/site-lisp/pairpro") (require 'pairpro) ;; Emacsèµ·åã®ã³ãã³ã (setq pp-command-emacs "/Applications/Emacs.app/Contents/Mac
ãã®è¨äºã¯Emacs Advent Calendar 2014ã®ç¬¬20æ¥ç®ã®è¨äºã¨ãã¦æ¸ããã¾ããï¼ç¬¬19æ¥ç®ã¯kawabata@githubããã«ãããEmacs Lispã®æ±å¤æ°ï¼ã¨ãã®ä»ï¼ãã§ããï¼ç¬¬21æ¥ç®ã¯sanryuuããã«ããèªä½ãã¼ã«ã®ç´¹ä»ã®äºå®ã§ãï¼ ã¤ã³ãããã¯ã·ã§ã³ ããã°ãã¯ï¼Emacsã®ã話ããã¾ãï¼ãããèªèº«ãã¾ãEmacsã®ãã¾ãã¾ãªæ©è½ã使ãããªãã¦ããªãã®ã§ããããèªè ãæ³å®ãã¦æ¸ãã¾ãï¼ Emacsã«éããã¨ãã£ã¿ã§ä½ããã®ãã¡ã¤ã«ãç·¨éãã¦ããã¨ï¼ããã¦ãã®å ´åæ£è¦è¡¨ç¾ã«ããæ¤ç´¢ãç½®æã欲ãããªãã¾ãï¼ããã¦Emacsã«ã¯re-builderã¨ããç´ æ´ãããæ©è½ãããã¾ãï¼ ããã¯æ£è¦è¡¨ç¾ã¯ã¨ãªãæ¸ããªããï¼ãªã¢ã«ã¿ã¤ã ã§ããã«ãããããé¨åã確èªåºæ¥ãã¨ãã便å©ãªãã¼ã«ã§ãï¼ãããï¼Emacsã®æ£è¦è¡¨ç¾ã¯å¾¡åç¥ã®éãå°ãé¢åãããã§ãï¼ã¨ãããçµæ§é¢
nimlang ã«ã¤ãã¦æ¥æ¬èªã§æ¤ç´¢ãã¦ãè±èªã§æ¤ç´¢ãã¦ããã¾ãæ å ±ããªãã®ã§ãã¾ãã¤ãã£ã¦ãã人ã¯ããªãããããã¾ããããEmacs ã® nimlang ç¨ã®ã¡ã¸ã£ã¼ã¢ã¼ãã§ãã nim-mode ã®ã¤ã³ãã³ãã smie.el ã使ã£ã¦æ¹åããã®ã§ç´¹ä»ãã¾ããã㨠SMIE ã«ã¤ãã¦ã®ä½¿ç¨æã¨ã⦠ãã ãEmacs25.1 ã§è¿½å äºå®ã® if-let é¢æ°(subr-x.el ã®)ã使ã£ã¦ãããããããå¤ããã¼ã¸ã§ã³ã® Emacs ã§åãããã¨ããå ´å 24.4 ã¾ã§ããã¹ããéãéçã§ããããªã®ã§ 24.3 以ä¸ã§ã¯ãããã travis ã®ãã¹ãã§ãã確èªãã¦ã¾ããããã¡ã ã¨æãã¾ãã nim-mode ãã¢ãããã¼ãããã°èªåçã«ä½¿ããããã«ãªã£ã¦ãã¾ãã(ã¨ãããå¤ã python.el ããæµç¨ãã¦ããã¤ã³ãã³ãã®ã³ã¼ãã¯ã¯ã¼ãªããªã£ã) ãã¨é¢ä¿ãªãã§ãããnimsugge
nim_syntax.md åãã« æ¬ç¨¿ã§ã¯Nimè¨èª (æ§ç§°: Nimrod) ã®æ§æãç´¹ä»ãã¾ãã Nimè¨èªã®æ¦è¦ãã¤ã³ã¹ãã¼ã«æ¹æ³ã«ã¤ãã¦ã¯ãããã°è¨äºãããã®ã§ãã¡ãããåç §ä¸ããã Nimã®ç´¹ä» â Python風éçåä»è¨èª ãã³ã³ãã¤ã©ã¨åæ¨è«ãæ·»ãã¦ã æãæ¸ã çè ã¯Nimã®éçºè ã§ã¯ãªããæ¬ç¨¿ãå ¬å¼ãªããã¥ã¡ã³ãã§ã¯ããã¾ãããæ¬ç¨¿ã¯çè ãNimã®ãã¥ã¼ããªã¢ã«ãèªã¿ãªããæ¸ããã¡ã¢æ¸ããåºã«ãã¦ãããå 容ã«ã¯ééããå«ã¾ãã¦ããå¯è½æ§ãããã¾ããNimã¯æ£å¼ãªãªã¼ã¹åã§ãããä»å¾ä»æ§ãå¤æ´ãããå¯è½æ§ãããã¾ãããããã£ã¦ãæ¬ç¨¿ã®å 容ã¨å®éã®ä»æ§ã»å®è£ ã¨ç°ãªãå¯è½æ§ãããã¾ããééããä»æ§å¤æ´ã¸ã®é ããªã©ãããã¾ããããææããã ããã¨å¹¸ãã§ãã 以ä¸ã®è³æãåèã«ãã¦ãã¾ããã翻訳ã§ã¯ããã¾ãããã¾ãããµã³ãã«ã³ã¼ãããã®ã¾ã¾ãã¾ãã¯ä¸é¨æ¹å¤ãã¦ä½¿ç¨ããã¦é ãã¦ã
#ã¯ããã« ããã«å§ããããWeb IDEã¨ãã¦æåãªãcloud9ç¡åçã®ããã¨ãããï¼è¡ã§ã ãã©ã¦ã¶ä¸ã§Ubuntu(14.04)ç°å¢ãç¡æã§ä½¿ãããã ãã©ã¦ã¶ã®ã¨ãã£ã¿ãç¨ãã¦ãããã°ã©ã éçºãã§ãããã 親ä¼ç¤¾ã¯AmazonãAmazon EC2ãªã©ã®ã¯ã©ã¦ãã¸ã®ç§»è¡ã楽ããã·ã¼ã ã¬ã¹ã«è¡ããããã«ãªã£ã(2017 12/1ï½)ã ãããã¯æ¢ã«ä½¿ã£ã¦ãã人ãã¡ã«ã¯å½ç¶ã®ãã¨ãªãã ãããã©ã ä½å¹´ãåã®åºãã¦ã®é ã®cloud9ãwebä¸ã®çµ±åéçºç°å¢çãªèªèã§ä½¿ã£ã¦ã¿ãåã¯ã cloud9ã®ã¨ãã£ã¿ã«ç¹ã«èå³ãæããªãã£ããã¨ãããã cloud9ã®Ubuntuçãªå´é¢ãã¾ã£ãããããæ°ã«ããªããªãã£ãã æè¿ãIoTéçºã«cloud9ã®gccãæ´»ç¨ãã¦ãçãªè¨äºãè¦ã¦ãæ¹ãã¦cloud9ãããã£ã¦ã¿ãã¨ããã å°ãªãã¨ãããªãã¿ã®å°ãªãããã°ã©ã è¨èªãã試ãããã«ã¯ãããªãã¨æ
Emacs Lisp ã§ã®æååããã®æ¤ç´¢ç³»é¢æ°ãããå¿ããã®ã§ã¡ã¢ãã¦ãã ä¾ (setq string "aaabbb") ; æ£è¦è¡¨ç¾ã§æ¤ç´¢ (string-match "a+" string) 0ãâãæ¤ç´¢ã«æåããå ´åã¯éå§ä½ç½®ãè¿ã ; ä¸è´ããé¨åãåå¾ (substring string (match-beginning 0) (match-end 0)) "aaa"ãâãæå®ããé¨åã®æåå ; ä¸è´ããé¨åãç½®æ (replace-match "bbb" nil nil string) "bbbbbb"ãâãä¸è´ããé¨åãç½®æãã¦æ°ãã«åºæ¥ãæåå (let ( (s "123 I love emacs.")) (string-match "^\\([0-9]+\\) I love \\(.+\\)$" s) (match-string 0 s) ; => "123 I
elispã®æ£è¦è¡¨ç¾ã¯ããããã æ®å¿µãªãã¨ã«elispã«ã¯æ£è¦è¡¨ç¾ãªãã©ã«ãåå¨ããªããããé¢æ°ãã³ãã³ãã«æ£è¦è¡¨ç¾ã渡ãããã«ã¯æååã¨ãã¦æ¸¡ãå¿ è¦ãããã ä»ã®è¨èªã®æ£è¦è¡¨ç¾ã¨åæ§ãelispã®æ£è¦è¡¨ç¾ã§ãããã¯ã¹ã©ãã·ã¥ãå«ãã¡ã¿æåï¼"\w"ã¨ãã°ã«ã¼ãã³ã°ç¨ã®"\("ã¨ãï¼ãå¤ç¨ãããã¯ã±ã ãã©ãæååä¸ã§ã¯ãããã®ã¡ã¿æåã«å«ã¾ããããã¯ã¹ã©ãã·ã¥ãã¨ã¹ã±ã¼ãæåã¨ãã¦å¦çããªããã°ãªããªãã ãã¨ãã°ãæ£è¦è¡¨ç¾"\(\w.\)"ãæååã§è¡¨ç¾ããããã«ã¯"\\(\\w*\\)"ã¨æ¸ãå¿ è¦ãããããã ã§ããèªã¿ã«ããæ¸ãã«ããæ£è¦è¡¨ç¾ã大éã®ããã¯ã¹ã©ãã·ã¥ã«ããæå·ã®ããã«ãªã£ã¦ãã¾ããããã¹ãå¦çãã¡ã¤ã³ã®è¨èªã®ã¯ããªã®ã«ï¼ï¼ï¼ re-builderã§å¯¾è©±çã«æ£è¦è¡¨ç¾ãæ¸ã ãã ããã³ãã¡ããã®æ¬ã«ãæ¸ããã¦ããéãæ£è¦è¡¨ç¾ãå°ãã§ãã©ã¯ã«æ¸ãããã®workaroundã¯
Emacs Advent Calendar jp: 2010 ã®13æ¥ç®ã¨ããããã§ãç¸æ²å¤§å¥½ã Emacser ã® tomoya ã§ããã©ãããã°ãã (2æ¥é£ç¶ã®ãã¿ã§ã)ã æ¨æ¥12æ¥ç®ã¯èå·æºåããã®ãã¤ãã®æä½ããªããªã®ã調ã¹ãæ¹æ³ã§ãããææ¥ã¯ kwappa ããã«ãªãã¾ãã ã¡ãªã¿ã«ãå»å¹´ã¯ Mac ã® Emacs 23.1 以éã§OSæ¨æºè¾æ¸ã使ã£ã¦ã¿ãã¨ãããã¿ã§ãããä»å¹´ã¯ãããæ´ã«å解ãã¦ãElisp ã§éãã§ã¿ããã¨æãã¾ãã ã«ã¼ã½ã«ã«ã¤ãã¦ã ãã¦ããã½ã³ã³ã® UI ã«ã¯ã主ã«ãã¦ã¹ã«ã¼ã½ã«ã¨ãã£ã¬ããã«ã¼ã½ã«*1ãããã¾ãããã¨ãã£ã¿ã«ããã¦ã¯ãã£ã¬ããã«ã¼ã½ã«ã¯æãéè¦ãªæ å ±æºã§ãã RPG ã§ããã¨ããã®æä½ãã£ã©ã®ç¾å¨å°ã§ããããè¦å¤±ãã¨æä½ä¸è½ã«ãªãã¾ããã調ã¹ãã¨ã¢ã¤ãã ãè¦ã¤ãã£ãããã¾ãã ãããªç¾å¨å°ã§ãããEmacs ã§ã¯æåã®å ¥åä½ç½®ã¨ãã
ï¼ããã¯ãLisp Advent Calendar 2012ã®20æ¥ç®ã®è¨äºã§ããï¼ é·ãã®ã§åå¾ç·¨ã«åãã¾ãããæãªæ¹ã¯ã©ããã -*- delayã¨force -*- æ£æ ¼è©ä¾¡ã®è¨èªã§ãã¯ãã¼ã¸ã£ãããã°é 延è©ä¾¡ãè¡ããã¨ãã§ãã¾ããè¨ç®å¼ãã¯ãã¼ã¸ã£ã«å ãã§ãã¾ãã°ãã¯ãã¼ã¸ã£ãå¼ã³åºãããã¾ã§ä¸ã®å¼ã¯è©ä¾¡ããã¾ããã*1 å è¡è©ä¾¡ (+ 2 3) ;=> 5 é 延è©ä¾¡ (setq p (lambda () (+ 2 3))) ;=> è¨ç®å¼ãå ãã ã¯ãã¼ã¸ã£ (funcall p) ;=> 5 é 延è©ä¾¡ãããå¼ããã¡ãã¡lambdaã§å ãã®ã¯é¢åã ããlambdaã ãã§ã¯ãå¼ãé 延è©ä¾¡ãããããã¨ããæå³ãä¼ããã¾ãããã©ã¤ãã©ãªã«ãã¾ãããã (defmacro delay (expr) `(lambda () ,expr)) (defalias 'force 'funcall)
ç§ã®å¼¾ä¸¸å°æ¹¾ç´è¡ã3æ¥ç® ããã°ãã¯ã 3æ³4æ¥ã®å°æ¹¾æ è¡ã3æ¥ç®ã®è¨é²ãã 1æ¥ç®ï¼ norimakichan.hatenablog.com 2æ¥ç®ï¼ norimakichan.hatenablog.com 3æ¥ç®ï¼ãã®è¨äº 4æ¥ç®ï¼ norimakichan.hatenablog.com æç´ãåºããã åç£ãæ±ã㦠ä¹ä»½ 西é é§ãè¾¼ã¿å°ç± å æç´ãåºããã æ è¡å ããâ¦
Replace any character with a fixed char(make-string (length word) 0) replace-regexp-in-stringEmacs21 already has what you need: (replace-regexp-in-string "fo+" "baz" "da foo is foobared") => "da baz is bazbared" Direddired.el already has what you need: (require 'dired) (dired-replace-in-string "fo+" "baz" "da foo is foobared") => "da baz is bazbared" Splitting and Joining StringsYou can use the re
åç·¨ã«å¼ãç¶ãã使ãã®ã¯Emacs Lispã§ãã -*- é 延ãªã¹ã -*- ãã®ãããåºæ¬çãªãã¨ãæ¸ãã¾ãã äºã¤ã®ãªãã¸ã§ã¯ãã®ãã¢ãä½ãé¢æ°consãããã¾ãããã®ãã¢ã¯ããã対ã¨ãå¼ã°ãã¾ãããcdré¨ãnilã®å ´åãçã®ãªã¹ã*1ã«ãªãã¾ããã¾ãcdré¨ãçã®ãªã¹ãã§ãããã¢ãã¾ãçã®ãªã¹ãã«ãªãã¾ãã (setq c (cons 1 2)) ;=> (1 . 2) ;ããã対 (car c) ;=> 1 caré¨ (cdr c) ;=> 2 cdré¨ (setq ls (cons 1 (cons 2 (cons 3 nil)))) ;=> (1 2 3) ;ãªã¹ã (car ls) ;=> 1 (cdr ls) ;=> (2 3) (car (cdr ls)) ;=> 2 (car (cdr (cdr ls)) ;=> 3 (car (cdr (cdr (cdr ls)))
\s- ã¨ããæ£è¦è¡¨ç¾ã¯ã¹ãã¼ã¹ Emacs ã®æ£è¦è¡¨ç¾ãè¦ã¦ããã "\s-" ã¨ãã表ç¾ãåºã¦æ¥ãã è¯ãããããªãã£ãããä½ã¨ãªãã¹ãã¼ã¹ãå ¥ãä½ç½®ã ã£ãã®ã§ã Emacs æ£è¦è¡¨ç¾ ã¹ãã¼ã¹ ã§æ¤ç´¢ãããä¸çºã§åºãã "\s-" ã示ãã®ã¯ 空ç½ã \t , \n ããªã ã¤ãã§ã«ä»ã®æ£è¦è¡¨ç¾ã調ã¹ãã EmacsWiki: Regular Expression ã·ã³ã¿ãã¯ã¹ åãããã£ã¦ãã®ã¯çãã¦ããã è¡¨ç¾ è±èªèª¬æ æå³ \w word constituent æåå(æåãæ°å) \b word boundary æååã®åºåãæå(空ç½ã¨ããæ¹è¡) \sc character with c syntax (e.g. \s- for whitespace char) ãããã Cè¨èªã§ã®æååï¼ \< \> start\end of word æååã®å§ã¾ããçµãã \_
Emacsã®æ£è¦è¡¨ç¾ãä¸æã使ãããªããªãã»ã»ã»ã ãããç§ã使ãããªããªãããããªãï¼ Emacs ãæªããã ï¼ï¼ â¦â¦ã¨æã£ãã®ã§æ¹é ã§ãã é ããããï¼ Emacs ã®æ£è¦è¡¨ç¾ Emacs ã®æ£è¦è¡¨ç¾ã¯ç¬ç¹ããã¦é ããããã§ããä»ã®ã«æ £ãã¦ãã¨å ¨ç¶ä½¿ãããªãã¾ããã RegExp replace ï¼æ£è¦è¡¨ç¾ã§ã®ç½®æï¼ã®ã¨ããã ã©ã®æåãæ£è¦è¡¨ç¾ã«å¼ã£ããã£ã¦ãããããããçµæã Replaced 0 occurrences ã®ä¸æãè¦ã¦ã¬ãã«ãªãããã¨ã«ãªãã¾ãã Emacs æ¨æºæè¼ã® Re-Builder ã¨ããæ©è½ã使ã£ã¦ãæ£è¦è¡¨ç¾ãä¸è´ãããè¦ããã¨ã¯åºæ¥ã¾ããã»ã»ã»*1 ã¡ãã£ã¨ä¾ãè¦ã¦ã¿ã¾ãããã 使ããªã Re-Builder <p name="lemon"> lemon </p> <p name="melon"> melon </p> ããã® name="" ã®ä¸èº«
scalaé¢è¥¿summitã§æ°ã«ãªã£ãã®ã§å°å ¥ã ããã£ã¦ã¿ãåå¿é² ããã¥ã¡ã³ãã¯ãã¡ã intellij scalafmtã®ãã©ã°ã¤ã³ãå ¥ããã ãã Command(â) + Shift(â§) + Lã§ãã¡ã¤ã«ã®ãã©ã¼ããããå®è¡ã ãã©ã«ãã§å®è¡ããã¨ãã©ã«ã以ä¸ããã¡ã¤ã«ã§å®è¡ããã¨ãã¡ã¤ã«ä»¥ä¸ãå®è¡ãã¦ããã¾ãã sbt 0.13 å ¬å¼ã®sbtãã©ã°ã¤ã³ãsbt-scalafmtãããããã0.13ã«å¯¾å¿ãã¦ããªã模æ§ã éå ¬å¼ã®ãneo-sbt-scalafmtããããã¾ãã 使ã£ãã¬ãã¼ãéã£ã¦ããããå ¬å¼ã«ããå¯è½æ§ãããã£ã¦è¨ã£ã¦ã¾ãã 以ä¸ã¯å ¬å¼ã®æ¹ã®ãsbt-scalafmtããä½ã¨ã使ãæ¹æ³ã§ãã
å人çã«ã¯ãã使ãã®ã§ããããããã§ããªãã®ã11ã§ãä»ã®ã¦ã£ã³ãã¦ããã¹ã¦éãããã¨ãããã¤ã§ãã11ã¯æ®éã«å ¥åãã¾ããã®ãï½ ãã ä¸è¨ã®åææ¼ãç³»ãé£ç¶å ¥åç³»ã¯ãã¾ãè±åèªçã«åºã¦ããªãã®ã§ãªã¹ã¹ã¡ã§ãã org-capture åã¯ãã¶ã¤ã³ããæ¼åºã3Dã½ããããæ åã½ãããJSãPythonãªã©ã®ã¹ã¯ãªãããªã©ãæ§ã ãªæ¥åãè¡ãã®ã§ãä½æ¥ä¸ã®æ°ä»ãããããã¨ã¡ã¢ãåãã¨ãã«org-modeãå¤ç¨ãã¦ãã¾ãã ccã§org-captureãç«ã¡ä¸ãããã®å¾é æåãå ¥åãã¦åã¡ã¢ã«ã¢ã¯ã»ã¹ãã¦ãã¾ããã¾ããããã®ã¡ã¢ã¯Copyã¨ãããªã³ã©ã¤ã³ã¹ãã¬ã¼ã¸ãµã¼ãã¹ã§åæãã¦ãã¾ãã (注) Copyã¯ãµã¼ãã¹ã¯ãã¼ãºãã¡ããã¾ãããDropBoxãªã©ã§åæããã¨è¯ããã¨æãã¾ãã magit gitã¯ç«¯æ«ããæä½ãããã¨ãå¤ãã£ãã®ã§ãããmagitããåºæ¥ã¦ãï¼ãã¦ãï¼ãªã®ã§ä½¿ã£ã¦ã¿ã¦
ä»æ¥ã¯ Emacs 㧠Ruby ãç·¨éããå ´åã«æ¯éç¥ã£ã¦ãããã便å©ãªãã¼ã«ã«ã¤ãã¦ç´¹ä»ãããã¨æãã¾ãï¼ç´¹ä»ãããã¼ã«ã¯ä»¥ä¸ã® 3ç¨®é¡ + 1 ã§ãï¼ Smart Compile xmpfilter what_methods (anything-ruby-methods) Smart Compile Smart Compile 㯠Emacs ãããã¼ãå©ãã ãã§ç·¨éä¸ã®ãã¡ã¤ã«ãã³ã³ãã¤ã«/å®è¡ã§ãã elisp ã§ãï¼ãã㯠Ruby ã«éããï¼æ§ã ãªè¨èªã§ã®éçºã«ä½¿ç¨ã§ãã¾ãï¼ Emacs ã«ã¯æ¨æºã®ã³ã³ãã¤ã«æ©è½(M-x compile)ãããã®ã§ããï¼ããã¯æ®å¿µãªãã make -k ãå¼ã³åºãã ãã¨ãªã£ã¦ããï¼ä½¿ç¨å ´é¢ãéããã¦ãã¾ãã¾ãï¼C è¨èªã§ããã°ããã§ãããã©ï¼Ruby ã§ããã°ï¼ãruby [ç·¨éãã¡ã¤ã«]ããå¼ã³åºãããã§ãï¼Smart Compile ã使
以ä¸ã®è±ææ³ãã§ãã«ãemacsãã使ããããã«è¨å®ãã textlint redpen langtool textgears AfterTheDeadline link-grammar textlint textlintã¨è±ææ³ãã§ãã¯ã«ã¼ã«ãã¤ã³ã¹ãã¼ã« # npm update -g npm # npm install -g textlint # npm install -g textlint-rule-unexpanded-acronym textlint-rule-rousseau textlint-rule-alex textlint-rule-common-misspellings textlint-rule-ginger textlint-rule-spellchecker textlint-rule-write-good textlint-rule-en-max-word
Equation ([26530]) and ([98699]) shows an results. X shows an results[96852]. [11593] [78137] is logical languages. [26630] hello [39322] hello [99858] xxxxxxxxxxxx [21335] [16739] [89154] method find an solutions. (require 'ht) (defun ht-valueds (table valued) "Retuen keys which has value" (let (results) (maphash (lambda (key value) (when (equal value valued) (push key results))) table) results))
ç¸å¯¾ãã¹ã®ãã¡ã¤ã«åãã³ãããããã¡ã¤ã«ãå¥ãã£ã¬ã¯ããªã«ãã£ã¦ãã次ã®é åºã§ããã°ã£ã¦æ¢ãã®ã§ããã¡ã¤ã«ãç°¡åã«éããããã«ãªãã¾ãã ãã«ãã¹ã ã£ãããã®ã¾ã¾éã ç¾å¨ã®ãã£ã¬ã¯ããªãåºæºã«æ¢ã ç¾å¨ã®ãã£ã¬ã¯ããªããè¦ã¦å ç¥ã®ãã£ã¬ã¯ããªã« .git ãããã°ãã®ãã£ã¬ã¯ããªããã®ç¸å¯¾ãã¹ã¨ãã¦æ¢ã ç´è¿ã§éãã¦ãããããã¡ãé ã«åãæ¿ããªããããã®ãã£ã¬ã¯ããªãåºæºã« 2 㨠3 ã試ã dash 㨠s ã¨ãã便å©ã©ã¤ãã©ãªãå©ç¨ãã¦ããã®ã§ M-x package-list-packages ããã®ã¤ã³ã¹ãã¼ã«ãå¿ è¦ã§ãã (require 'dash) (require 's) (defun my-file-jump () "ã«ã¼ã½ã«ä¸ã®ãã¡ã¤ã«ã«é£ã¶ããªãã£ããä»ã®ãããã¡ã®ãã£ã¬ã¯ããªãåºç¹ã«æ¢ã â確èªç¨ ~/.emacs.d/init.el ~/.emacs.d/in
Go ã® Test ã«å¯¾ããèãæ¹ ãã®è¨äºã¯ Go Advent Calendar 2013 ã® 9 æ¥ç®ã®æ稿ã§ãã ä»åã¯ã Go ã® testing ã¨ããããã±ã¼ã¸ã®ä½¿ãæ¹ã解説ãããã¨æã£ãã®ã§ããã ããã ã¨ã¤ã¾ããªãããã®ã§ãåãã㦠Go ã test ã¨ããã assert ã«ã¤ãã¦ã©ãããã¹ã¿ã³ã¹ãã¨ã£ã¦ããããæ¸ãã¦ã¿ã¾ãã Go ã§ãã¹ã ãã¦ãããã¹ãã®ãªãã³ã¼ãã¯ã¬ã¬ã·ã¼ã³ã¼ãããªã©ã¨è¨ããã¦ä¹ ãããæ§ã ãªè¨èªã test (主㫠Unittest) ã«ã¤ãã¦è¨èªã¬ãã«ã§ãµãã¼ãããããããã¡ã¯ããªã©ã¤ãã©ãªã確ç«ãããã¨ãã£ãç¶æ³ããä»æ¥ã§ã¯è³ã£ã¦æ®éã®ãã¨ã¨ãªã£ã¦ãã¾ãã ãããªè¨èªãç°å¢ã§ãæ¯ãããããã«ãã¹ããæ¸ãã¦ããã¿ãªããããã¯ãã㦠Go ã§ã³ã¼ããæ¸ãæã«è¦ãã¹ã㯠testing ããã±ã¼ã¸ã§ãã http://golang.org/pkg
ããã«ã¡ã¯ãPyQéçºãã¼ã ã®æ¸ å id:hirokiky ã§ãã ä»æ¥ã PyQ ã®ã¡ã¼ã«ãµãã¼ãã§ä½åº¦ãããã ãã質åã®ç´¹ä»ããã¾ãã 質å Pythonã®ã¤ã³ã¹ãã¼ã«æ¹æ³ã¨ãã¦pyenv + virtualenvã§ã®ç°å¢æ§ç¯ãæ¤ç´¢ä¸ä½ã«ãã¾ããã pyenvã¯ä½¿ãã¹ããªã®ã§ããããï¼ venvã主æµãªããã§ããã©ãããã®ãè¯ãã§ããããï¼ åç Pythonã®ç°å¢æ§ç¯ã«é¢ãã¦åçããã¦ããã ãã¾ãã ãææã®éãPythonã®ç°å¢æ§ç¯ã®æ¹æ³ã¯ããã¤ããããã¾ãã ããããå©ç¨è ã«ãã£ã¦ã¦ã¼ã¹ã±ã¼ã¹ãéãããããªããªããã¹ããã©ã¯ãã£ã¹ã¨ ä¸æ¦ã«ãçãããã®ã¯é£ããã§ãããåèã«ãªããããªæ å ±ããä¼ãããã¦ããã ãã¾ãã ymotongpoo.hatenablog.com qiita.com ymotongpoo.hatenablog.com qiita.com qiita.com ä¸
ããã°ãã¯ããã¼ã¯ã¢ããã¨ã³ã¸ãã¢ã® ã§ãããã¾ãã æè¿ãªããVagrantã¨Ansibleã使ã£ã¦éçºç°å¢ãä½ãäºãå¤ãã§ãã ãã®çºAnsibleã§å°ã£ãã¨ãã®åå¿é²ã ä»ã®äººã®ç°å¢ã§åããªã(Installing Ansible...ã§æ¢ã¾ã£ã¦ãã¾ã) ç°å¢å¤æ°ãåå¨ããç¶æ ã§å®è¡ããããã .bashrcãèªã¿è¾¼ãã§ã»ããã å¤æ°ããã«ããã«ãã«ãããã playbookã®ä¸é¨ãæå·åãããã tasks/main.ymlãé·ãã tasksãéä¸ããå®è¡ãããããããã°ãããã blockinfileã§`{`ãæååãªãã©ã«ã¨ãã¦æ±ããã ä»äººã®ç°å¢ã§åããªãã(Installing Ansible...ã§æ¢ã¾ã£ã¦ãã¾ã) The Ansible software could not be found! Please verify ã¨ãã§ã¦æ¢ã¾ã£ã¡ããã ããã¯Vagrantã®
é¢ç½ããªè¨äºãè¦ã¤ãã¾ããã æ°ã»OS X ãããã³ã°! (166) éçºè ã§ãªãã¦ããSwiftãã¯ä¾¿å©ã«ä½¿ãã | ãã¤ãããã¥ã¼ã¹ #!/usr/bin/swift 㧠swift ãèµ·åããã¨ããã®ã§ãã 試ãã¦ã¿ããXcode ã¯å ¥ã£ã¦ããã®ã§ãã¿ã¼ããã«ãã試ãã¦ã¿ã¾ãã ãã¼ã¸ã§ã³ç¢ºèª takuya@Desktop$ swift --version Apple Swift version 3.0.1 (swiftlang-800.0.58.6 clang-800.0.42.1) Target: x86_64-apple-macosx10.9 takuya@Desktop$ Macã§å®è¡ãã¦ã¿ã ã·ã§ã«ã¹ã¯ãªããã¨ãã¦Swift ãå®è¡ãã¦ã¿ããsample.swift ãã¡ã¤ã«ã¤ãã£ã¦ shebang ããã¦ãå®è¡æ¨©éããããæãã§ããã ãã¡ã¤ã«ä½ã£ã¦ sample01.s
ä¼å¡äºæ¥é¨ã®ä¸æ¨(@giginet)ã§ãã ãã®è¨äºã§ã¯ãæ¥åæ¹åã®ããã«éçºè åãã®ãã¼ã«ãSwiftã§éçºãã¦ã¿ãããããã®ç¥è¦ã«ã¤ãã¦ãä¼ããããã¨æãã¾ãã ãªãããã®è¨äºã¯Xcode7.1ä¸ã§Swift2.1ã使ã£ãéçºãåæã¨ãã¦ãã¾ãã ä½ã£ããã® ã¯ãã¯ãããiOSã¢ããªã§ã¯éçºã®éã«ãæ°ããæ©è½ãå®è£ ããããã¤ã³ã¿ã¼ãã§ã¤ã¹ãæ¹åãããã¨ã«iOSã·ãã¥ã¬ã¼ã¿ã¼ã®åç»ãæ®å½±ãPull Requestã«è²¼ãä»ãã¦ãã¾ãã åç»ãæ®å½±ããéã«ã¯ãæ±ç¨çã«ã¹ã¯ãªã¼ã³ãã£ã¹ããæ®å½±ãã社å ãã¼ã«ã使ã£ã¦ããã®ã§ããã使ãã¥ããé¢ãå¤ãã£ãããã ç°¡åã«iOSã·ãã¥ã¬ã¼ã¿ã¼ã®æä½ãã¢ãã¡ã¼ã·ã§ã³gifã¨ãã¦è¨é²ãããã¨ããéè¦ãããã¾ããã ãã®ããã空ãæéã使ã£ã¦ãç°¡åãªã¦ã¼ãã£ãªãã£ãå®è£ ãã¾ããã ãªãSwiftã§ä½ãã®ã ä»åã¯ãOS Xã®éçºç¨SDKã§ããCocoaã使ã
#!/usr/bin/env swift import Foundation guard let pathToMe = URL(string: "\(#file)", relativeTo: URL(fileURLWithPath: FileManager.default.currentDirectoryPath))?.path else { print("Error: current path of #file") exit(-1) } print( "path to me: \(pathToMe)" ) // path to me: /Users/uchcode/Desktop/path-to-me.swift let __file__ = pathToMe as NSString print( "NSString:") print( " full path: \(__file__)"
æ°ããã®ããã°ã©ãã³ã°è¨èªã«ã¯REPLããã£ãããã¹ã¯ãªãããã¡ã¤ã«ããå®è¡ã§ããããã¾ããæ¸ããªããåå¼·ã§ãã¾ããããéå®ãã¾ãããã ããããã⦠ã¨ãã£ã¿ã¼ã¨ã¿ã¼ããã«ãè¡ã£ããæ¥ããããã®ã¯ã¡ãã£ã¨é¢åã§ãã ã¦ã£ã³ãã¦ã2ã¤ããã¨ãè²ã ãªæä½ãå¢ãã¾ããè¦ããã®ããã«åããã¦ã¹ãã¼ã¹ãéããã ãã§æ°ç§ä½è¨ã«ãããã¾ãã IDEã使ãã°ãããã§ããããã¡ãã¯åºæ¬çã«ãµã¤ãºã大ããã®ã§ãmacbookã§ã¡ãã£ã¨åå¼·ãã¨ããç¨éã«ã¯å¤§ããã ã£ãããã¾ãããã£ã¨åç´ã«ãå³å´ã«åºåããã£ã¦ãå·¦å´ã«æ¸ãã¦ãã¼ãã¼ãã·ã§ã¼ãã«ããã§å®è¡ã§ãããã¨ããã ãã§å åãªãã¨ãããã¾ãã ããããããªãNSTaskã§ç°¡åã«ä½ãããã§ãã ã¨ãããã¨ã§å®éã«ä½ãã¾ããã ã»ãã¥ãªãã£ã¨ãã¨ã©ã¼ã¨ãèããªããã°ãå·¦å´ã«æ¸ãã¦command+Rã§å®è¡ã§ããã¢ãã40è¡ã§ä½ããã¨ãã§ãã¾ãã ä½ãæ¹ åºæ¬çã«ã¯
#!/usr/bin/swift import Foundation typealias Failure = (NSError!) -> Void typealias ResultBlock = (NSData!, NSError!) -> Void /// JSONObjectWithDataã®æ»ãå¤ã¨ãã¦ä½¿ç¨ãã enum JSONObjectWithDataResult { case Success(AnyObject) case Failure(NSError) } /// NSDataãJSONãªãã¸ã§ã¯ãã«å¤æããJSONãªãã¸ã§ã¯ãã¾ãã¯ã¨ã©ã¼ã®ãããããè¿ã func JSONObjectWithData(data: NSData) -> JSONObjectWithDataResult { do { let json = try NSJSONSerialization.J
(defun copy-from-osx () (shell-command-to-string "pbpaste")) (defun paste-to-osx (text &optional push) (let ((process-connection-type nil)) (let ((proc (start-process "pbcopy" "*Messages*" "pbcopy"))) (process-send-string proc text) (process-send-eof proc)))) (setq interprogram-cut-function 'paste-to-osx) (setq interprogram-paste-function 'copy-from-osx)
ã³ãããä¸ä¾¿ãªã®ã§ããã¤ãã®å¦ã調ã¹ã¦ã¿ããè¨å®ã§ããã ã¯ãªãããã¼ãå ±æ㯠è¥ãæ¥ã®éã¡: ãã«ãªã³ã°ã¨ã¯ãªãããã¼ãã®å ±æï¼ã¨ããããMacï¼ ã«æ¸ãã¦ããéãã«è¨å®ããã ãã ãç¾ç¶ã® init.el 㯠Linux 㨠Mac ç°å¢ã§å ±æãã¦ãã®ã§ãã§ããã°ä¸¡æ¹ã§ä½¿ããç¶æ ã«ä¿ã¡ããã ããæ¹æ³ç¡ãããªã¼ã¨èª¿ã¹ã¦ããã²ã¨ã¤ã® .emacs ã§è¨å®ãæ¸ãåããããã® Tipsã â æ¥ã ãã¨ãã¯èªããã«ã¦ç°å¢ãå¤å®ããæ¹æ³ãæ¸ããã¦ãã®ã§ããããçµã¿åãããçµæãã¾ããã£ãã ;; system-type predicates ;; from http://d.hatena.ne.jp/tomoya/20090807/1249601308 (setq darwin-p (eq system-type 'darwin) linux-p (eq system-type 'gnu/lin
emacsã¯ç¬èªã®ãã«ãªã³ã°ã使ã£ã¦ããã®ã§ãemacs㧠C-w ãªã©ã§ã³ãã¼ããã¨ããã§ãä¾ãã°Firefoxã«ãããè²¼ãä»ãããã¨ã¯ã§ããªããåé¿çã¨ãã¦ãã¿ã¼ããã«ãªããããã®ã³ãã¼æ©è½ã使ç¨ãããã¨ã§ãå¤é¨ã¢ããªã±ã¼ã·ã§ã³ã«å¼µãä»ãããããéã«ãã¯ãªãããã¼ãã®æååãåæ§ã®æ¹æ³ã§emacsã«è²¼ãä»ãããã¨ãåºæ¥ãããããããã«ã¯è´å½çãªæ¬ ç¹ããã:è¦ããã¾ã¾ã¯ãªãããã¼ãã«å ¥ãã®ã§ãã¦ã£ã³ãã¦åå²ãã¦ããã¨ä¸æãã³ãã¼ã§ããªãã¯ãªãããã¼ããããã¼ã¹ãããã¨ãä¸æåãã¤æã£ããã¨ã«ãªãã®ã§ãéããã¤ã³ãã³ããåæã«ã¤ãã¨ãã¹ãã¼ãã¨ã¯ãããªãç¶æ ã ãGUIããèµ·åããã¨ãã¡ãã¥ã¼ããã³ãã¼ãªã©ãã§ããããã«ãªã£ã¦ããããScreenãã³ã¶ã¤ãªã®ã§ãã¡ãã«è¡ããã¨ã¯æããªãã£ãã ããã§ã以ä¸ã®ãããªelispãã.emacsã«æ¸ãå ãããï¼ã½ã¼ã¹:http://blog.lat
))) Rubyã¸ã®ãã¿ã¼ã³ãããæ§æå°å ¥ã«åããä¸ææ¡Pattern Matching in Ruby - RubyKaigi 2017 RubyKaigi 2017ã«åå ãã¦ãã¾ããã ä»åã¯ä¾å¹´ã«ãå¢ãã¦æ¿ãæãã®ã¿ã¤ã ã¹ã±ã¸ã¥ã¼ã«ã¨ãªã£ã¦ãã¾ãããã Rubyã¸ã®ãã¿ã¼ã³ãããå°å ¥ãç®è«ãã§ãã身ã¨ãã¦ã¯ãã®ä¸ã§ã@yotii23ããã«ããPattern Matching in Rubyã大å¤æ¥½ããã£ãã§ããRubyã®ä¸»è¦ãªã«ã³ãã¡ã¬ã³ã¹ã«ããã¦ã Rubyæ¬ä½ã«ãã¿ã¼ã³ãããç¨ã®æ§æãããããã¨ãã話ãå®è£ ãä¼´ã£ã¦åºã¦ããã®ã¯ä»åãåãã¦ã®ã¯ãã§ãããèªä½æ義深ãäºã ã£ãããã«æãã¾ãã ææ¡ããã¦ãã%pã«ã¤ãã¦ã¯ãRubyistã«ã¨ã£ã¦é¦´æã¿æ·±ãææ³ã¨ããã®ã¯å©ç¹ã¨ãããåé¢ã è£ãè¿ãã¨é¦´æã¿æ·±ããã¦ã¦ã¼ã¶ã«èª¤ã£ãå°è±¡ãä¸ãã¦ãã¾ããã(ãªãã¸ã§ã¯ãã«è¦ããã®ã§å¤æ°ã«ä»£å ¥ã
Red Data Toolsã«ã¤ã㦠Red Data Toolsã¯Rubyç¨ã®ãã¼ã¿å¦çãã¼ã«ãæä¾ããããã¸ã§ã¯ãã§ãã ç§ãã¡ã®ããªã·ã¼ã§ãã Rubyã³ãã¥ããã£ã¼ãè¶ ãã¦ååãã ç§ãã¡ã¯Rubyã³ãã¥ããã£ã¼ã¨ãä»ã®ã³ãã¥ããã£ã¼ã¨ãååãã¾ãããã¨ãã°ãç§ãã¡ã¯å¤ãã®è¨èªãå ±éã§ä½¿ã£ã¦ããApache Arrowã使ãã¾ãããApache Arrowã®éçºã«åå ãã¦éçºææãå ±æãã¾ãã éé£ãããã¨ãããæãåãããã¨ãå¤§äº ç§ãã¡ã¯ç¾ç¶ï¼RubyãããPythonã®æ¹ããããããããã¼ã«ãæã£ã¦ããããããã¾ããï¼ãæ¢åã©ã¤ãã©ãªã¼ã®å®è£ ãéé£ãããã¨ãªã©ã«æéã使ãããããã³ã¼ããæ¸ããããã¹ãããããããã¥ã¡ã³ããæ¸ãããç§ãã¡ã®æ´»åãç´¹ä»ãããä»ã®ããã¸ã§ã¯ãã«ãã£ã¼ãããã¯ããããã¨ãã£ããã¨ã«æéã使ãã¾ãã ä¸åã ãã®æ´»çºãªæ´»åãããå°ããã¦ãããã®ã§ç¶ç¶çã«
æ¹é playbook.ymlãä¸ã¤å®è¡ããã°ç°å¢æ§ç¯ãæ¸ãããã«ãã 以åã¯Chef Solo + Berkshelfã§éçºç°å¢æ§ç¯ãè¡ã£ã¦ãããã以ä¸ã®ãããªãã¨ãæéã«ãªãAnsibleã«ç§»è¡ããã ã¬ã·ããå®è¡ã§ããç°å¢ãä½ãã¾ã§ãæé ã¬ã·ãã®ã½ã¼ã¹ãèªã¾ãªãã¨ã«ã¹ã¿ãã¤ãºãããããã®ã¨ãã©ãåãã¦ãããåããã¥ãã Vagrant + VirtualBoxã§åãã æè¿ã¯éçºç°å¢ã«Dockerã使ãã¨ããé¸æè¢ãããããinit.dãsystemdã§èµ·åãããã®ãapt-get installããã ãã ã¨åããªãã¦å¥éè¨å®ãå¿ è¦ãªãã¨ãããVirtualBoxã使ã£ã¦ããã Vagrantã®å ´åã«ä»¥ä¸ã®ããã«è¨å®ã追å ãã¦ããã¨ãååã«vagrant upããæã«ansibleãå®è¡ãããã®ã§ä¾¿å©ã - hosts: all become: yes vars: user: ub
gistã¯ãgitã®ã¬ãã¸ããªã¨ãã¦å©ç¨ãããã¨ãå¯è½ã§ãããã¬ãã¸ããªã¨ãã¦cloneããããæå ã§ç·¨éãã¦pushãããã¨ãå¯è½ã«ãªãã ãªãããã£ãã·ã§ã³ãéã«ãªã£ã¦ãããã©æ°ã«ããªãã§ï¼ ãªã®ã§ãä¾ãã°è¤æ°ãã¡ã¤ã«ã«ãªããã¡ãªèªæ¸ã¡ã¢ã§ãã£ããããããã¯ä»ã®è²ã ãªã¾ã¨ã¾ããªããã®ã«é¢ãã¦ã¯ãä¸æçã«ã¾ã¨ãã¦ã¶ã¡ããã§ããã¨é常ã«ä¾¿å©ãä¸ã¤ã®ãã¡ã¤ã«ãã¾ã¨ãããç°¡æã¬ãã¸ããªã¨ãã¦ä½¿ãã®ãããã¨æãã ï¼ãã ããæåã«ãªãããã®ãã¡ã¤ã«å 容ãç¡ãã¨ãã¡ãªã®ã§ãããã ã注æï¼ èªåã¯ããããæãã§ä½ã£ã¦ã¾ã https://gist.github.com/esehara/5954616
(defconst FONT_FAMILY "Ricty") (defun font-size-change(x) (set-frame-font (concat FONT_FAMILY "-" (format "%s" x)))) (defun present-mode () (interactive) (font-size-change 24)) (defun big-font-mode() (interactive) (font-size-change 18)) (defun default-font-mode () (interactive) (font-size-change 14)) (defun small-font-mode () (interactive) (font-size-change 10)) (global-set-key (kbd "C-1") 'big-fo
è·å ´ã®Windows PCãããããã¨éçºç¨ã«æ´åãé²ãã¦ã¯ãããããã¯ãWindowsã ã¨ãã©ãããã Chocolatey Windowsã§ã®ããã±ã¼ã¸ç®¡çãä¸å¯æ¬ ãã¨ããã¨ããã§ããªãã¨ã¯æãã®ã ããã¢ãããã¼ãå«ãä¸æ¬ç®¡çãå¯è½ãªã®ã§ãç²¾ç¥è¡çä¸è¯ãããã ã¨ããæå³ã§ä½¿ã£ã¦ã¿ã¦ãããã©ãã§ããããååãããããã ã¤ã³ã¹ãã¼ã«èªä½ã¯Powershellããã¯ã³ã©ã¤ãã¼ãå©ãã ããªã®ã§é£ããã¯ãªãã®ã ããããããããªãã¨ã©ã¼ã§æ¢ã¾ããã¨ãå¤ãã¦ãç¾ç¶ä½¿ãåãã¦ãªããProxyã®è¨å®ã¯ããããpowershellã®æ¨©éãRemoteSignedã«ããã®ã ãã©ãä½ããããªãã®ãããã Unable to index into an object of type System.IO.FileInfo. çºçå ´æ C:\ProgramData\chocolatey\helpers\funct
Wine - Run Windows applications on Linux, BSD, Solaris and Mac OS X. Wineã使ãã¨Parallels DesktopãVMware FusionãOracle VM VirtualBoxã¨ãã£ãé¡ãã®ä»®æ³åã½ããç¡ãã«Windowsã¢ããªãå®è¡ããäºãåºæ¥ã¾ãã対å¿ã½ããã¯æ¥ã å¢ãç¶ãã¦ãããAppDBã§åç §ããäºãåºæ¥ã¾ããAppDBã«è¨è¼ããã¦ããªãã½ãããåä½ããã±ã¼ã¹ãå¤ãã§ãã Wineã¤ã³ã¹ãã¼ã« brew install wine â» brew install wineãå®è¡ããã¨ãââ(ã©ã¤ãã©ãªå)ã--universalã§ã¤ã³ã¹ãã¼ã«ãã¦ãã ããã¨è¡¨ç¤ºããã¾ãããããã£ã¦ãbrew install wineãæåããã¾ã§--universalã§ã¤ã³ã¹ãã¼ã«ããã¦ããªãã©ã¤ãã©ãªãåé¤ãã¾ãã bre
大好è©ã ã£ãã§ããtmuxï¼5åã§ãããï¼ä»®æ³ç«¯æ«å ¥éï¼ã®è¨äºã«å¯¾æãã¦byobuãå¸æããããã®è¨äºãæ¸ãã¦ã¿ã¾ããã byobuã¯ããã©ãããè¨å®ãããªãã¦ãçµæ§ä½¿ããã®ã§ãããããä»®æ³ç«¯æ«ã使ããã¨æã£ã¦ããæ¹ã«ã¯ããããã§ãã ç°å¢ OS: Ubuntu12.04 LTS 1. byobuã®ã¤ã³ã¹ãã¼ã« $ sudo apt-get install byobu 2. byobuã®ãã¼ã¸ã§ã³ç¢ºèª byobuã¯æ¥ã æ´æ°ããã¦ããã®ã§ãã¼ã¸ã§ã³ã®éãã§ã·ã§ã¼ãã«ããã使ããªããªãã¦ãã¨ãããã®ã§ããã£ãããã¼ã¸ã§ã³ã確èªãã¾ãã $ byobu -v ã¨ããããè¨å®ã¨ãæ°ã«ããªãæ¹ã¯5ããã©ãã 3. ããã¯ã¨ã³ãã®ä»®æ³ç«¯æ«ã®é¸æ byobuã¯screenãtmuxããã¼ã¹ã¨ãã¦ä½¿ç¨ãããã¨ãã§ãã¾ããããã©ã«ãã¯tmuxã§ãã 3.1 screenã«å¤æ´ãããå ´å $ byobu-se
èªåã®ç解ãã¾ã¨ããã®ã¨ããã¼ãã·ã¼ããå ¼ããããã¥ã¡ã³ãã About ä»®æ³ç«¯æ«(ä»®æ³ã¹ã¯ãªã¼ã³)ã½ãããscreenããé«æ©è½ã§æ軽ãªãã¡ãããªã¹ã¹ã¡ãç¹ã«screenã§ã¯ããããå¿ è¦ãªç»é¢ã®ç¸¦åå²ãããåºæ¥ãã(éè¦) Install åç°å¢ã§ã®ã¤ã³ã¹ãã¼ã«ã¯ãhttp://byobu.co/downloads.html ãã®ãã¼ã¸ã«ããã¨ããã OS Command
Leiningenã«ã¤ãã¦èª¿ã¹ãã®ã§è¨é²ãã¦ããã Leiningenã¨ã¯ Leiningenã¯Clojureã®ããã¸ã§ã¯ãã¾ããã®éåãããªããã¼ã«ã§ããããã«ãããã¹ããä¾åããã©ã¤ãã©ãªã®ç®¡çãªã©ãããªããJavaã«ãããMavenã«è¿ããã®ã§ããã ååã¯Leiningenã使ã£ã¦Clojureã®REPLèµ·åã¾ã§ãè¡ã£ãä»åã¯ããããã詳ããLeiningenã調ã¹ããã¨æãã Leiningenã®ã¤ã³ã¹ãã¼ã« å²æãããGitHubãã1.x系統ãåå¾ããleinãPATHã«è¨å®ãã¦ãããã®ã¨ãããä»åã®ç°å¢ã¯æ¬¡ã®éãã§ããã $ lein version Leiningen 1.7.1 on Java 1.6.0_24 OpenJDK 64-Bit Server VM lein versionã§Leiningenã®ãã¼ã¸ã§ã³ã確èªãã¦ãããLeiningenã§ã¯ãã®ããã«lei
Mar 17, 2012 æè¿Clojureã«ã¯ã¾ã£ã¦ã¾ããé§ãåºãLisperãèªèªããèªåã¨ãã¦ã¯ãã¦ãLispæ¹è¨ã®Clojureã«æãåºããªãããã«ã¯ãããªãã®ã§ãã å¸æã®ä¸è²«ã¨ãã¦ãClojureã(Macã§)ã¹ã¿ã¼ãããããã«å¿ è¦ãªè«¸äºé ãã¾ã¨ãã¦ããã¾ããããä½åéå»ã®è²è¤ªããè¨æ¶ãªã®ã§ééã£ã¦é¨åããããããã¾ãããã大ä½ã¯ä»ã§ãéç¨ããã¯ãã§ãã ã¢ã¸ã§ã³ã Leiningenã®ã¤ã³ã¹ãã¼ã« VimClojureã®ã»ããã¢ãã Lieningen Leiningenã¨ã¯ãClojureã®ãã«ããã¼ã«ã§ããå¿ è¦ãªã©ã¤ãã©ãªã®ä¾åé¢ä¿ã解決ãã¦ãããããããã¤ã ããã®ã»ããã¢ããã¯ã¨ã¦ãç°¡åã§ãã % brew install Leiningen ããã ãã§ããã¡ãªã¿ã«clojureèªä½ã®ã¤ã³ã¹ãã¼ã«ã¯leiningenãåæã«ãã£ã¦ãããã®ã§å¿ è¦ç¡ãã§ãããããåå¦è ã¯
Leiningenã¯ä¾¿å©ã ãã©ããããã¸ã§ã¯ããä½ããªãã¨å®è¡ã§ããªãã®ããã¾ã«é¢åãããã ããã§ããããåèã«å®è¡ç¨ã®ãã¡ã¤ã«ãä½ã£ã¦ã¿ãã ãã®1 Leiningenã¯clojureæ¬ä½ã~/.m2/repository/org/clojure/clojure/1.6.0/clojure-1.6.0.jarã«æã£ã¦ããã®ã§ãã ãããªæãã®ãã¡ã¤ã«ã~/bin/cljã¨ã§ãåä»ãã¦(å®è¡å¯è½ã«ãã¦)ç½®ããã #!/usr/bin/env sh exec java -cp ~/.m2/repository/org/clojure/clojure/1.6.0/clojure-1.6.0.jar clojure.main $1 ãããªããªã§å®è¡ã§ããã clj hoge.clj ãã®2 ã¡ããã¨èª¿ã¹ã¦ã¿ãããlein-execãªãLeiningenã®ãã©ã°ã¤ã³ãè¦ã¤ãã£ãã ~/.lein
社å ã§ä½¿ã£ã¦ããWebãµã¼ãã¹ Garoon Redmine Gitlab Chatwork Jenkins etc... ãµã¼ãã¹ã®é£æºãèªååããã Garoonã®ã¯ã¼ã¯ããã¼ãå®äºããã â ã¡ã¼ã«ã§ãã¼ã«ã¢ã¦ãé£çµ¡ â Redmineãã¯ãã¼ãº Gitlabã§MergeRequestããã¼ã¸ããã â Redmineãã±ãããéãã æ次ã®ä½æ¥ãèªåã§Redminãã±ãããä½ã etc... èªååãã¼ã«ãã©ãä½ãï¼ ã¹ã¯ãªãããæ¸ãã¦CRONå®è¡ï¼ åä½ã®æ©è½(Agent)ãçµã¿åããã¦èªååå¦çãæ§ç¯ã§ããWebãµã¼ãã¹ Webãµã¤ããèªã¿åã£ãããã¤ãã³ããåãã¦ä½ããã®å¦çãå®è¡ã§ãã ä¼¼ããã®ã¨ãã¦ãYahoo! Pipes(éé)ãIFTTT Ruby on Rails + MySQL or PostgreSQL Huginn Agent å ¥åç³» Twitterã®æ稿ã
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? ã¾ããã æ¨å¹´12æã«æ¥æ¬ã§ããã¼ã³ãããAndroid Payãã¡ã¤ã³ã®æ±ºæ¸æ©è½ã®ä»ã«ãããã¤ã³ãã«ã¼ãäºæ¥è ãªã©åãã«Save to Android Pay APIãæä¾ãã¦ããããã®APIã使ãã¨(審æ»ããéãã°)誰ã§ãããã¦ã¼ã¶ãèªç¤¾ã®ãã¤ã³ãã«ã¼ããAndroid Payã«ä¿åããããããªæ©è½ãå®è£ ã§ãããæè¿ã ã¨Tã«ã¼ããDocomoã®dãã¤ã³ãã対å¿ãã¦ããã ã¦ã¼ã¶ç®ç·ã§ã®å ·ä½çãªæµãã¨ãã¦ã¯ä»¥ä¸ã®ãããªæãã ãã¤ã³ãäºæ¥è ããã®ã¡ã¼ã«ãWebãµã¤ããªã©ã§ "Android Payã«ä¿å"ãã¿ã³ãã¯ãªãã¯ãã Andr
How to install Linux on a Chromebook (and why you should) Crouton and Gallium OS turn Chromebooks into Linux laptops. Chromebooks are one of the most secure devices you can give a non-technical end user, and at a price point few can argue with, but that security comes with a privacy trade off: you have to trust Google, which is part of the NSA's Prism programme, with your data in the cloud. Even t
ããã«ã¡ã¯ã ãããããæ¸ç±ã説æçãªå 容ãå¢ãã¦ããã®ã§åã«ã¹ãæ¸ãã§ã¯ãªãã ç解ãããã¨ãã¾ã¨ãã¦ããæ¹éãåãã¾ãã 1.é 延ã·ã¼ã±ã³ã¹ã¨ç¡éã·ã¼ã±ã³ã¹ Javaã«ãã£ã¦Clojureã«ãªãã·ã¼ã±ã³ã¹ã®ä¸çªã®ç¹å¾´ããã®é 延ã·ã¼ã±ã³ã¹ã¨ç¡éã·ã¼ã±ã³ã¹ã§ãã é 延ã·ã¼ã±ã³ã¹ã¯ãã®åã®éãããåè¦ç´ ãå¿ è¦ã«ãªã£ãå ´åã«åãã¦è©ä¾¡ããããã·ã¼ã±ã³ã¹ã ç¡éã·ã¼ã±ã³ã¹ã¯ãèªç¶æ°å ¨ã¦ãã®ãããªãçè«ä¸ç¡éã«å¤ãåå¨ããã·ã¼ã±ã³ã¹ã é常ã®ããã°ã©ãã³ã°è¨èªã§ã¯ãç¡éã·ã¼ã±ã³ã¹ãã¨ããã®ã¯å ·ä½åãããªãã çæããæç¹ã§ã¡ã¢ãªã溢ãã¦çµãããã§ãããããã ãã ãClojureã§ã¯é 延ã·ã¼ã±ã³ã¹ã«ãã£ã¦ ãå¿ è¦ã«ãªã£ãæç¹ã§è©ä¾¡ããããã¦ã¼ã¶å´ã§å¿ è¦ãªåã ãåå¾ãããã¨ãããã¨ãå¯è½ãªããã ç¡éã®å¤ãçæããã·ã¼ã±ã³ã¹ãè¨è¿°ãããã¨ãå¯è½ã¨ãªãã ï¼ã¾ããå¤ãéå®ããé¢æ°ã¨ãã¢ã§ä½¿ç¨ããªãã¨æ
Clojureã®coreã©ã¤ãã©ãªã®ä¸ã§ããæ¥å¸¸ã§æ¯è¼ç使ããããªIOç³»ã®é¢æ°ãã¡ãã£ã¨èª¿ã¹ã¦ã¿ã¾ããã read-line æ¨æºå ¥åãã1è¡èªã¿è¾¼ã¿ã¾ãã以ä¸ããµã³ãã«ã (print "type keyword => ") (flush) (def line (read-line)) (print (str "Your typed => " line)) (newline) flushã¯æ¨æºåºåããã©ãã·ã¥ããé¢æ°ãnewlineã¯æ¨æºåºåã«æ¹è¡ãåºåããé¢æ°ã§ãããããå®è¡ããã¨ã以ä¸ã®ãããªå®è¡çµæã¨ãªãã¾ãã type keyword => ããã«ã¡ã¯ãä¸ç Your typed => ããã«ã¡ã¯ãä¸ç type keyword =>ã®å¾ã«ç¶ãã¦ãããããã«ã¡ã¯ãä¸çãã¯ããã¡ããèªåã§å ¥åãããã®ã§ãã ãªããå¤æ°lineã«ãã®æå ¥åãããæååãæç¸ãã¦ãã¾ãã spit ã
My earlier posts (1, 2) about using Vim were well received and itâs about time for an update. Vim 8 added a lot of much-needed functionality, and new community sites like VimAwesome have made plugin discovery and evaluation easier. Iâve been doing a lot more work with Vim lately and have spent some time configuring my workflow for peak efficiency, so hereâs a snapshot of my current state. TL;DR: f
ãªã¹ãã®ç¬¬ä¸è¦ç´ ãã·ã³ãã«ãªãé¢æ°ã¨ãã¦èµ·åã§ããã®ããªï¼ã¨æã£ã¦ãããã ãã©ããéããããã ã¨ãããããprintlnãä¾ã¨ãã¦ã(symbol æåå) ã§ã·ã³ãã«ã¯ä½ãããããã $ clj Clojure 1.4.0 user=> (symbol? 'println) true user=> (= 'println (symbol (str "print" "ln"))) true ã§ããå®è¡ãã¦ãæå¾ ã®åä½ããã¦ãããªãããªãã§ã ããã user=> (println "hello") hello nil user=> ((symbol (str "print" "ln")) "hello") nil user=> (if true "yes" "no") "yes" user=> ((symbol "if") true "yes" "no") ArityException W
åæ¥ã¨ã´ã¼ã«ãã³ã¦ã£ã¼ã¯ãä»äºã°ã£ããã§ãå ¨ç¶æ´æ°ã§ãã¦ãã¾ããã§ãããâ¦ããªãã¨ãæéãä½ããã®ã§ãä¹ ã ã®æ´æ°ã§ãã ååã®Scalaã®æ£è¦è¡¨ç¾ã«ç¶ããClojureã®æ£è¦è¡¨ç¾ã使ã£ã¦ã¿ããã¨æãã¾ããContribã¯è¦ãã«ãæ¨æºé¢æ°ã®ã¿ã§ãã re-patternï¼java.util.regex.Patternã®æ§ç¯ï¼ re-patterné¢æ°ã«ãæ£è¦è¡¨ç¾ã表ãæååã渡ãã¾ãã (def number-pattern (re-pattern "\\d+")) (println (class number-pattern)) ;; => java.util.regex.Pattern ãããã¯ã#ãªã¼ãã¼ãã¯ãã§ãOKã§ãã (def number-pattern #"\d+") (println (class #"\d+")) ;; => java.util.regex.Patter
(ãã®ã¨ã³ããªã¯ãããã¼ã¡ãã¢ããã³ãã«ã¬ã³ãã¼ 15æ¥ç®ã®è¨äºã§ã) ã¯ããã« Clojureã¢ã¤ãã«ãã¨ããã¼ã¡ããããå æ¥éå¬ãããClojureå¤ä¼ã§ãClojureã§æ¸ããã女ååbotãªããã®ã«ã¤ãã¦çºè¡¨ãã¦ãã¾ãããClojureæ´3é±éã¨ã®ãã¨ã§ããããããã¨ã¯æããªãã»ã©ããæ¸ãã¦ãã¾ããããããClojureã®idiomaticãªæ¸ãæ¹ã®ä¸ã«ã¯ãæéãæ¸ãã¦æ £ãã¦ãããªãã¨ãªããªããããªãæ¸ããã¨ãé£ãããã®ãããã¾ãã ããã§ãä»åã¯å¥³ååbotãé¡æã«ããClojureã£ã½ãã¤ã±ã¦ãæ¸ãæ¹ãç´¹ä»ãã¾ãã æ¸ãæãã¦ã¿ãã ä»åããã¯ã¢ããããé ç®ã¯ä»¥ä¸ã®ã¨ããã§ãã clojure-contribã¯ä½¿ããªãããã«ããã ã·ã¼ã±ã³ã¹å¦çã«æã¡è¾¼ãã *-iné¢æ°ã使ãã ç¶æ ãloopã§æã¡åãã åç §ãå ¬éããªãããã«ããã (ããã§åãä¸ãã¦ããªããã¹ã¦ã®å¤æ´ãå«
Cljsh (>= 1.9.5) and repls (>= 1.9.5) have the following new features: cljsh automatically finds the repls-server that is started for the project, so no need to keep track of port numbers and such. Note that cljsh and repls both should be started from within the project's directory tree for this to work. A single project can also be designated as "global" with cljsh (-G), such that any subsequent
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}