Skip to content

Instantly share code, notes, and snippets.

-------- natal launch fails like so ----------
➜ jaydub natal launch
Compiling ClojureScript
Compiling Xcode project
Command failed: xcodebuild -workspace native/ios/jaydub.xcworkspace -scheme jaydub -destination platform='iOS Simulator',OS=latest,id='6327705F-491A-4F12-A1F8-8525C16B9387' test
-------- running that command ends with a iPhone Simulator timeout ----------
➜ jaydub xcodebuild -workspace native/ios/jaydub.xcworkspace -scheme jaydub -destination platform='iOS Simulator',OS=latest,id='6327705F-491A-4F12-A1F8-8525C16B9387' test
2015-11-18 09:53:32.739 xcodebuild[26881:405228] [MT] IDETestOperationsObserverDebug: (3B66138F-B31D-485A-9F41-567C6D4B1D12) Beginning test session 3B66138F-B31D-485A-9F41-567C6D4B1D12 with Xcode 7B1005 on target <DVTiPhoneSimulator: 0x7f7f9c161d90> {
@jwinter
jwinter / gist:c8dac5edd2f070aededb
Created November 19, 2014 18:12
jruby-bundler-specs
Finished in 142 minutes 41 seconds (files took 2.79 seconds to load)
1102 examples, 106 failures, 2 pending
Failed examples:
rspec ./spec/cache/gems_spec.rb:247 # bundle cache when previously cached doesn't remove gems that
are for another platform
rspec ./spec/commands/binstubs_spec.rb:248 # bundle binstubs <gem> when BUNDLE_INSTALL is specified
does nothing when already up to date
rspec ./spec/commands/exec_spec.rb:60 # bundle exec handles --keep-file-descriptors
TestJsonApi::Application.routes.draw do
# resources :users
resources :tasks, except: [:new, :edit]
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
namespace :api do
namespace :v1 do
devise_for(:users)
class String
include Enumerable
def each(&block)
chars.each do |member|
block.call(member)
end
end
end
@jwinter
jwinter / badfruit.gemspec
Created October 12, 2012 18:26
badfruit.gemspec
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = "badfruit"
s.version = "1.1.2"
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
s.authors = ["Brian Michel"]
s.date = "2012-04-21"
s.description = "Interface with the Rotten Tomatoes API"
"\e[A": history-search-backward
"\e[B": history-search-forward
$if Bash
Space: magic-space
$endif
"\M-o": "\C-p\C-a\M-f "
set completion-ignore-case on
set visible-stats on
set show-all-if-ambiguous on
"\M-s": menu-complete
~/src/rspec_minitest_benchmark (411d12h19m|master*)
$ time rspec rspec.rb && time ruby minispec.rb && time ruby minitest.rb
................
Finished in 0.00415 seconds
16 examples, 0 failures
rspec rspec.rb 0.22s user 0.05s system 98% cpu 0.278 total
Run options: --seed 24680
# Running tests:
; Insert today's standup template into my org doc
(defun standup-org()
(interactive)
(insert "* Joe W. " (format-time-string "%Y-%m-%d") "\n")
(insert
(mapconcat 'identity '("** Yesterday" "** Today" "** Next" "") "\n-\n"))
ruby 1.8.7-p249
Finished in 121.97 seconds
1148 examples, 0 failures
rake spec 124.69s user 0.99s system 95% cpu 2:11.11 total
ree-1.8.7.2011.03
Finished in 60.47 seconds
1148 examples, 0 failures
rake spec 60.77s user 2.26s system 98% cpu 1:03.70 total

rcov 1.8 simple cov 1.9.x

SOLID Principles behind Rails 3.1

Single responsibility principle

  • One reason for a class to change
  • Makes Top-down comprehensibility (admittedly)
  • Better for maintainability,