Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| ;; see http://stackoverflow.com/questions/16386793/datomic-query-function-that-filters-and-binds | |
| (require '[datomic.api :as d]) | |
| (def uri "datomic:mem://test") | |
| (d/create-database uri) | |
| (def conn (d/connect uri)) | |
| ;; sample attribute definiton | |
| (d/transact conn [{:db.install/_attribute :db.part/db | |
| :db/id #db/id[:db.part/db] |
| Teacup::Stylesheet.new :main do | |
| style :my_style, | |
| constraints: [ | |
| constrain_left(0), | |
| constrain_width(100), | |
| constrain_top(0), | |
| constrain(:bottom).equals(:superview, :bottom), | |
| ] | |
| end |
| /* | |
| Copyright 2018 Viktor Klang | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software |
disable_flush and disable_recovery (TD)| # download | |
| wget http://downloads.datomic.com/0.8.3848/datomic-pro-0.8.3848.zip | |
| unzip datomic-pro-X.X.zip & cd datomic-pro-X.X | |
| # install as a maven artifact | |
| ./bin/maven-install | |
| # configure transactor.properties | |
| cp config/samples/sql-transactor-template.properties transactor.properties | |
| # protocol=sql |
| (require | |
| '[pallet.crate.git :refer [git clone]] | |
| '[pallet.crate.java :refer [java]] | |
| '[pallet.crate.lein :refer [lein leiningen]]) | |
| (def repo "git://github.com/jcrossley3/random-apps-of-kindness.git") | |
| (def demo-directory "random-apps-of-kindness/demo") | |
| (defplan setup-machine |
| (set | |
| (mapcat #(... | |
| ... | |
| ;; AND | |
| (into {} | |
| (map #(vector ... |
| class MP | |
| class << self | |
| def init_mixpanel | |
| @mixpanel = Mixpanel.sharedInstance | |
| self.identify(@mixpanel) | |
| @mixpanel.people.set({"$last_login" => Time.now}) | |
| MP.update_person(@mixpanel) | |
| end |
| package wrm | |
| import org.objectweb.asm.MethodVisitor | |
| import org.objectweb.asm.Label | |
| import org.objectweb.asm.Opcodes | |
| import org.objectweb.asm.FieldVisitor | |
| import org.objectweb.asm.AnnotationVisitor | |
| import org.objectweb.asm.ClassWriter | |
| object invokeHelper1 { | |
| def apply(method: String) {} |