Skip to content

Instantly share code, notes, and snippets.

View redstar504's full-sized avatar
🇨🇦

Brayden redstar504

🇨🇦
View GitHub Profile
source 'https://rubygems.org'
gem 'rails', '3.2.9'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'pg'
*** LOCAL GEMS ***
rails (3.2.9, 3.2.8)
rails_config (0.2.5)
#!/usr/bin/env ruby
2 ENV['GEM_HOME']=ENV['GEM_HOME'] || '/usr/local/rvm/gems/ruby-1.9.3-p286'
3 ENV['GEM_PATH']=ENV['GEM_PATH'] || '/usr/local/rvm/gems/ruby-1.9.3-p286:/usr/local/rvm/gems/ruby-1.9.3-p286@global'
4 ENV['PATH']='/usr/local/rvm/gems/ruby-1.9.3-p286/bin:/usr/local/rvm/gems/ruby-1.9.3-p286@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p286/bin: ' + ENV['PATH']
5
6 #--
7 # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
8 # All rights reserved.
9 # See LICENSE.txt for permissions.
10 #++
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.24
- RUBY VERSION: 1.9.3 (2012-10-12 patchlevel 286) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/local/rvm/gems/ruby-1.9.3-p286
- RUBY EXECUTABLE: /usr/local/rvm/rubies/ruby-1.9.3-p286/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/rvm/gems/ruby-1.9.3-p286/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
14:22:47 web.1 | started with pid 26115
SIGINT received
14:24:45 system | sending SIGTERM to all processes
SIGTERM received
14:24:45 web.1 | => Booting Thin
14:24:45 web.1 | => Rails 3.2.9 application starting in development on http://0.0.0.0:5000
14:24:45 web.1 | => Call with -d to detach
14:24:45 web.1 | => Ctrl-C to shutdown server
14:24:45 web.1 | >> Thin web server (v1.5.0 codename Knife)
14:24:45 web.1 | >> Maximum connections set to 1024
2012-11-20T22:35:43+00:00 heroku[web.1]: State changed from up to down
2012-11-20T22:35:44+00:00 heroku[slugc]: Slug compilation finished
2012-11-20T22:35:46+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2012-11-20T22:35:46+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:90:in `select'
2012-11-20T22:35:46+00:00 app[web.1]: [2012-11-20 22:35:46] ERROR SignalException: SIGTERM
2012-11-20T22:35:55+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 10 seconds of SIGTERM
2012-11-20T22:35:55+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2012-11-20T22:35:57+00:00 heroku[web.1]: Process exited with status 137
Building native extensions. This could take a while...
ERROR: Error installing sqlite3:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.9.3-p286/bin/ruby extconf.rb
checking for sqlite3.h... yes
checking for sqlite3_libversion_number() in -lsqlite3... yes
checking for rb_proc_arity()... yes
checking for sqlite3_initialize()... no
checking for sqlite3_backup_init()... no
class Gear
attr_reader :chainring, :cog, :wheel
def initialize(chainring, cog, wheel=nil)
@chainring = chainring
@cog = cog
@wheel = Wheel.new(rim, tire)
end
def ratio
<?php
class AjaxPager extends CLinkPager {
public $successAction = '';
public $user;
protected function createPageButton($label, $page, $class, $hidden, $selected) {
//parent::createPageButton($label, $page, $class, $hidden, $selected);
if($hidden || $selected) {
$(function() {
$(document).on('click','.yiiPager a', function(e) {
e.preventDefault();
var userId = $(this).data('user');
var url = $(this).attr('href');
jQuery.ajax({
'dataType' : 'json',
'success' : function(data) {
$('#reviewListing').html(data.reviews); // refill content with ajax response
$('html, body').animate({ // scroll to top of #reviewListing div