Dismiss Join GitHub today GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together. Sign up
åºç¤ææ³æéãã¹ã¿ã¼ãã¼ã ã«ã®ã£ãã£ã¦ã¿ããRubyåºç¤ææ³æéãã¹ã¿ã¼ãã ãããEmacs Lispï¼elispï¼ã«ç½®ãæãã¦ã¿ãã Emacs Lispã¯Emacsã§ä½¿ããã¦ããLispæ¹è¨ã®ã²ã¨ã¤ã ãä»ã®è¨èªãããç¨åº¦ç¥ã£ã¦ãã人ã¯ãããèªãã°Emacs Lispã®åºç¤ããã¹ã¿ã¼ãã¦Emacs Lispãæ¸ããã¨ãã§ããããã«ãªããããããªããç¡ä¿è¨¼ã§ã¯ãããã ããç¨åº¦ã¯Common Lispã«ãå¿ç¨ã§ããã¨æããã æ´æ°æ å ± [2010/02/03] 注éã®èª¤ããä¿®æ£ã let*ã«ã¤ãã¦å çã åºç¤ 対話çã«Emacs Lispå¼ãè©ä¾¡ãã Emacsãèµ·åããã¨ãã«çæããã¦ãããã¹ã¯ã©ãããããã¡ï¼*scratch*ï¼ã使ãã¨ãEmacs Lispã®å¼ãç°¡åã«è©ä¾¡ãããã¨ãã§ãããM-Tabã§è£å®ã§ãããã å¼ãæ¸ãããC-jãæ¼ãã¨ãå¼ã®å¤ãåºã¦ãããã (+ 1 3) 4
(setq ãã©ã¤ã® nil) (defun ãã³ã¿ã¤ã®(p) (not p)) (defun ãã®ããã«ãã³ã¿ã¤ã®(p) (not p)) (defun ãã¢ããä¼ããã®ã£ã¦(p) (if p 'ã¹ã 'ãã©ã¤)) (defun ä½ã ãé£ãã(p) p) (defun ãã³ã¿ã¤ã¯ï¼(p) (if (not p) 'ã¹ã 'ãã©ã¤)) (ä½ã ãé£ãã (ãã¢ããä¼ããã®ã£ã¦ (ãã®ããã«ãã³ã¿ã¤ã® (ãã³ã¿ã¤ã® (ãã³ã¿ã¤ã® (ãã³ã¿ã¤ã® (ãã³ã¿ã¤ã® ãã©ã¤ã®))))))) ; => ã¹ã # -*- coding: utf-8 -*- class Object def ãã³ã¿ã¤ã®() !self end def ãã®ããã«ãã³ã¿ã¤ã®() !self end def ãã¢ããä¼ããã®ã£ã¦() self ? :ã¹ã : :ãã©ã¤ end def ä½ã ãé£ãã() self end def
ãµã¼ãã¹çµäºã®ãç¥ãã ãã¤ãYahoo! JAPANã®ãµã¼ãã¹ããå©ç¨ããã ãèª ã«ãããã¨ããããã¾ãã ã客æ§ãã¢ã¯ã»ã¹ããããµã¼ãã¹ã¯æ¬æ¥ã¾ã§ã«ãµã¼ãã¹ãçµäºãããã¾ããã ä»å¾ã¨ãYahoo! JAPANã®ãµã¼ãã¹ããæ顧ãã ããã¾ãããããããããé¡ããããã¾ãã
ä»æ´ãªãããEmacs ã®ã·ã§ã«ã¹ã¯ãªããã¢ã¼ãã«ã¤ãã¦ã主ã«æ§æå ¥åã«ã¤ãã¦ã¾ã¨ãã¦ã¿ã¾ãã 便å©ããã¦æã«é¦´æã¿ããã¦ããã¯ãå¿ãã¦ãã¾ãorz ã§ãæãè¦ãã¦ããã®ã§ãé çªã«æã£ã¦ã¾ã¨ãã¦ã¿ã¾ããï¼ç¬ ï¼»éè¦ãªãã¨ï¼½anything + auto-complete ãæå¹ã«ãã¦ããã¨ãç·¨éã楽ããã¾ãã ï¼»éè¦ãªãã¨ï¼½anything + auto-complete ãæå¹ã«ãã¦ããã¨ãç·¨éã楽ããã¾ãã 大äºãªãã¨ãªã®ã§ã2 åæ¸ãã¾ããã ã¡ãªã¿ã«ãå½æ¹ã®ç°å¢ã¯ VineSeed Emacs 23.2, Vine Linux 5.1 Emacs 23.1 ã§ãã ã·ã§ã«å®£è¨ï¼C-c : sh-set-shell 1è¡ç®ã® Shell: ãã決ãã¾ãã ãªãã¡ãã.shãä½ãå§ããããããã«æããC-c :ããåãã¦ãã¾ãã¾ãï¼ç¬ Shell (default /bin/bash)
2017å¹´08æ09æ¥12:27 ã«ãã´ãªEmacs helm 㨠dumb-jump ã«é¦ã£ãã ã³ã¼ãæ¸ãã¨ãï¼ æ®æ®µããemacsã§ã³ã¼ããæ¸ãã¦ã¾ãããæ¨æºæ·»ä»ã®imenuã®ä½¿ãåæãããããéçã§é£åãã¦ã¾ããã ããã§èª¿ã¹ã¦ã¿ãã helm 㨠dumb-jump ã¨ããè¯ãããªããã±ã¼ã¸ãè¦ã¤ããã®ã§ã·ã§ã¢!! ã¡ãªã¿ã« macOS ã§ã®è©±ã§ãã dumb-jump ã¯äºåãã¡ã¤ã«ã®çæãªãã«å¿«é©ãªã¿ã°ã¸ã£ã³ããæä¾ãã¦ãããããã±ã¼ã¸ã§ãã dumb ã¯ãã°ããªã»æããªãã¨ããæå³ã®åèªã§ãããå¿«é©ããã¦ä½¿ãå´ã®è³ãå£åããæãã§ãw ã¤ã³ã¹ãã¼ã«ã¯MELPAçµç±ãä¸çªç°¡åã§ãããã M-x package-install dumb-jump ãããæåã§ãªãã¨ãããããã!! ã¨ããå ´åãã¾ã以ä¸ã®ããã±ã¼ã¸ãGitHubããæ¢ãã¦.elãã¡ã¤ã«ãèªåã®ç°å¢ã«ã³ãã¼ãèªå
dired ã§æ¡ä»¶ãæºãããã¡ã¤ã«ã®ã¿ã表示ããæ¨æºã³ãã³ãã¯åå¨ãã¾ããã ãã£ã«ã¿ãªã³ã°æ©è½ä»ããããã¡ãªã¹ãã® ibuffer ãã¢ãã«ã«ä½ç³»åããã®ã ãã® dired-filter.el ã§ãã ããã使ãã¨ã ãã£ã¬ã¯ããªã®ã¿ã表示ãã (/ d) ç¹å®ã®æ¡å¼µåã®ãã¡ã¤ã«ã®ã¿ã表示ãã (/ .) æ£è¦è¡¨ç¾ã«ããããããã¡ã¤ã«ã®ã¿ã表示ãã (/ r) ããããé¤å¤ãã (/ !) ãªã©ãç°¡åã«ã§ããããã«ãªãã¾ãã ãã¨ãã°ãã£ã¬ã¯ããªãé¤å¤ããããã° / d / ! ã¨æä½ãã¾ãã ãã£ã«ã¿ãªã³ã°ã¯ã¹ã¿ãã¯ç¶ã«ãªã£ã¦ããã®ã§ ã¬ã³ã¬ã³çµãè¾¼ãã¾ãã ãã¨ãã°emacsã¨244ãå«ã¾ãããã¡ã¤ã«ã«çµãè¾¼ãã«ã¯ / r emacs / r 244 ã¨æä½ãã¾ãã ãã£ã«ã¿ãªã³ã°ããã¹ã¦è§£é¤ããã«ã¯ / / ã§ãã æ¡ä»¶ãæºãããã¡ã¤ã«ããã¼ã¯ããæ©è½ãããã¾ããã ãã£ã«ã¿ãªã³
Emacs Lispã§ããã¡ã¤ã«ããå ¥åããå¦çãCommonLispã®ããªã§æ¸ããã¨ãããã»ã»ã» >(require 'cl) >(with-open-file (in "hoge.txt" :direction :input) (with-open-file (out "fuga.txt" :direction :output) (princ (read in) out))) Debugger entered--Lisp error: (void-function with-open-file) ãã? >(open "hoge.txt") Debugger entered--Lisp error: (void-function open) ã»ã»ã»ãã? ELispã£ã¦ãã¡ã¤ã«ãªã¼ãã³ãã¦ã¹ããªã¼ã ãä½ããã¨ãã§ããªãã®ãã»ã»ã»ã 調ã¹ã¦è¦ãã¨ãããstreamã¨ãã¦ä½¿ããã®ã¯ä»¥ä¸ã®ã¨
é£ä¼ã¯Emacs Lispã«å§ã¾ãï¼Emacs Lispã«çµããããï¼ Perlã«ãããStorableï¼Rubyã«ãããMarshalï¼Pythonã«ãããPickleã®ãããªãã¼ã¿æ§é ããã®ã¾ã¾ãã³ãããä»çµã¿ã欲ããã¨ããã¨ãã«ã¯Lispã¯ä¾¿å©ï¼Så¼ããã®ã¾ã¾èªã¿æ¸ãããã°ããï¼(Så¼ã®ãã¤ããªãã³ãã§ã¯ãªãã®ã§ï¼YAMLã¨è¨ã£ãæ¹ãæ£ç¢º) Så¼ã®ä¾¿å©ãªã¨ããã¯ãã¼ã¿æ§é = è¨å·ã§ãããã¨ï¼ãã®ã¾ã¾åºåããã°ããï¼ ã¨ããããï¼é©å½ã«ãã¼ã¿ã¨ãããä¿åããé¢æ°ã¨èªã¿è¾¼ãé¢æ°ãä½ã£ã¦ã¿ãï¼ (setq data '(((name . "hoge") (id . 10)) ((name . "fuga") (id . 11)))) (defun save-data (filename) (interactive "sInput filename: ") (with-temp-buffe
æ ããã¦ãã¾ããéä¸çµéã¯gist㧠ã¯ããã« elispã¯ä¾¿å©ãªæ©è½ãããã©ã«ãã§ã¤ãããªããã¨ãå¤ãã§ããclç±æ¥ã®ä¾¿å©ã©ã¤ãã©ãªã使ãã¾ããã(require 'cl)ãããå¿ è¦ãããã¾ããããèªä½ã¯eval-when-compileã§å²ãã°è¯ãã®ã§åé¡ãªãã§ããelispã¯ååã®è¡çªãé¿ããä»çµã¿(e.g. åå空é)ãç¨æããã¦ãã¾ããããããªããã§ãèªåã®æ¡å¼µãä½æããã¨ãã«åèªã§éè¤ãããããªãã¯ããå®ç¾©ããã¦ã¾ããonlispç±æ¥ã®ãã¯ããªã©ãè¯ãè¦ããã¾ã(ã¨ãã«aifãè¯ãè¦ããã)ã ä»åã®ç®çã¯2ã¤ããã¾ãã åèªãåå¥ã«å®ç¾©ãã¦ãã便å©ãã¯ããéãã¦ã¿ãã¨ã©ã®ç¨åº¦ã®è¦æ¨¡ã«ãªãã®ãç¥ãããã èªåç¨ã®ä¾¿å©ãªãã¯ããéããã©ã¤ãã©ãªã欲ããã ã¨ããããã便å©ã ãªã¨æããã¯ãã追å ãã¦ã¿ããã¨ã«ãã¾ãããutil-macro.elã¨ãããã¡ã¤ã«ãããã§ãã 追å ããã
id:reinyannyan:20070416:p1 (ç°¡æã¯ãã¼ã¸ã£ã®å®è£ ) ã§ãå¤æ°ã®å¤ãé¢æ°å¼ã®ä¸ã«ã¤ã³ã©ã¤ã³å±éãããã¨ã§æ¬ä¼¼ã¯ãã¼ã¸ã£ãä½æããæ¹æ³ãèãã¾ãã*1ãä»åã¯ãã®å¿ç¨ç·¨ã§ãã savehist-mode ãæå¹ã«ãã¦ããããããã¡ã®å ¥åå±¥æ´ã Emacs ã»ãã·ã§ã³ãéãã¦è¨æ¶ãã¦ãããã¨ããã±ã¼ã¹ãé¡æã«ãã¾ãã ä¿åãããå±¥æ´ãã¡ã¤ã« (~/.emacs.d/history) ãçºãã¦ã¿ãã¨ãå ¥åå 容ã«éè¤ããããã¨ã«æ°ä»ãã¾ãã ã¾ãã¯åç´ã«éè¤ãåé¤ãããã¨ãæãä»ããã§ãããããã ãã 㨠compose ã curry ã®åºãå¹ã¯ããã¾ããã ããã§ããã¡ã¤ã«åã®å±¥æ´ã«æ³¨ç®ãã¦ã¿ãã¨ãå ¥åå 容ã«ç¹å¾´çãªã°ãã¤ãããããã¨ãåããã¾ãã ä¾ãã°ããã£ã¬ã¯ããªåãã¹ã©ãã·ã¥ã§çµãã£ã¦ãããããªãã£ããã"~/.emacs" ã "~/work/../.emac
loopãã¯ãã§collectç¯ã¨ä¸ç·ã«intoã使ãã¨æ¼ç®ã³ã¹ããé常ã«å¤§ãããªãã¨ãã話ã åå ãæ¢ãããã«intoãªãã¨intoããã®loopãã¯ããmacroexpandã§å±éãã¦pretty-printãã¦ã¿ã¾ããã©ã¡ãã®æ¼ç®å¼ãè¿ãå¤ã¯åãã«ãªãã¾ãã ;; intoãªã (pp (macroexpand-all '(loop for i from 1 to 10000 collect i))) ;; intoãã (pp (macroexpand-all '(loop for i from 1 to 10000 collect i into x finally return x))) ;; çµæ ;; intoãªã (cl-block-wrapper (catch '--cl-block-nil-- (let* ((i 1) (--cl-var-- nil)) (while
pcmpl-args.el: Enhanced shell completion in Emacs ã¨ããããã±ã¼ã¸ãããã¾ããELPA repository ã«ç»é²ããã¦ãã¾ãã®ã§ package-install ã el-get ã§ã¤ã³ã¹ãã¼ã«ã§ãã¾ãã å ·ä½çãªã³ã¼ãã¯ä»¥ä¸ã«ãªãã¾ãã (require 'pcmpl-args) (defun pcomplete/rake () (require 'cl-extra) (pcmpl-args-pcomplete (pcmpl-args-cached 'rake t (pcmpl-args-make-argspecs (append (pcmpl-args-extract-argspecs-from-manpage "rake") `((argument * (("RAKE-TARGET" (:eval (let ((rakefile
ã¯ããã« ããã«ã¡ã¯ãMisocaéçºãã¼ã ã®æ´é£ï¼yoshokuï¼ã§ãã ç§ã¯ãPythonåå¹´é¸æãªæ©æ¢°å¦ç¿ã¡ã³ã§ãããMisocaã§ã¯Rubyå°å§ãªRailsãããºãã¦ã¾ãã ãã¼ã¿åæã®ãã£ã¼ã«ãã§ã¯ãRãPythonãã¡ã¸ã£ã¼ãªããã°ã©ãã³ã°è¨èªã§ããã SciRubyããã¸ã§ã¯ããä¸å¿ã«ã Rubyã§ããã¼ã¿åæãããçãªãã¤ãã¹ãä¸ãã£ã¦ãã¦ãã¾ãã ãããªããã§ãã¬ãã¼ã³Misocaã§ãåºç¤çãªãã¼ã¿åæã試ãã¦ã¿ã¾ããã Daruã¨Statsample Daruï¼Data Analysis in RUbyï¼ã¯ããã®åã®ã¨ããã Rubyã§ã®ãã¼ã¿ã®æä½ãå¯è¦åãå®ç¾ããã©ã¤ãã©ãªã§ã Pythonã®Pandasã«ç¸å½ãããã®ã§ãã Statsample ã¯ã çµ±è¨çãªåæã»æ¤å®ææ³ãæä¾ããã©ã¤ãã©ãªã§ã Pythonã®StatsModelsã«ç¸å½ãããã®ã§ãã ã©ã¡ãã
Suggest.el v0.4 is now out, and it offers some really interesting new ways of making suggestions. Supplying Constants Suppose the user gives us the input '(a b c d) and desired output 'a. We would already suggest car, but that only gets the first element of the list. They may have wanted elt or nth, which get elements at a specific position. We now try adding constants to the userâs inputs, specif
Recently, Iâve been writing a lot of Emacs Lisp. Iâve been trying to write as many of my own tools as possible in elisp, to see what the language works well at and what it doesnât do well. Turns out, elisp does many things well. However, there are several libraries that make life much easier. (Disclaimer: Iâve written some of them.) Lists Firstly, dash.el, which describes itself as âa modern list
Emacs will change how you think about programming. Emacs is totally introspectable. You can always find out 'what code runs when I press this button?'. Emacs is an incremental programming environment. There's no edit-compile-run cycle. There isn't even an edit-run cycle. You can execute snippets of code and gradually turn them into a finished project. There's no distinction between your editor and
Second Climacs is an Emacs-like editor that is focused on editing Common Lisp code and that is written entirely in Common Lisp. The project is called Second Climacs because it is a complete rewrite of the Climacs text editor. The (First) Climacs editor gave us some significant experience with writing a text editor, and we think we can improve on a number of aspects of it. As a result, there are so
ãªã©ã¨ãã£ãã¨ã©ã¼ãçºçãã¾ãã Emacs ã§ã¯ä¾ãã° ~/.emacs ã«ä»¥ä¸ã®ãããªã³ã¼ããæ¸ã㨠load-path ãåç §ããã¾ãã load-path 㯠Emacs Lisp ã®å¤æ°ã§ããã©ããªå¤ãå ¥ã£ã¦ããã®ãã¯ç¬¬3å ã®æ¹æ³ã§èª¿ã¹ããã¾ãã load-path ã«ã¯è¤æ°ã®ãã£ã¬ã¯ããªãç»é²ããã¦ããã¯ãã§ãã ã¾ãå é ã®ãã£ã¬ã¯ããªã«ã¤ãã¦ã以ä¸ã®é ã§æ¤æ»ãè¡ããã¾ãã第2å ã® .emacs ã¨åãã§ããã hoge.elc ãåå¨ãããï¼ hoge.el ãåå¨ãããï¼ hoge ãåå¨ãããï¼ 1, 2, 3 ã®ã©ãã«ãå½ã¦ã¯ã¾ããªããã°ã次ã®ãã£ã¬ã¯ããªãæ¤æ»ããã¾ãã å ¨ã¦ã®ãã£ã¬ã¯ããªã§å½ã¦ã¯ã¾ããªããã°ã以ä¸ã®ã¨ã©ã¼ãçºçãã¾ãã load-path ãæ§æãããã£ã¬ã¯ããª# ããã©ã«ãã®è¨å®ã§ã¯ã以ä¸ã®é çªã«æ§æããã¦ããã¯ãã§ãã <PREFIX>/sh
Is there an easy way to pretty print random SQL in the (rails 3) console? Something similar to awesome_print, or maybe even Pretty Print. It doesn't have to understand all the dialects possible or be super-advanced. All I really want is to inspect the SQL generated by ActiveRecord easier. Currently I just copy the SQL go online to format it which is obviously a productivity killer. I really want t
ï¼æ¸ãããï¼Emacsã§SQLã®æ´å½¢ï¼è¦Rubyï¼ SQLå´©ãã¨ãè¨ãããã§ãã ãããé©å½ãªã¡ã¢ã§ããæ°ãåãããä¿®æ£ãªã©ããããã§ãã sonota's anbt-sql-formatter at master - GitHub ããããã¢ã¼ã«ã¤ãããã¦ã³ãã¼ããã¦å±éãã¦é©å½ãªã¨ããã«ç½®ãã 以ä¸ã§ã¯ãå±éãã¦åºã¦ãããã©ã«ãã ~/anbt-sql-formatter ã¨ãªãããã«ç½®ãã ãã®ä¸ã« bin, lib, ... ãããç¶æ ã«ããã¨ãã¦é²ããã ãã¹ããããããã° $ cd ~/anbt-sql-formatter $ ruby setup.rb test ããªãã¦ãOKã åä½ç¢ºèªï¼ãããå¿ é ã§ã¯ãªãï¼ $ cd ~/anbt-sql-formatter $ ruby bin/anbt-sql-formatter sample.sql ï¼ãµã³ãã«SQLãæ´å½¢ããçµæã
Java ä»®æ³ãã·ã³ (JVM) ä¸ã§åã Lisp ç³»è¨èª Clojure ã®å ¥éæ¸ãè²·ã£ã¦ä¸å¹´ããã¡ã¾ããï¼æè¿ãµã¨ Clojure ã®ç°å¢æ§ç¯ã ãã§ããã¦ã¿ããã¨æã£ãã®ã§ããï¼æå ã«ããã®ã¯ Windows ã®ã¿ï¼ã¨ãããã¨ã§ï¼ã¤ã³ã¿ã¼ãããã§æ¤ç´¢ãã¤ã¤ Windows ä¸ã§ Clojure ã®éçºç°å¢ãæ§ç¯ãããâ¦â¦ã¨æã£ããããã¤ãåµã£ãã®ã§ã¡ã¢ï¼ ç§ã®ç°å¢: Windows 8.1 ã¿ãã¬ãã (32 ããã) æçµæ´æ°æ¥: 2015/01/29 JDK JDK ã¨ã¯ JDK (Java Development Kit) ã¯ãã®åã®éã Java ã®éçºãããã§ãï¼ã¨ãããããããå ¥ããªãã¨è©±ã«ãªããªããããªã®ã§ã¤ã³ã¹ãã¼ã«ãã¾ãï¼ Java ã§ã®éçºããããã¨ãããçã§æ¢ã« JDK ãæã£ã¦ããå ´åã¯ã¹ããããã¦ãã ããï¼ ã¤ã³ã¹ãã¼ã©ã®ãã¦ã³ãã¼ã ã¾ã Java SE
åæ: https://github.com/harrah/xsbt/wiki/Setup 2011å¹´10æ21æ¥è¿½è¨: sbt0.10ã®ã¨ãã«è¨³ããã®ã§ãç¾å¨ã§ã¯åæã®å 容ã¨ç°ãªã£ã¦ããããããã¾ããããã ãç¾å¨ãã»ã¼setupã®æé ã¯å ±éã®ã¯ããªã®ã§ããã¡ãã¯ãã®ã¾ã¾ã§æ®ãã¦ããã¾ããããã«versionãä¸ãã£ã¦ããã®å 容ãã»ã¨ãã©å½¹ã«ç«ããªããªããããªãã°ãä¿®æ£ãããåé¤ããããããã¾ããã ã¯ããã« ãã®ãã¼ã¸ã§ã¯ãã©ã®ããã«ãã¦sbtã使ç¨ãã¦ããã¸ã§ã¯ããã»ããã¢ããããã°ããã®ãã説æãã¾ããåºæ¬çãªæé ã¯ä»¥ä¸ã®ããã«ãªãã¾ã sbtãèµ·åããããã®ã¹ã¯ãªãããä½æãã¾ã ã½ã¼ã¹ã³ã¼ããä½æãã¦ãlib/ãã£ã¬ã¯ããªã®é ä¸ã«jarãå ¥ãã¾ã ãã«ãã®è¨å®ããã¾ã åºæ¬çãªä½¿ç¨æé ãç¥ãã«ã¯Runningãèªãã§ãã ãã æ§æã®æé ã«ã¤ãã¦ã¯ãSettingsãåç §ãã¦ãã ã
sbtã¯ã©ã¤ãã©ãªã®ä¾åé¢ä¿ã®è§£æ±ºã«Ivyã使ç¨ãã¦ãã¾ããIvyã¯ãã¼ã«ã«ã«ããã£ãã·ã¥ãã¨ããªãã¸ããªãã¨ããä¼¼ã¦éãªããã®ãæã£ã¦ããããããsbtãå©ç¨ããããã§ã®ããããã¤ã³ãã®ä¸ã¤ã¨ãªã£ã¦ãã¾ãã ã¡ãªã¿ã«Mavenã®å ´åããã¼ã«ã«ãªãã¸ããªããã¼ã«ã«ãã£ãã·ã¥ã®å½¹å²ãå ¼ãã¦ãã¾ããMavenã«æ £ãã¦ããã¨Ivyã¯ã¡ãã£ã¨é¢é£ããæåããããã¨ãããã¾ããæ®éã«ã©ã¤ãã©ãªã使ã£ã¦ããã ãã§ããã°æèããå¿ è¦ã¯ãªãã®ã§ãããèªåã§ã©ã¤ãã©ãªãsbtãã©ã°ã¤ã³ãªã©ãä½æãã¦åä½ç¢ºèªã®ããã«ãã¼ã«ã«ãªãã¸ããªã«publish-localãããããå ´åã«ã¯Ivyã®ãã¼ã«ã«ãã£ãã·ã¥ã¨ãã¼ã«ã«ãªãã¸ããªã«ã¤ãã¦æ£ããç解ãã¦ããå¿ è¦ãããã¾ãã åç §ããé çªã¨SNAPSHOTã©ã¤ãã©ãª Ivyã¯ã¾ãã¯ããã«ãã¼ã«ã«ãã£ãã·ã¥ãè¦ã«è¡ããåå¨ããªãå ´åãã¼ã«ã«ãªãã¸ããªâãªã¢ã¼ããªãã¸ããª
ã¨ãããå§ããsbtãèªãã§å®éãã£ã¦ã¿ãã¨ãã®ã¡ã¢ã sbtã®ã¤ã³ã¹ãã¼ã« Windowsãªãå ¬å¼ãã¼ã¸ããmsiããã¦ã³ãã¼ããã¦ã¤ã³ã¹ãã¼ã« sbtã®çæ giter8ã®ãã³ãã¬ã¼ãã使ãã®ãä¸è¬çãªã®ããªï¼ ãªããã¤ã³ã¹ãã¼ã«ãããã©ãã¾ãåããªãã£ãã®ã§ã sbtã¯ä¸åº¦ä½¿ã£ããã¨ãããããèªåã§ãã£ã¦ã¿ãã å§ããsbtã«æ²¿ã£ã¦ãã£ã¦ã¿ããã ãã£ã¬ã¯ããªã®ä½æ ã¾ãã¯ã¹ãã¤ã¯ç¨ãã£ã¬ã¯ããªãä½ã scalaãã¡ã¤ã«ãã¨ããããç½®ãã¦ã¿ã hw.scalaã§ç½®ãã å 容ã¯ã object Hi { def main(args: Array[String]) = println("Hi!") } sbtã³ãã³ããå®è¡ããã°å®è¡ã§ãããã£ã¦æ¸ãã¦ãããã©ãrunãå¿ è¦ã ã£ãã ãã¼ã¸ã§ã³ã¢ããã§å¤ãã£ãã®ããªï¼ sbt run ã¾ã¼ããã ã¨æ®éã®å®ç¾©ã«å¾ã£ã¦åãã ãããããã©ãé常ã¯
â»ãªã¢ã¼ãï¼ã¤ã³ã¿ã¼ãããããDLãã¦ããps1ãã¾ãã¯å¥ãµã¼ãä¸ã®ps1 â»ç½²åä»ãã®è©±ã¯å²æãã¾ã ä»ã®å®è¡ããªã·ã¼ã確èªããã¨ãã¯ä»¥ä¸ã Get-ExecutionPolicy å®è¡ããªã·ã¼ãå¤æ´ããã¨ãã¯ä¸è¨è¡¨ã®å¼æ°ãæå®ãã¦å®è¡ãã¾ãã (â»ã¬ã¸ã¹ããªãå¤æ´ããã®ã§ç®¡çè 権éã§Powershellãå®è¡ãã¦ãã ãã) Set-ExecutionPolicy å¼æ° èªåã®ãã¼ã«ã«ã«ããps1ãå®è¡ããã«ã¯ãRemoteSignedã§ååã§ã(ï½ã»Ïã»Â´) ã¨ããããã§ãä¸è¨ãè¸ã¾ããããã§(ãªãã¹ã)楽ã«Powershellãå®è¡ãã¦ãããã«ã¯ã©ããããããã®ããã¾ã¨ãã¾ããã #ã³ãã³ãã©ã¤ã³ããå®è¡ãã¦ããã ã³ãã³ãã©ã¤ã³ããå®è¡ãã¦ãããå ´åã®ã話ã ãã ãæ®æ®µãã使ã£ã¦ãããªãããããå®è¡ã§ã¤ã¾ã¥ããªããã⦠##powershellç·¨ é å¸ãã¡ã¤ã«ï¼ãhogehoge.
Rubyã§éè¤ããå¤ãæé¤ãããå ´åã¯ãuniqã¡ã½ããã使ãã°OKã a = [1, 2, 3, 4, 5, 6, 5, 4] a.uniq #=> [1, 2, 3, 4, 5, 6] éè¤ãã¦ããå¤ããããã©ããã調ã¹ããªããuniqãå©ç¨ããã°ç°¡åã«ãããã a = [1, 2, 3, 4, 5, 6, 5, 4] a.size == a.uniq.size #=> false ã§ããé åããéè¤ãã¦ããå¤ãæ½åºããã¡ã½ããã¯è¦å½ãããªãï¼ãã¶ãï¼ã ããã§ãé åããéè¤ãã¦ããå¤ãæ½åºããã¹ã¯ãªãããæ¸ãã¦ã¿ãã é åããéè¤ãã¦ããå¤ãæ½åºãã a = [1, 2, 3, 4, 5, 6, 5, 4] a.uniq.map{|v| v if a.inject(Hash.new(0)) {|h, key| h[key] += 1; h}[v] >= 2}.compact #=>
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}