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
~ > git/rails/bin/rails plugin new mt_blog --edge --mountable | |
create | |
create README.rdoc | |
create Rakefile | |
create mt_blog.gemspec | |
create MIT-LICENSE | |
create .gitignore | |
create Gemfile | |
create app | |
create app/controllers/mt_blog/application_controller.rb |
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
[209, 218] in /Users/jack/.rvm/gems/ruby-1.9.2-p136/bundler/gems/rails-a00bed0c48f4/activerecord/lib/active_record/relation/calculations.rb | |
209 if operation == "count" | |
210 limit = relation.limit_value | |
211 offset = relation.offset_value | |
212 | |
213 debugger | |
=> 214 unless limit && offset | |
215 query_builder.limit = nil | |
216 query_builder.offset = nil | |
217 end |
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
~ tasks > cat ~/bin/git-scorch | |
#!/bin/zsh | |
git clean -fd | |
git reset --hard HEAD | |
~orch tasks > cat ~/.gitconfig | |
[user] | |
name = Jack Dempsey |
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
~ > npm install [email protected] | |
npm it worked if it ends with ok | |
npm configfile /Users/jack/.npmrc | |
npm cli [ 'install', '[email protected]' ] | |
npm version 0.1.20 | |
npm install pkg [email protected] | |
npm GET cssom/0.2.0 | |
npm fetch http://registry.npmjs.org/cssom/-/cssom-0.2.0.tgz to /usr/local/Cellar/node/0.1.103/lib/node/.npm/.cache/cssom/0.2.0/package.tgz | |
npm content-length 33003 | |
npm downloaded 4% |
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
module MtForum | |
class Engine < Rails::Engine | |
isolate_namespace MtForum | |
config.generators do |g| | |
g.template_engine :haml | |
g.test_framework :rspec | |
end |
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
~ > irb | |
RUVEruby-1.9.2-p0 > {foo: "bar"} | |
=> {:foo=>"bar"} | |
ruby-1.9.2-p0 > {foo : "bar"} | |
SyntaxError: (irb):2: syntax error, unexpected ':', expecting tASSOC | |
{foo : "bar"} | |
^ | |
(irb):2: syntax error, unexpected '}', expecting $end | |
from /Users/jack/.rvm/rubies/ruby-1.9.2-p0/bin/irb:17:in `<main>' | |
ruby-1.9.2-p0 > {foo: "bar"} |
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
➜ test_app_foo bundle exec rails plugin | |
/Users/jack/git/rails/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb:23:in `<module:Session>': uninitialized constant Rack::Session::Abstract::SessionHash (NameError) | |
from /Users/jack/git/rails/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb:8:in `<module:ActionDispatch>' | |
from /Users/jack/git/rails/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb:7:in `<top (required)>' | |
from /Users/jack/git/rails/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb:3:in `<top (required)>' | |
.... |
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
➜ ~ cd git/rails | |
➜ rails git:(master) cat .git/config | |
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
ignorecase = true | |
[remote "origin"] | |
fetch = +refs/heads/*:refs/remotes/origin/* |
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
➜ rails git:(master) ./bin/rails plugin new ~/Code/Ruby/blog | |
Usage: | |
rails new APP_PATH [options] | |
Options: | |
-r, [--ruby=PATH] # Path to the Ruby binary of your choice | |
# Default: /Users/jack/.rvm/rubies/ruby-1.9.2-p0/bin/ruby | |
-d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db) | |
# Default: | |
............. |
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
git/relevance-labrepl master > lein deps | |
Copying 56 files to /Users/jack/git/relevance-labrepl/lib | |
Downloading: org/clojure/clojure/1.2.0-beta1/clojure-1.2.0-beta1.jar from clojure-snapshots | |
An error has occurred while processing the Maven artifact tasks. | |
Diagnosis: | |
Unable to resolve artifact: Missing: | |
---------- | |
1) org.clojure:clojure:jar:1.2.0-beta1 |