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
/dependencies/ruby/1.8/gems/rails-2.3.12/lib/initializer.rb:926:in `read': No such file or directory - /code/config/database.yml (Errno::ENOENT) | |
from /dependencies/ruby/1.8/gems/rails-2.3.12/lib/initializer.rb:926:in `database_configuration' | |
from /dependencies/ruby/1.8/gems/rails-2.3.12/lib/initializer.rb:437:in `initialize_database' | |
from /dependencies/ruby/1.8/gems/rails-2.3.12/lib/initializer.rb:141:in `process' | |
from /dependencies/ruby/1.8/gems/rails-2.3.12/lib/initializer.rb:113:in `send' | |
from /dependencies/ruby/1.8/gems/rails-2.3.12/lib/initializer.rb:113:in `run' | |
from /code/config/environment.rb:15 | |
from /code/spec/spec_helper.rb:4:in `require' | |
from /code/spec/spec_helper.rb:4 | |
from ./spec/helpers/passports_helper_spec.rb:1:in `require' |
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
;zappa.run(function () { | |
connect(); | |
at({ | |
welcome: function() { | |
alert('Welcome!'); | |
return $('#player').html("Player: " + this.players); | |
} | |
}); | |
at({ | |
'player-limit': function() { |
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
;zappa.run(function () { | |
connect(); | |
at({ | |
welcome: function() { | |
alert('Welcome!'); | |
return $('#player').html("Player: " + this.players); | |
} | |
}); | |
at({ | |
'player-limit': function() { |
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
;zappa.run(function () { | |
connect(); | |
at({ | |
welcome: function() { | |
alert('Welcome!'); | |
return $('#player').html("Player: " + this.players); | |
} | |
}); | |
at({ | |
'player-limit': function() { |
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
;zappa.run(function () { | |
connect(); | |
at({ | |
welcome: function() { | |
alert('Welcome!'); | |
return $('#player').html("Player: " + this.players); | |
} | |
}); | |
at({ | |
'player-limit': function() { |
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
(defun file-lines (path) | |
(with-open-file (s path) | |
(loop for line = (read-line s nil nil) | |
while line | |
collect line into lines | |
finally (return (values lines))))) | |
(defun get-solution (lines) | |
(if (> (length lines) 1) | |
(progn (get-solution (cdr lines)) |
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
(defun file-lines (path) | |
(with-open-file (s path) | |
(loop for line = (read-line s nil nil) | |
while line | |
collect (coerce line 'list) into lines | |
finally (return (values lines))))) |
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
example input file: | |
hp | |
e | |
l | |
lp | |
output: | |
hell |
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
;; My personal configuration on top of emacs-starter-kit | |
;; sets the default font to menlo | |
(defun fontify-frame (frame) | |
(set-frame-parameter frame 'font "Menlo Regular-14")) | |
(fontify-frame nil) | |
(push 'fontify-frame after-make-frame-functions) | |
;; default window size | |
(setq default-frame-alist '((width . 105) (height . 38) )) |
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 'package) | |
(add-to-list 'package-archives | |
'("marmalade" . "http://marmalade-repo.org/packages/") t) | |
(package-initialize) | |
(when (not package-archive-contents) | |
(package-refresh-contents)) | |
;; Add in your own as you wish: | |
(defvar my-packages '(starter-kit starter-kit-lisp starter-kit-bindings starter-kit-eshell starter-kit-js starter-kit-ruby) |