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.AssertionError: Assert failed: clojure.core.typed.type_rep.TCResult@fed09158 | |
| (not expected) | |
| check.clj:4426 clojure.core.typed.check/eval65845[fn] | |
| RestFn.java:423 clojure.lang.RestFn.invoke | |
| MultiFn.java:231 clojure.lang.MultiFn.invoke | |
| check.clj:3074 clojure.core.typed.check/eval65274[fn] | |
| check.clj:3066 clojure.core.typed.check/eval65274[fn] | |
| protocols.clj:143 clojure.core.protocols/fn | |
| protocols.clj:19 clojure.core.protocols/fn[fn] | |
| protocols.clj:31 clojure.core.protocols/seq-reduce |
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
| (ns circle.monkey-patch-clojure-test | |
| "less buggy test runner" | |
| (:require clojure.test)) | |
| (in-ns 'clojure.test) | |
| (require '[clojure.core.strint :refer (<<)]) | |
| (defn test* | |
| "Circle monkeypatch." | |
| [v] |
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 resolve-map-fn | |
| "given a record type, resolve and return it's map->Foo fn" | |
| [record-class] | |
| (let [simple-name (.getSimpleName record-class) | |
| full-name (.getName record-class) | |
| [_ the-ns] (re-find (re (<< "(.*)\\.~{simple-name}")) full-name)] | |
| (when the-ns | |
| (ns-resolve (find-ns (symbol the-ns)) (symbol (<< "map->~{simple-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
| ;; File 1 | |
| (ns foo.bar | |
| ;; any :use or :refer is acceptable here, as long as the refer'd fn is not present in the user namespace (or wherever analyze is run from) | |
| (:require [clojure.set :refer (intersection)])) | |
| (defn foo [x y] | |
| (intersection x y)) | |
| ;; at the repl |
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
| (defmacro def-with-disable-macro | |
| "Generates a pair of macros, with-enable-foo and with-disable-foo, which use with-redefs to replace foo with (constantly nil), or restore it." | |
| [v short-name] | |
| (let [disable-name (symbol (format "with-disable-%s" short-name)) | |
| enable-name (symbol (format "with-enable-%s" short-name))] | |
| `(do | |
| (let [v# #'~v | |
| v-name# (quote ~v) | |
| old-value# (deref #'~v) | |
| ns# *ns*] |
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
| root@box16:~# cat /etc/timezone | |
| Etc/UTC | |
| root@box16:~# echo Americas/Los_Angeles | sudo tee /etc/timezone | |
| Americas/Los_Angeles | |
| root@box16:~# cat /etc/timezone | |
| Americas/Los_Angeles | |
| root@box16:~# sudo dpkg-reconfigure --frontend noninteractive tzdata | |
| Current default time zone: 'Etc/UTC' |
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
| src/internal_logging.cc:56:41: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result] | |
| g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -DNO_TCMALLOC_SAMPLES -DNO_HEAP_CHECK -pthread -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -fno-exceptions -g -O2 -c src/internal_logging.cc -o libtcmalloc_minimal_internal_la-internal_logging.o >/dev/null 2>&1 | |
| /bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -DNO_TCMALLOC_SAMPLES -DNO_HEAP_CHECK -pthread -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -fno-exceptions -g -O2 -c -o libtcmalloc_minimal_internal_la-system-alloc.lo `test -f 'src/system-alloc.cc' || echo './'`src/system-alloc.cc | |
| g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -DNO_TCMALLOC_SAMPLES -DNO_HEAP_CHECK -pthread -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -fn |
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
| $ brew install https://gist.github.com/raw/1946398/e7bbb52a4fe3ae0060e65df3d4a7462730ddc822/emacs.rb --force --HEAD --cocoa --use-git-head | |
| ######################################################################## 100.0% | |
| Warning: It appears you have MacPorts or Fink installed. | |
| Software installed with other package managers causes known problems for | |
| Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again. | |
| ==> Cloning git://git.sv.gnu.org/emacs.git | |
| Updating /Library/Caches/Homebrew/emacs--git | |
| ==> Downloading patches | |
| ######################################################################## 100.0% | |
| ==> Patching |
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
| ubuntu@domU-12-31-39-0A-0D-02:~/CircleCI-181$ rvm jruby-1.6.6@circle exec rake assets:precompile | |
| /home/ubuntu/.rvm/rubies/jruby-1.6.6/bin/jruby /home/ubuntu/.rvm/gems/jruby-1.6.6@circle/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets | |
| rake aborted! | |
| can't convert Encoding into String | |
| (in /home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/haml_coffee_assets-0.6.0/vendor/assets/javascripts/hamlcoffee.js.coffee.erb) | |
| Tasks: TOP => assets:precompile:primary | |
| (See full trace by running task with --trace) | |
| rake aborted! | |
| Command failed with status (1): [/home/ubuntu/.rvm/rubies/jruby-1.6.6/bin/j...] |
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 [2011-10-18 14:53:57,803] pool-2-thread-3 - pallet.compute.jclouds - options {:image-id "us-east-1/ami-06ad526f", :location-id "us-east-1", :os-family :ubuntu, :hardware-id "m1.small", :security-groups ["www" "allow-DB"]} | |
| DEBUG [2011-10-18 14:53:57,803] pool-2-thread-3 - jclouds.compute - >> searching params([biggest=false, fastest=false, imageName=null, imageDescription=null, imageId=us-east-1/ami-06ad526f, imagePredicate=null, imageVersion=null, location=[id=us-east-1, scope=REGION, description=us-east-1, parent=aws-ec2, iso3166Codes=[US-VA], metadata={}], minCores=0.0, minRam=0, osFamily=ubuntu, osName=null, osDescription=null, osVersion=null, osArch=null, os64Bit=null, hardwareId=m1.small]) | |
| DEBUG [2011-10-18 14:53:57,809] pool-2-thread-3 - jclouds.compute - << matched hardware(m1.small) | |
| DEBUG [2011-10-18 14:53:57,809] pool-2-thread-3 - jclouds.compute - << matched image(us-east-1/ami-06ad526f) | |
| DEBUG [2011-10-18 14:53:57,809] pool-2-thread-3 - jclouds.compute - >> running 1 node group(circle) lo |