This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(let [eggs #(str %)] | |
(defn foo | |
([x y] (println (eggs x) y)) | |
([x] (println (eggs x))))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int moo(){ | |
return 2; | |
} | |
int main(){ | |
int moo; | |
moo = ::moo(); | |
return moo; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn login [conn user] | |
((comp | |
#(cmd conn :nick (:nick user)) | |
#(cmd conn :user (:nick user) "0" "*" (str ":" (:name user)))))) | |
(defn login [conn user] | |
(cmd (cmd conn :nick (:nick user)) | |
:user (:nick user) "0" "*" (str ":" (:name user)))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http> POST http://localhost:7474/db/data/cypher {"query":"start x = node(85324) match x -[r]-> n return type(r)","params":null} | |
==> 400 Bad Request | |
==> { | |
==> "exception" : "java.lang.NullPointerException", | |
==> "stacktrace" : [ "scala.collection.JavaConversions$JMapWrapperLike$$anon$2.<init>(JavaConversions.scala:782)", "scala.collection.JavaConversions$JMapWrapperLike$class.iterator(JavaConversions.scala:781)", "scala.collection.JavaConversions$JMapWrapper.iterator(JavaConversions.scala:792)", "scala.collection.IterableLike$class.foreach(IterableLike.scala:73)", "scala.collection.JavaConversions$JMapWrapper.foreach(JavaConversions.scala:792)", "scala.collection.TraversableOnce$class.toMap(TraversableOnce.scala:256)", "scala.collection.JavaConversions$JMapWrapper.toMap(JavaConversions.scala:792)", "org.neo4j.cypher.ExecutionEngine.execute(ExecutionEngine.scala:58)", "org.neo4j.cypher.javacompat.ExecutionEngine.execute(ExecutionEngine.java:86)", "org.neo4j.server.rest.web.CypherService.cypher(CypherServic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Request-- | |
POST http://localhost:7474/db/data/cypher HTTP/1.1 | |
Content-Type: application/json | |
Accept: application/json | |
HOST: localhost | |
Content-Length: 80 | |
{"query":"start x = node(85324) match x -[r]-> n return type(r)","params":null} | |
--Response-- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;int main(){ | |
;/* | |
(format t "~A~%" "hello world!") | |
;*/ | |
; printf("hello world!\n") | |
; return 0 | |
;} |
NewerOlder