Skip to content

Commit cb07c90

Browse files
Clojure Examples
- renamed file endings back to .clj
1 parent 819d64a commit cb07c90

File tree

3 files changed

+47
-2
lines changed

3 files changed

+47
-2
lines changed

language-adaptors/rxjava-clojure/src/examples/clojure/rx/lang/clojure/examples/http_examples.txt renamed to language-adaptors/rxjava-clojure/src/examples/clojure/rx/lang/clojure/examples/http_examples.clj

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
;
2+
; Copyright 2013 Netflix, Inc.
3+
;
4+
; Licensed under the Apache License, Version 2.0 (the "License");
5+
; you may not use this file except in compliance with the License.
6+
; You may obtain a copy of the License at
7+
;
8+
; http://www.apache.org/licenses/LICENSE-2.0
9+
;
10+
; Unless required by applicable law or agreed to in writing, software
11+
; distributed under the License is distributed on an "AS IS" BASIS,
12+
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
; See the License for the specific language governing permissions and
14+
; limitations under the License.
15+
;
116
(ns rx.lang.clojure.examples.http-examples
217
(:require [rx.lang.clojure.interop :as rx]
318
[clj-http.client :as http])

language-adaptors/rxjava-clojure/src/examples/clojure/rx/lang/clojure/examples/rx_examples.txt renamed to language-adaptors/rxjava-clojure/src/examples/clojure/rx/lang/clojure/examples/rx_examples.clj

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
;
2+
; Copyright 2013 Netflix, Inc.
3+
;
4+
; Licensed under the Apache License, Version 2.0 (the "License");
5+
; you may not use this file except in compliance with the License.
6+
; You may obtain a copy of the License at
7+
;
8+
; http://www.apache.org/licenses/LICENSE-2.0
9+
;
10+
; Unless required by applicable law or agreed to in writing, software
11+
; distributed under the License is distributed on an "AS IS" BASIS,
12+
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
; See the License for the specific language governing permissions and
14+
; limitations under the License.
15+
;
116
(ns rx.lang.clojure.examples.rx-examples
217
(:require [rx.lang.clojure.interop :as rx])
318
(:import rx.Observable rx.subscriptions.Subscriptions))

language-adaptors/rxjava-clojure/src/examples/clojure/rx/lang/clojure/examples/video_example.txt renamed to language-adaptors/rxjava-clojure/src/examples/clojure/rx/lang/clojure/examples/video_example.clj

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
;
2+
; Copyright 2013 Netflix, Inc.
3+
;
4+
; Licensed under the Apache License, Version 2.0 (the "License");
5+
; you may not use this file except in compliance with the License.
6+
; You may obtain a copy of the License at
7+
;
8+
; http://www.apache.org/licenses/LICENSE-2.0
9+
;
10+
; Unless required by applicable law or agreed to in writing, software
11+
; distributed under the License is distributed on an "AS IS" BASIS,
12+
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
; See the License for the specific language governing permissions and
14+
; limitations under the License.
15+
;
116
(ns rx.lang.clojure.examples.video-example
217
(:require [rx.lang.clojure.interop :as rx])
318
(:import [rx Observable Observer Subscription]
@@ -128,7 +143,7 @@
128143
(.onCompleted observer)
129144
(Subscriptions/empty))))
130145

131-
(comment (.subscribe (video-list->videos (video-list 2)) println))
146+
(comment (.subscribe (video-list->videos (video-list 2)) (rx/action* println)))
132147

133148
(defn ^Observable video->metadata
134149
[video-id]
@@ -163,5 +178,5 @@
163178
:actual-star-rating (rand-int 5) })
164179
(.onCompleted observer))))
165180

166-
(comment (.subscribe (video->rating 234345 8888) println))
181+
(comment (.subscribe (video->rating 234345 8888) (rx/action* println)))
167182

0 commit comments

Comments
 (0)