Skip to content

Instantly share code, notes, and snippets.

View intinig's full-sized avatar

Giovanni Intini intinig

View GitHub Profile
/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'
;zappa.run(function () {
connect();
at({
welcome: function() {
alert('Welcome!');
return $('#player').html("Player: " + this.players);
}
});
at({
'player-limit': function() {
;zappa.run(function () {
connect();
at({
welcome: function() {
alert('Welcome!');
return $('#player').html("Player: " + this.players);
}
});
at({
'player-limit': function() {
;zappa.run(function () {
connect();
at({
welcome: function() {
alert('Welcome!');
return $('#player').html("Player: " + this.players);
}
});
at({
'player-limit': function() {
;zappa.run(function () {
connect();
at({
welcome: function() {
alert('Welcome!');
return $('#player').html("Player: " + this.players);
}
});
at({
'player-limit': function() {
(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))
(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)))))
example input file:
hp
e
l
lp
output:
hell
;; 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) ))
(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)