This file contains 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
(ns lection02.core) | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; Namespaces | |
;; Refer | |
;;--------------- | |
(comment |
This file contains 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
(require '[clojure.java.io :as io]) | |
(require '[oauth.twitter :refer [oauth-client]]) | |
(defn read-properties | |
"Parse a properties file, convert the property keys to Clojure | |
keywords and return as a Clojure map." | |
[resource-name] | |
(when-let [resource (io/resource resource-name)] | |
(let [properties (java.util.Properties.)] | |
(with-open [stream (io/input-stream resource)] |
This file contains 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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Ant sim ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
; Copyright (c) Rich Hickey. All rights reserved. | |
; The use and distribution terms for this software are covered by the | |
; Common Public License 1.0 (http://opensource.org/licenses/cpl.php) | |
; which can be found in the file CPL.TXT at the root of this distribution. | |
; By using this software in any fashion, you are agreeing to be bound by | |
; the terms of this license. | |
; You must not remove this notice, or any other, from this software. | |
;dimensions of square world |
This file contains 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
- Каждый сценарий должен иметь смысл и выполняться независимо от других сценариев. Это подразумевает что каждый сценарий должен иметь достаточно шагов Given для того чтобы создать необходимый контекст для выполнения теста. | |
- Создатели фич должны иметь возможность описать свои мысли в свободной форме, чтобы фича читалась натурально. Это означает что они могут использовать фразы отличающиеся друг от друга но подразумевающие один результат. Очень важно чтобы фичи не звучали как написанные роботом. | |
- При написании фич, сделайте упор на читабельность, в противном случае они будут выглядеть как программа или тех спецификация и мы хотим избежать этого любой ценой! Ведь если не программист с трудом может понять что происходит в фиче, зачем тогда вообще их писать? ( Ведь ВDD в первую очередь направлен на коммуникацию - если это отбросить то можно вернуть к старым добрым simpletest или codeception ) | |
- Старайтесь избегать технических деталей вроде "чистка очереди", "запуск back-end сервиса", "открытие браузреа на бе |
This file contains 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
sudo /etc/init.d/immutant start | |
Starting JBoss AS 7 (Immutant)... | |
JBoss Script: /home/dark4eg/.immutant/current/jboss/bin/standalone.sh | |
========================================================================= | |
JBoss Bootstrap Environment | |
JBOSS_HOME: /home/dark4eg/.immutant/current/jboss | |
JAVA: java |
This file contains 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
AS7_OPTS="$AS7_OPTS -Dorg.apache.tomcat.util.http.ServerCookie.ALLOW_HTTP_SEPARATORS_IN_V0=true" ## See AS7-1625 | |
AS7_OPTS="$AS7_OPTS -Djboss.bind.address.management=0.0.0.0" | |
AS7_OPTS="$AS7_OPTS -Djboss.bind.address=0.0.0.0" | |
AS7_OPTS="$AS7_OPTS -Djgroups.bind_addr=`hostname -I`" |
This file contains 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
16:07:33,571 WARN [org.jboss.as.server] (Controller Boot Thread) JBAS015883: No security realm defined for native management service; all access will be unrestricted. | |
16:07:33,586 WARN [org.jboss.as.server] (Controller Boot Thread) JBAS015884: No security realm defined for http management service; all access will be unrestricted. | |
16:07:34,818 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015876: Starting deployment of "counter.clj" (runtime-name: "counter.clj") | |
16:07:49,252 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3) | |
16:07:49,255 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.0) | |
16:07:52,459 ERROR [immutant.runtime] (pool-4-thread-1) Unexpected error occurred invoking init-fn counter.core/start: #<CompilerException java.lang.IllegalStateException, compiling:(db.clj:7:18)> | |
1 |
This file contains 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
13:50:15,323 INFO [immutant.boot] (ServerService Thread Pool -- 9) Welcome to Immutant 1.1.3 (Already?), rev: cdda36fbfdf01e7408f897d47839758d085324ed, build: 81 | |
13:50:15,844 WARN [org.jboss.as.server] (Controller Boot Thread) JBAS015883: No security realm defined for native management service; all access will be unrestricted. | |
13:50:15,856 WARN [org.jboss.as.server] (Controller Boot Thread) JBAS015884: No security realm defined for http management service; all access will be unrestricted. | |
13:50:15,893 WARN [org.jboss.as.controller] (MSC service thread 1-1) JBAS014622: Value '127.0.0.1' for interface selection criteria 'inet-address' is ambiguous, as more than one address or network interface available on the machine matches it. Because of this ambiguity, no address will be selected as a match. Matching addresses: [/127.0.0.1]. Matching network interfaces: [lo, venet0]. | |
13:50:15,896 WARN [org.jboss.as.controller] (MSC service thread 1-13) JBAS014622: Value '127.0.0.1' for interface selection criteria 'in |
This file contains 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
Warning: The current app may not be deployed - deploy with 'lein immutant deploy' | |
Warning: You specified profiles, but they cannot be applied to deployed | |
applications from the run task. You will instead need to deploy | |
the application with those profiles set: | |
lein with-profile base,system,user,provided,dev immutant deploy | |
Starting Immutant: /home/clojure/.immutant/current/jboss/bin/standalone.sh -b 159.253.22.216 | |
========================================================================= | |
JBoss Bootstrap Environment |
This file contains 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 ^:private page-chan (chan)) | |
(def ^:private page-chan-mult (mult page-chan)) | |
..... | |
(defn ^:private trade | |
[app owner] | |
(reify | |
... | |
om/IWillMount | |
(... |
OlderNewer