- https://jamesthornton.com#EXIWlRrkjKE
- https://twitter.com/Rangers/status/1641554510605611011
- https://twitter.com/astros/status/1641996751618940936
- https://www.youtube.com/watch?v=S7c3lzpDkvQ#7SlILk2WMTI
- https://gist.github.com/espeed/dd3026536ec3d38afea1072941670f52#3ch6eXkQWU8-C5TDc46E1G4-trIjpVH8h88-UcW056B9jeQ-LvG_M_fAkXU
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
| (def ae-version "1.8.1.1") | |
| (defproject airflow "0.1.0-SNAPSHOT" | |
| :description "FIXME: write description" | |
| :url "http://example.com/FIXME" | |
| :license {:name "Eclipse Public License" | |
| :url "http://www.eclipse.org/legal/epl-v10.html"} | |
| :repositories {"conjars" "http://conjars.org/repo/" | |
| "clojars" "http://clojars.org/repo/"} | |
| :dependencies [[org.clojure/clojure "1.5.1"] |
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
| ;; /home/james/projects/airflow/src/airflow/context_test.clj | |
| (ns airflow.context-test | |
| (:require [org.lpetit.ring.servlet.util :as util])) | |
| (defn start-up [ctx] | |
| (println "Starting app with params: " (util/context-params ctx))) | |
| (defn shutdown [ctx] | |
| (println "Stopping app with params: " (util/context-params ctx))) |
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
| ;; /home/james/projects/airflow/src/airflow/app_servlet.clj | |
| (ns airflow.app-servlet) | |
| (defn hello [request] | |
| {:status 200 | |
| :headers {"Content-Type" "text/plain"} | |
| :body "Hello, world!"}) |
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
| (defproject org.lpetit.ring/ring-java-servlet "0.2.0" | |
| :description "Ring generic servlet for using ring without AOT." | |
| :url "http://github.com/laurentpetit/ring-java-servlet" | |
| :dependencies [[org.clojure/clojure "1.5.1"] | |
| [ring/ring-servlet "1.1.0" :exclusions [javax.servlet/servlet-api]]] | |
| :profiles {:provided | |
| {:dependencies | |
| [[javax.servlet/servlet-api "2.5"]]}} | |
| :aot [org.lpetit.ring.servlet.RingHttpServlet org.lpetit.ring.servlet.RingServletContextListener]) |
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
| <?xml version="1.0" encoding="ISO-8859-1"?> | |
| <web-app xmlns="http://java.sun.com/xml/ns/javaee" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" | |
| version="2.5"> | |
| <display-name>Google App Engine Template</display-name> |
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
| [INFO] | |
| [INFO] ------------------------------------------------------------------------ | |
| [INFO] Building Blueprints-OrientGraph 2.4.0-SNAPSHOT | |
| [INFO] ------------------------------------------------------------------------ | |
| Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/orientechnologies/orientdb-core/1.4.1-SNAPSHOT/maven-metadata.xml | |
| Downloading: https://oss.sonatype.org/content/repositories/releases/com/orientechnologies/orientdb-core/1.4.1-SNAPSHOT/maven-metadata.xml | |
| Downloading: https://oss.sonatype.org/content/repositories/releases/com/orientechnologies/orientdb-core/1.4.1-SNAPSHOT/orientdb-core-1.4.1-SNAPSHOT.pom | |
| Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/orientechnologies/orientdb-core/1.4.1-SNAPSHOT/orientdb-core-1.4.1-SNAPSHOT.pom | |
| [WARNING] The POM for com.orientechnologies:orientdb-core:jar:1.4.1-SNAPSHOT is missing, no dependency information available | |
| Downloading: https://os |
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
| ;; Random UUID compressed into a Binary 16 byte array in Clojure. | |
| ;; by James Thornton, http://jamesthornton.com | |
| (ns espeed.uuid | |
| (require [clojure.data.codec.base64 :as b64])) | |
| (defn uuid4 [] (java.util.UUID/randomUUID)) | |
| (defn uuid-as-byte-array [] |
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
| // If you use an external search engine to return a list of vertex IDs, | |
| // a common pattern in Gremlin for starting with Vertex IDs has been to | |
| // convert the IDs to vertices and use the IdentityPipe to start the pipeline... | |
| // See IdentityPipe https://github.com/tinkerpop/gremlin/wiki/Gremlin-Steps | |
| start = [1,2,3,4].collect{ g.v(it) } | |
| start._().filter{it.isActive} | |
| // ...or as a one liner... |
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
| java.lang.NullPointerException | |
| at com.tinkerpop.blueprints.EdgeTestSuite.testEdgeIterator(EdgeTestSuite.java:450) | |
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) | |
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
| at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) | |
| at org.junit.runners.Suite.runChild(Suite.java:127) | |
| at org.junit.runners.Suite.runChild(Suite.java:26) | |
| at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) |
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
| # by James Thornton, http://jamesthornton.com | |
| from bulbs.titan import Graph, DEBUG | |
| # TITAN_URI => "http://localhost:8182/graphs/graph" | |
| # "graph" is the default graph name set in the Titan Server config | |
| g = Graph() | |
| g.config.set_logger(DEBUG) |