devn/getclojure

语言: Clojure

git: https://github.com/devn/getclojure

搜索Clojure示例
Search for Clojure examples
README.md (中文)

GetClojure

可搜索的,clojure示例以编程方式编译而成 很多刮。 GetClojure从中提取有效的s表达式 各种位置,在沙箱中运行它们,并捕获价值 和/或每个s表达式的输出。该信息被保存并且是 通过ElasticSearch可搜索。

用法

转到GetClojure并开始搜索。

提示欢迎

Support via Gittip

开发商

要在开发模式下本地运行,您需要执行此操作 以下:

  • 在本地运行ElasticSearch。
  • 在本地运行MongoDB。通过包管理器找到它。
  • 运行./script/bootstrap.sh
  • 种子数据库:lein run -m getclojure.seed
  • 启动服务器:lein ring server
  • 计算。

python 2用户请注意

如果在运行上述命令后,您将获得一个页面列表(数字位于 底部)但没有实际结果,数据库可能没有填充 正确。这可能是因为pygments需要python 2.确保 你的路径中有一个符号链接到python2(你应该从python开始) 2.7.3),运行以下命令:

command -v python2

如果没有输出,你需要制作一个python2符号链接,这样做, 运行以下命令:

ln -s "$(command -v python)" /usr/local/bin/python2

尝试再次运行lein run -m getclojure.seed,你应该进入 商业!

贡献者

  • 安东尼格兰姆斯
  • 乔尼尔森
  • 约书亚霍夫

谢谢

  • 到Bendyworks 20%的时间。
  • 致ClojureWerkz提供优秀的图书馆。
  • 致Anthony Grimes(Raynes)让我偷了他的一些代码   从RefHeap来加快速度。
  • 致Phil Hagelberg(技术)对Heroku相关的帮助   的问题。
  • 让Jean Niklas L'Orange(hyPiRion)帮我理解了什么   这个字符串是cl-format,用于修复相关的bug   Clojure漂亮的打印机:〜<#(〜;〜@ {~w~ ^ ~~~}〜;)〜:>
  • 克里斯·豪泽给了我一块收获的宝库。

YourKit

YourKit正在通过其功能齐全的Java支持开源项目 探查。

YourKit,LLC是创新和智能分析工具的创建者 Java和.NET应用程序。看看YourKit领先的软件产品:

  • YourKit Java Profiler和
  • YourKit .NET Profiler。

执照

版权所有©2013 Devin Walters

在Eclipse Public License下分发,与Clojure相同。

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

GetClojure

Searchable, clojure examples programatically compiled from lots and
lots of scraping. GetClojure extracts valid s-expressions from
various locations, runs them in a sandbox, and captures the value
and/or output of every s-expression. That information is saved and is
made searchable via ElasticSearch.

Usage

Go to GetClojure and start searching.

Tips Welcome

Support via Gittip

Developers

In order to run locally in development mode you'll need to do the
following:

  • Run ElasticSearch locally.
  • Run MongoDB locally. Find it via your package manager.
  • Run ./script/bootstrap.sh
  • Seed the Database: lein run -m getclojure.seed
  • Start the server: lein ring server
  • Compute.

Note to python 2 users

If after running the commands above you get a list of pages (numbers at
the bottom) but no actual results, the database might not be populating
correctly. This could be because pygments requires python 2. To ensure
you have a symlink to python2 in your path (you should as of python
2.7.3), run the following command:

command -v python2

If there's no output, you'll need to make a python2 symlink, to do so,
run the following command:

ln -s "$(command -v python)" /usr/local/bin/python2

Try running lein run -m getclojure.seed again and you should be in
business!

Contributors

  • Anthony Grimes
  • Joe Nelson
  • Joshua Hoff

Thanks

  • To Bendyworks for 20% time.
  • To ClojureWerkz for providing great libraries.
  • To Anthony Grimes (Raynes) for letting me steal some of his code
    from RefHeap to speed things along.
  • To Phil Hagelberg (technomancy) for his help with Heroku-related
    issues.
  • To Jean Niklas L'Orange (hyPiRion) for helping me understand what
    this string does in cl-format, and for fixing a related bug in the
    Clojure pretty printer: ~<#(~;~@{~w~^ ~_~}~;)~:>
  • To Chris Houser for giving me a treasure trove of logs to harvest.

YourKit

YourKit is kindly supporting open source projects with its full-featured Java
Profiler.

YourKit, LLC is the creator of innovative and intelligent tools for profiling
Java and .NET applications. Take a look at YourKit's leading software products:

  • YourKit Java Profiler and
  • YourKit .NET Profiler.

License

Copyright © 2013 Devin Walters

Distributed under the Eclipse Public License, the same as Clojure.