Skip to content

Instantly share code, notes, and snippets.

View Sadin's full-sized avatar
👽
Go

Zach Snyder Sadin

👽
Go
View GitHub Profile
sadin@sparkzdev:/var/www/portfolio$ rails server
/home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/execjs-1.2.4/lib/execjs/runtimes.rb:45:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/execjs-1.2.4/lib/execjs.rb:5:in `<module:ExecJS>'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/execjs-1.2.4/lib/execjs.rb:4:in `<top (required)>'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `require'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `<top (required)>'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in `require'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in `<top (required)>'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/coffee-rails-3.1.0/lib/coffee-rails.rb:1:in `req
sadin@sparkzdev:/var/www/sparkzdev$ rails server
/home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/execjs-1.2.4/lib/execjs/runtimes.rb:45:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/execjs-1.2.4/lib/execjs.rb:5:in `<module:ExecJS>'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/execjs-1.2.4/lib/execjs.rb:4:in `<top (required)>'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `require'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `<top (required)>'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in `require'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in `<top (required)>'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/coffee-rails-3.1.0/lib/coffee-rails.rb:1:in `req
er/resolver.rb:286:in `reverse_each'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/resolver.rb:286:in `resolve'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/resolver.rb:336:in `block in resolve_requirement'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/resolver.rb:335:in `catch'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/resolver.rb:335:in `resolve_requirement'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/resolver.rb:287:in `block in resolve'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/resolver.rb:286:in `reverse_each'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/resolver.rb:286:in `resolve'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/resolver.rb:336:in `block in resolve_requirement'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/resol
sadin@sparkzdev:/var/www/sparkzdev$ rails server
=> Booting WEBrick
=> Rails 3.1.0 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0/lib/action_dispatch/routing/mapper.rb:181:in `default_controller_and_action': missing :action (ArgumentError)
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0/lib/action_dispatch/routing/mapper.rb:74:in `normalize_options!'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0/lib/action_dispatch/routing/mapper.rb:57:in `initialize'
from /home/sadin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0/lib/action_dispatch/routing/mapper.rb:383:in `new'
Sparkzdev::Application.routes.draw do
get "main/index"
get "main/gallery"
get "main/code"
get "main/contact"
# The priority is based upon order of creation:
@Sadin
Sadin / gist:1210277
Created September 11, 2011 23:25
Example for ryan
(doctype im not typing one cause they are long)
<head>
<!-- this is just a comment put your meta data before your links to CSS or JS --!>
<link rel="stylesheet" type="text/CSS" href="urltostyle.css" />
<script type="text/javascript" src="linktojs.js" />
</head>
<html>
<body>
@Sadin
Sadin / gist:1235039
Created September 22, 2011 15:16
Example of atom feed creator
def entry(record, options = {})
@xml.entry do
@xml.id(options[:id] || "tag:#{@view.request.host},#{@feed_options[:schema_date]}:#{record.class}/#{record.id}")
if options[:published] || (record.respond_to?(:created_at) && record.created_at)
@xml.published((options[:published] || record.created_at).xmlschema)
end
if options[:updated] || (record.respond_to?(:updated_at) && record.updated_at)
@xml.updated((options[:updated] || record.updated_at).xmlschema)
URxvt.foreground: #0077bb
URxvt.Background: #090909
URxvt.shading: 23
URxvt.perl-ext-common:default,matcher
URxvt.urlLancher: firefox
[zach@sparkzdev railsblog]$ rails server
=> Booting WEBrick
=> Rails 3.0.10 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/home/zach/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.10/lib/rails/application/configuration.rb:88:in `read': No such file or directory - /home/zach/railsblog/config/database.yml (Errno::ENOENT)
from /home/zach/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.10/lib/rails/application/configuration.rb:88:in `database_configuration'
from /home/zach/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.0.10/lib/active_record/railtie.rb:58:in `block (2 levels) in <class:Railtie>'
from /home/zach/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.10/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
@Sadin
Sadin / gist:1354873
Created November 10, 2011 13:42
CSS outline
<div class="outline">
This box has a double border
</div>