OSï¼Yosemite vimã®è¨å® github.com.vimrcã¯ä¸è¨ãåèã«hybridãå¹ããªãã¨æãããã®ã§ã git clone https://github.com/w0ng/vim-hybridhybrid.vimã~/.vim/colorsã«ãã NeoBundleã®è¨å® mkdir -p ~.vim/bundle git clone https://github.com/Shougo/neoâ¦
shokos Advent Calendar 2012ä¸æ¥ç®ããã¸ã§ã¯ããªã¤ã©ã¼ ãã¾ã«ããã¨é ã®ä½æã«ãªã£ã¦ããããããçãã¬æè¦ã第ä¸å If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is â¦
shokos Advent Calendar 2012å æ¥ç®ãã»ã¨ãã©Haskell触ã£ããã¨ãªã人åãã§ãã 社å åå¼·ä¼ã§ä½¿ããã¨æã£ã¦ãããã¿ã Haskellã§ãã£ããããæ°åãå®ç¾©ããã¨ããããªãã¾ãã fib = 1:1:zipWith (+) fib (tail fib) ä½ããã£ã¦ããã®ããå¼ã®å·¦å´ãã説â¦
shokos Advent Calendar 2012äºæ¥ç®spring3ã®ãããã³ã°ã¢ããã¼ã·ã§ã³ã§ãè¤æ°URLãæå®ããæ¹æ³ @RequestMappingã§ãvalueã«Stringã®é åã渡ãã¦ãããã°OKã§ãã @Controller @RequestMapping(value = {"/", "/top"}) public class TopController { ã¡ãªâ¦
shokos Advent Calendar 2012åæ¥ç®CAã§ãã¨ã³ã ãHaskellã®æ£®ãã¨ãã社å åå¼·ä¼ããã¦ãã¾ãï¼ ã¨ã²ããããHaskellã®æ£®ï¼ from Shoko Sasaki ååã¯ghciã§ã®ã³ãã³ããè²ã 試ãã¦ãããã¾ããã ã¡ããã£ã¨é 延è©ä¾¡ã®èª¬æã¨ãããã¤ã¤ãçµæ§äººãéã¾ã£ã¦â¦
shokos Advent Calendar 2012ä¸æ¥ç®ä»æ¥ã¯ã¨ã©ã¼ã®å¯¾å¦æ³ã®è©±ãªã®ã§ã人ã®å½¹ã«ç«ã¤ç¢ºçãé«ãã1. ä¹ ãã¶ãã«javaããã¸ã§ã¯ããä½ããã 2. ãã£ããã³ãã³ããã mvn archetype:generateãã¦ä½ã£ã¦ãã¾ã£ãï¼ 3. eclipseããmavenããã¸ã§ã¯ãã«ã³ã³ãã¼ãâ¦
shokos Advent Calendar 2012äºæ¥ç®æ¨æ¥ã¤ãã£ãActiveAdminã§ä½ã£ãã¢ããªã®indexç»é¢ãããã¦ãªãã®ã§ç·¨éãã¾ããapp/admin/schedules.rb ãéã㦠# encoding: utf-8 ActiveAdmin.register Schedule do index do column "äºå®", :plan column "æ¥æ", :oâ¦
shokos Advent Calendar 2012ä¸æ¥ç®rails ActiveAdminã§ããããCRUDãã¤ããï¼ Active Admin | The administration framework for Ruby on Railsã¹ã±ã¸ã¥ã¼ã«ç®¡çã¢ããªãPopuraãã¤ããã¾ããã rails new Popura ãã¼ã£ã¨ãã¡ã¤ã«ããã©ã«ããä½ãããã¤â¦
Jenkinsããã¼ã¸ã§ã³ã¢ããï¼1.475ï¼ãããã失æãããã¹ããããã®ã«ã°ãªã¼ã³ã«ãªãçç¾è±¡ãèµ·ããã解決æ¹æ³ã¡ã¢ åããã¸ã§ã¯ãã®è¨å®ç»é¢ ãã«ãå¾ã®å¦ç追å ã§ãpublish xUnit test result reportããé¸æ Faild Testsã®Thresholdsï¼ãããå¤ï¼ããã¹â¦
ã¬ã¯ãã£ã¼ãããã¿ã¼ã²ãã ã» ã¨ã³ã¸ãã¢ã§ã¯ãªãï¼ã¨ã³ã¸ãã¢ã¯èªåã§ã¡ããã¨åå¼·ãã¾ãããï¼ ã»ãã¶ã¤ãã¼ããçããã¼ã«ã«ã§webã¢ããªã±ã¼ã·ã§ã³ã確èªããªãããã¼ã¯ã¢ããç·¨éããããç»åã追å ãããããæãã§ããã¾ããã¸ãã¯é¨åã¯ããããªã â¦
6æ3æ¥ããããã®èªçæ¥ãã¤çµå©å¼ã®ç¿æ¥ã«Haskell Platform 2012.2.0.0ããªãªã¼ã¹ãããããã§ãï¼ï¼Download HaskellHaskellããã®çµå©ç¥ãï¼èªçæ¥ç¥ãã ã¨æããããããããããæ©è½è¿½å ãã@shelarcy ãããGoogleGroupã®Haskell-jpã«ã¾ã¨ãã¦ããã¦ãâ¦
ç°å¢ã¯macãghc7.0.4yesodã¢ããªã±ã¼ã·ã§ã³ã§ãã¢ãããã¼ããããç»åãã¡ã¤ã«ããã¼ã«ã«ã«ä¿åããã¨ãã«ãæ¥æ¬èªãã¡ã¤ã«åã ã¨æååããã¦ãã¾ãåé¡ãçºçãããã©ãããghc7.0.4ã¯æ¥æ¬èªãã¡ã¤ã«åã«å¯¾å¿ãã¦ããªãã£ã½ããHaskell-jaã«è³ªåãæãã¦â¦
Bundleã§ghc-modããããæ¹æ³ Bundleãæã£ã¦ãã $ cd ~/.vim $ git clone http://github.com/gmarik/vundle.git ~/.vim/vundle.git vimrcã«ã¤ã³ã¹ãã¼ã«ããããã®ã追å vimrcã®ãããã«æ¸ã set nocompatible filetype off set rtp+=~/.vim/vundle.git/ â¦
éçºç°å¢ï¼macãghc7.0.4æ°ããä½ã£ãyesodããã¸ã§ã¯ãã§ãcabal installããã¨ä¸è¨ã¨ã©ã¼ãã§ãã Resolving dependencies... Configuring language-javascript-0.4.9... cabal: The program alex version >=3.0 is required but the version found at /usâ¦
Haskellã®webãã¬ã¼ã ã¯ã¼ã¯yesodãããããã¨æã£ããattoparsecã¾ããã®ä¾åé¢ä¿ã§æããã¦ã¤ã³ã¹ãã¼ã«ã§ããã(ã¨ããã©ã¤ãã©ãªã¯attoparsec0.10以ä¸ãå¿ è¦ã ãã©å¥ã®ã©ã¤ãã©ãªã¯0.10æªæºãå¿ è¦ãªã®ã§ç«¶åããã¨ããããªæãã§æããããã¤ã ãã£è¨ãâ¦
Enumã§æ½è±¡ã¡ã½ãããå®ç¾©ãã¦ããããå®æ°ãã¨ã«Overrideã§ããã£ã¦ãã¨ããä»æ¥Effective Javaèªãã§ã¯ããã¦ç¥ãã¾ããã å®æ°åºæã¡ã½ããå®è£ ã¨ãããããããã£ããããå ·ä½çã«ã¯ãããªæ¸ãæ¹ãã§ããã package jp.ne.hatena.syoko_sasaki; public eâ¦
é 延è©ä¾¡ãã³ã¶ã¤ã½(^o^)丿 fizz = cycle ["","","fizz"] buzz = cycle ["","","","","buzz"] fizzbuzz = zipWith fb [1..100] $ zipWith (++) fizz buzz where fb n a | a == "" = show n | otherwise = a cycleã¯å¾ªç°ãªã¹ããä½ãé¢æ°ãªã®ã§ãGHCiã§ãªã«ãâ¦
ghc7.0.2utf8-stringãã¤ã³ã¹ãã¼ã«ã ãã¡ãåç § http://hackage.haskell.org/cgi-bin/hackage-scripts/package/utf8-string cabal install utf8-string System.IO.UTF8ã®ã¢ã¸ã¥ã¼ã«ãè¦ãã¨ãã ãããIOå¨ããæã£ã¦ããï¼ appendFile hGetLine openBinaryâ¦
æ¥åã§å¿ è¦ã«ãªã£ãã®ã§ãåå¼·ãã¦ãHaskellã§æ¸ãã¦ã¿ãã import Data.List.Split main = do csv <- readFile "./foo.csv" print $ check $ dataList csv --åè¡ã®å é ããªã¹ãåãã dataList :: String -> [String] dataList csv = foldr (\x xs -> (heaâ¦
ï¼ä¸»ã«ç§ã®ã¾ããã§ï¼æµè¡ã£ã¦ããããã¨ãããã¼ãã¼ãªçç±ã§Haskellãåå¼·ä¸ã§ããåç´ã«çãæ¸ãã¦ããããªã¨æãã¾ãã ä¾ãã°ããªã¹ããå¼æ°ã«æ¸¡ãã¦ãå¶æ°ã®è¦ç´ ã ãè¿ãé¢æ°ãªããããã ãã§ãï½ã evenList :: [Int] -> [Int] evenList [] = [] evenâ¦
wicketã§ã¤ãã£ããã¼ã¸ãããã¦ã³ãã¼ãããcsvãã¡ã¤ã«ã®ä¸èº«ãæ³å®éããã©ãã確ããããã¹ãï¼ï¼ï¼mainã®ããã±ã¼ã¸ã«ç½®ããshokos.csvããã¦ã³ãã¼ããã¦ãtestã®ããã±ã¼ã¸ã«ç½®ããã¾ã£ããåãå 容ã®expected.csvã¨æ¯è¼ãããã¹ããæ¸ãã¾ãããã¡ã¤â¦
è¶ èªåçããeclipse.ini(eclipseãå³ã¯ãªãã¯ãã¦ãããã±ã¼ã¸ã®å 容ã表示ããã¯ãªãã¯) ãã¡ã¤ã«ã®æå¾ã«ä»¥ä¸ã追å -Dfile.encoding=UTF-8 調ã¹ã¦ã¿ãã¨ãã©ãããMacOSXä¸ã®JDKãï¼ããSJISã«ãªã£ãã®ãåå ã£ã½ãï¼ããã§Unrooted Tests initializatuiâ¦
ãã¡ãã®ã¤ãã³ãã«åå ãã¦ãã¾ãã第0å ã¹ã¿ã¼ãHaskell : ATNDè²ã ããã ãããã§ãææ義ãªæéãããããã¨æã£ã¦ãã¾ãã ã©ãããããã¨ããããã¾ããï¼ããã§åºãããããã話ãæè¸çããã°ã©ãã³ã°ããããã¨ããã¾ããï¼ãããã¯ç¥ããªãã£ããâ¦
Haskellã§Stackãå®è£ ãã¾ããã åå ããäºå®ã ã£ãåå¿è Haskellåå¼·ä¼ç¬¬3å - [PARTAKE]ã®å®¿é¡ã«ãªã£ã¦ãããã¤ã§ãï¼çµå±ãããªãã£ãã®ã ãã©ï¼ data Stack a = Stack [a] deriving (Show) empty :: Stack a empty = Stack [] isEmpty :: Stack a -> Boâ¦
ãä»äºã§ä½ã£ã¦ããwebã¢ããªã±ã¼ã·ã§ã³ã¯Ajaxããã£ããåãå ¥ãã¦ããã®ã§ãããæ®å¿µãªããWicketTesterã§Ajaxã¾ããã®ãã¹ãã¯ã§ããªãã®ã§ããSeleniumãªãã§ããããªã¼ã¨æã£ã¦å®é¨ãã¦ã¿ãã®ã ãã©ããã£ãããã§ããªãã£ã話ãTextFieldã«ãããæ°åâ¦
æ¥åèªååè¨ç»ãã®ï¼ãseleniumç°¡åãªå°å ¥æ¹æ³ããï¼ã¾ãã¯pom.xmlã®è¨å® <dependency> <groupId>org.seleniumhq.selenium.server</groupId> <artifactId>selenium-server</artifactId> <version>1.0.1</version> </dependency> <dependency> <groupId>org.seleniumhq.selenium.client-drivers</groupId> <artifactId>selenium-java-client-driver</artifactid></dependency>
ãã ã¢ããªã³ãå³ã¯ãªãã¯ã§ä¿å å±éãã¦install.rdfã®Firefoxã®ãã¼ã¸ã§ã³ã®ã¨ãã4.*.*ã¨ãã«æ¸ãæãã å§ç¸®ãã¦æ¡å¼µåã.xpiã«æ»ã Firefoxã«ãã©ãã°
第1å ããããã( ãã§ã)ã»;'.ãã´ããã - [PARTAKE] ã«ãã£ã¦ãã¾ããï¼åãã©å¨ããã¡ã¿â ããããè³ããªãç¹ãããã¾ãããã楽ããã£ãã§ãï¼ ç¬¬1å ããããã( ãã§ã)ã»;'.ãã´ããã - ãã³ãã³çæ¾é ããè¦ã¦ã次ã®ä¼ã¿ã«ããï¼å復ç¿ãããã â¦
ããã¨é«é »åº¦ã§æ¼«ç»ãè²·ã£ã¦ãããããã§ããçºå£²æ¥å½æ¥ã«æ¬å±ããã§è²·ããªãã¨æ°ãæ¸ã¾ãªãæ§æ ¼ãªã®ã§ãã³ããã¯ããã·ã¥ï¼ - 漫ç»(ãã³ã¬)ãã³ããã¯ã®èµæ¸ç®¡çã¨æ°åçºå£²æ¥ã®ãã§ãã¯ããµãã¼ãããç·åãµã¤ã | ã³ããã¯ããã·ã¥ï¼ã§ç®¡çãã¦ãã漫ç»ã®â¦
åºæ¬çã«ãã¼ã«ã«ã§webä½æ¥ããã¨ãã¯eclipseã§jettyèµ·åãã¦ãã¾ããããTomcatã使ãæ©ä¼ãåºã¦ãã¾ãããwarä½ã£ã¦webappsã®ä¸ã«ããã¦Tomcatèµ·åãããã©ããããã¦ãã¦ãã¼ã«ãªã£ã¦ãTwitterã§eclipseããèµ·åã§ããªãã®ã¼ï¼ï¼ã£ã¦èããããããããªãâ¦