やったー!VBAとおさらばだー。 user=> (import '(org.apache.poi.hssf.usermodel HSSFSheet HSSFWorkbook HSSFRow HSSFCell)) org.apache.poi.hssf.usermodel.HSSFCell user=> (def wb (new HSSFWorkbook)) #'user/wb user=> (import '(java.io FileOutputStream)) java.io.FileOutputStream user=> (def fileOut (new FileOutputStream "c:\\PoiSampleBook.xls")) #'user/fileOut user=> (def sheet1 (.createSheet wb)) #'user/sheet1 user=>
自分のプログラミング脳をプログラムにして、いつかプログラミングから脱出してやるぞっ!とか夢見ながら、日々プログラム作っていく 百野 貴博 の日記です!今は、屋号『百蔵。』として、Silverlight・WPFを追跡中です! (2007/09/30) Leiningenのチュートリアルを訳してみました。 Leiningenを使って開発を始めるのに、いい感じの足がかりに、、、なったらいいな! 無いよりはマシだと思います!たぶん! (`・ω・´)9m ビシ しかし、、、予想以上のボリュームだったので、めっちゃ時間かかってしまいました。 さらに、相変わらず直訳です。すみません。(´・ω・`) 改めて読み返したら、死ぬほど読みづらい・・・。 いつもは訳しながら自分でも実行してみるんですが、今回は訳すので精一杯だったので コマンドやサンプルコードは、原文のものをそのままコピペしています。 前回まで、
Clojure is a new programming language that uses the Java Virtual Runtime as its platform. Clojure is a dialect of Lisp. The language home page is at http://clojure.org/. Table of Contents A Quick Comparison Installing Clojure Atoms Lists Vectors, Maps and Sets Defining Variables and Functions Special Forms Java Integration Looping and Iterating Sequences A Quick Comparison In C-like lang
Clojure is a concise, powerful, and performant general-purpose programming language that runs on the JVM, CLR, Node.js, and modern mobile and desktop web browsers. New to Clojure and not sure where to start? Here are a few good resources to get you off on the right foot: Rich Hickey's Greatest Hits (videos)Clojure for the Brave and TrueClojure from the Ground Up4Clojure (learn Clojure interactivel
Clojureは組み込みではキーワード引数がサポートされてませんが、分配束縛(destructuring)を使うことで同様のことができるようになります。例はにあります。 リンク先にも書いてあるとおり、このパターンをマクロにしたものが、clojure.contrib.defに入っているdefnkです。でも、defnkでは少し物足りないことがあります。 例えば[a :b 1 :c 2 & rest]というように、デフォルト値付きキーワード引数に加えて、さらにオプショナルな引数を取りたい場合はdefnkではうまくいきません。defnkを参考に、オプショナル引数もサポートするdefnk*を書いてみました。 (defn take-while-nth [n pred coll] (lazy-seq (when-let [s (seq coll)] (when (pred (first s)) (con
Compojure is an open source web framework for the Clojure programming language. It emphasizes a thin I/O layer and a functional approach to web development.
Clojure Web Development with Ring March 27 2010 This post provides an introduction Clojure web development with Ring, a Clojure web application library. If you are just getting started with Clojure web development or if you are interested in the new Ring 0.2 release, this is a great place to start. Before getting started, ensure that you have Leiningen 1.1.0 installed. We will be using Leiningen v
A Simple Forth Interpreter in Clojure Just for fun I sat down and started writing a Forth interpreter in Clojure. This implementation only does some simple arithmetic, it has dup and "." (print), but lacks things like control structures. Our Forth environment has two key components, Dictionary Stack Dictionary holds both primitive words, those that are implemented in Clojure and user defined words
Clojure is a robust, practical, and fast programming language with a set of useful features that together form a simple, coherent, and powerful tool. The Clojure Programming Language Clojure is a dynamic, general-purpose programming language, combining the approachability and interactive development of a scripting language with an efficient and robust infrastructure for multithreaded programming.
Unit Testing in Clojure One thing I love about Clojure is the built in unit tests. Unit tests are great for making sure your code does what it needs to do and introducing new features or bug fixes doesn't break anything. You can refactor your code anytime you want and be sure that you did not break anything. Unit tests also serve as a living documentation for your code base, newcomers can look at
まず、以下のチュートリアルを。 Android with Emacs on Ubuntu # しかし現実トウヒばかりだな。。 Emacs on Ubuntu はスルー Install Android とりあえず、eclipse の設定があったりするはずなので ~/opt 配下に symlink 作成。 $ cd opt $ ln -s ../android-sdk-linux_x86-1.5_r2/ android $ ls -l 合計 8 lrwxrwxrwx 1 rms rms 32 2010-01-23 19:57 android -> ../android-sdk-linux_x86-1.5_r2/ drwxr-xr-x 6 rms rms 4096 2010-01-22 22:12 clojure drwxr-xr-x 9 rms rms 4096 2010-01-22 22:2
clojureでいろいろとコードを書き始めると、多種のjavaのライブラリを使うことになると思うが、いちいち.emacsにライブラリを追加するのは面倒だ。 Emacs Lispのdirectory-files関数を使うと指定したディレクトリにあるjarファイルをリストとして取得できるので、swank-clojure-extra-classpathsを以下のように記述すると、 ~/opt/compojure/deps ~/opt/libs にあるjarライブラリをまとめて追加できる。 .emacsのクラスパス設定部分 (setq swank-clojure-jar-path "~/opt/clojure/clojure.jar" swank-clojure-extra-classpaths (append (list "~/opt/swank-clojure/src/main/clojure
リスト、ハッシュマップ、ベクタ、集合のリテラルがある ;リスト (1 2 3 4) ;ハッシュマップ {:a 1, :b 2, :c 3} ;ベクタ [1 2 3 4] ;集合 #{1 2 3 4} よく使う基本データ型のリテラルがあるというのはソースコードに図が入ってるみたいで考えるよりも早く理解できる。しかもいじりやすい。他の多くの言語でもこれらの基本データ型のリテラルは用意されているが、Clojure ではこれらはとてもよく使う重要なビルディングブロック。 リスト、ハッシュマップ、ベクタ、集合、文字列 をシーケンスとして抽象化 (take 2 '(a b c d)) ;リスト ;=> (a b) (take 2 {:a 1 :b 2 :c 3 :d 4}) ;ハッシュマップ ;=> ([:a 1] [:b 2]) (take 2 [:a :b :c :d]) ;ベクタ ;=> (:a
MacBook Air 11インチ欲しい! 当たったら毎日持ち歩きますよ。 MBPは正直重くて持ち歩く気にならない。 MacBook Air 11インチ欲しい! 当たったら毎日持ち歩きますよ。 MBPは正直重くて持ち歩く気にならない。 ここ最近、Google App Engine(GAE)でCompojureのアプリを動かそうと試みていましたが、デプロイしたURLにアクセスすると Error: Server Error The server encountered an error and could not complete your request. If the problem persists, please report your problem and mention this error message and the query that caused it.と出てしまいま
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く