Skip to content

Commit 219f1db

Browse files
committed
Initial Clojure / ClojureScript version
1 parent f899b08 commit 219f1db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+42626
-0
lines changed

Clojure-Websockets/.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/target
2+
/classes
3+
/checkouts
4+
pom.xml
5+
pom.xml.asc
6+
*.jar
7+
*.class
8+
/.lein-*
9+
/.nrepl-port
10+
*.log
11+
12+
twitterconf.edn
13+
resources/public/js/build/

Clojure-Websockets/LICENSE

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2013 Matthias Nehlsen
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

Clojure-Websockets/README.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Birdwatch using Clojure, ClojureScript and Om
2+
This is an all-Clojure implementation of the **BirdWatch** application.
3+
4+
## Installation
5+
First of all, you need **[Leiningen](http://leiningen.org)** installed on your system. Then, you need to build the client-side application:
6+
7+
lein cljsbuild once release
8+
lein cljsbuild once dev
9+
10+
Alternatively, you can use the following during development for detecting file system changes and MUCH FASTER recompilation:
11+
12+
lein cljsbuild once release
13+
lein cljsbuild once dev
14+
15+
The you will need to create a file named twitterconf.edn. You can copy twitterconf-tpl.edn as a template. Edit it and fill out the credentials you have obtained from dev.twitter.com:
16+
17+
{ :consumer-key "<YOUR API KEY HERE>"
18+
:consumer-secret "<YOUR API SECRET HERE>"
19+
:user-access-token "<YOUR ACCESS TOKEN HERE>"
20+
:user-access-token-secret "<YOUR ACCESS TOKEN SECRET HERE>"
21+
:es-address "http://127.0.0.1:9200"
22+
:es-index "birdwatch"
23+
24+
In the twitterconf.edn you can also specify the address under which your installation of **[ElasticSearch](http://www.elasticsearch.org)** is accessible, the index to use in ElasticSearch and which terms to track from Twitter.
25+
26+
## Usage
27+
Once the steps described above are completed, usage is easy. You can start up the application like this:
28+
29+
lein run
30+
31+
Alternatively, you can use the REPL:
32+
33+
lein repl
34+
birdwatch.core=> (start-http-server!)
35+
36+
## License
37+
Copyright © 2014 Matthias Nehlsen. Distributed under the Apache License, Version 2.0. See separate LICENSE file.

Clojure-Websockets/doc/intro.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Introduction to birdwatch-clj
2+
3+
TODO: write [great documentation](http://jacobian.org/writing/what-to-write/)

Clojure-Websockets/externs/misc.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
var moment = function (a) {};
2+
moment.fromNow = function (bool) {};
3+
moment.unix = function () {};
4+
5+
var BirdWatch = {};
6+
BirdWatch.WordCloud = function (w, h, maxEntries, addSearch, elem) {};
7+
BirdWatch.init = function () {};
8+
BirdWatch.redraw = function (dataSource) {};
9+
10+
BirdWatch.updateBarchart = function (words) {};
11+
12+
var Rickshaw = {};
13+
Rickshaw.Fixtures = {};
14+
Rickshaw.Fixtures.RandomData = {};
15+
Rickshaw.Fixtures.RandomData.addData = function (n) {};
16+
Rickshaw.Graph = {};
17+
Rickshaw.Graph.Axis = {};
18+
Rickshaw.Graph.Axis.Time = function (graph) {};
19+
Rickshaw.Graph.HoverDetail = function (graph) {};

0 commit comments

Comments
 (0)